msm-pcm-routing-v2.c 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static int aanc_level;
  76. static int num_app_cfg_types;
  77. static int msm_ec_ref_port_id;
  78. static int afe_loopback_tx_port_index;
  79. static int afe_loopback_tx_port_id = -1;
  80. #define WEIGHT_0_DB 0x4000
  81. /* all the FEs which can support channel mixer */
  82. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  83. /* all the FES which can support channel mixer for bidirection */
  84. static struct msm_pcm_channel_mixer
  85. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  86. /* input BE for each FE */
  87. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  88. enum {
  89. MADNONE,
  90. MADAUDIO,
  91. MADBEACON,
  92. MADULTRASOUND,
  93. MADSWAUDIO,
  94. };
  95. #define ADM_LSM_PORT_INDEX 9
  96. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  97. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  98. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  99. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  100. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  101. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  102. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  103. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  104. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  105. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  106. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  107. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  108. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  109. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  110. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  111. #define LSM_FUNCTION_TEXT "LSM Function"
  112. static const char * const lsm_port_text[] = {
  113. "None",
  114. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  115. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  116. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  117. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  118. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  119. };
  120. struct msm_pcm_route_bdai_pp_params {
  121. u16 port_id; /* AFE port ID */
  122. unsigned long pp_params_config;
  123. bool mute_on;
  124. int latency;
  125. };
  126. static struct msm_pcm_route_bdai_pp_params
  127. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  128. {HDMI_RX, 0, 0, 0},
  129. {DISPLAY_PORT_RX, 0, 0, 0},
  130. };
  131. /*
  132. * The be_dai_name_table is passed to HAL so that it can specify the
  133. * BE ID for the BE it wants to enable based on the name. Thus there
  134. * is a matching table and structure in HAL that need to be updated
  135. * if any changes to these are made.
  136. */
  137. struct msm_pcm_route_bdai_name {
  138. unsigned int be_id;
  139. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  140. };
  141. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  142. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  143. int fe_id);
  144. static void msm_routing_load_topology(size_t data_size, void *data);
  145. static void msm_routing_unload_topology(uint32_t topology_id);
  146. static int msm_routing_get_bit_width(unsigned int format)
  147. {
  148. int bit_width;
  149. switch (format) {
  150. case SNDRV_PCM_FORMAT_S32_LE:
  151. bit_width = 32;
  152. break;
  153. case SNDRV_PCM_FORMAT_S24_LE:
  154. case SNDRV_PCM_FORMAT_S24_3LE:
  155. bit_width = 24;
  156. break;
  157. case SNDRV_PCM_FORMAT_S16_LE:
  158. default:
  159. bit_width = 16;
  160. }
  161. return bit_width;
  162. }
  163. static bool msm_is_resample_needed(int input_sr, int output_sr)
  164. {
  165. bool rc = false;
  166. if (input_sr != output_sr)
  167. rc = true;
  168. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  169. (rc ? "oh yes" : "not really"),
  170. input_sr, output_sr);
  171. return rc;
  172. }
  173. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  174. int channels)
  175. {
  176. int rc = 0;
  177. switch (topology) {
  178. case SRS_TRUMEDIA_TOPOLOGY_ID:
  179. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  180. msm_dts_srs_tm_init(port_id, copp_idx);
  181. break;
  182. case DS2_ADM_COPP_TOPOLOGY_ID:
  183. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  184. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  185. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  186. is_custom_stereo_on);
  187. if (rc < 0)
  188. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  189. __func__, topology, port_id,
  190. is_custom_stereo_on, rc);
  191. break;
  192. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  193. if (is_ds2_on) {
  194. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  195. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  196. is_custom_stereo_on);
  197. if (rc < 0)
  198. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  199. __func__, topology, port_id, rc);
  200. } else {
  201. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  202. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  203. is_custom_stereo_on);
  204. if (rc < 0)
  205. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  206. __func__, topology, port_id, rc);
  207. }
  208. break;
  209. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  210. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  211. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  212. if (rc < 0)
  213. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  214. __func__, topology, port_id, copp_idx, rc);
  215. break;
  216. default:
  217. /* custom topology specific feature param handlers */
  218. break;
  219. }
  220. }
  221. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  222. {
  223. switch (topology) {
  224. case SRS_TRUMEDIA_TOPOLOGY_ID:
  225. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  226. msm_dts_srs_tm_deinit(port_id);
  227. break;
  228. case DS2_ADM_COPP_TOPOLOGY_ID:
  229. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  230. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  231. msm_ds2_dap_deinit(port_id);
  232. break;
  233. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  234. if (is_ds2_on) {
  235. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  236. msm_ds2_dap_deinit(port_id);
  237. } else {
  238. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  239. msm_dolby_dap_deinit(port_id);
  240. }
  241. break;
  242. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  243. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  244. msm_qti_pp_asphere_deinit(port_id);
  245. break;
  246. default:
  247. /* custom topology specific feature deinit handlers */
  248. break;
  249. }
  250. }
  251. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  252. int path_type, int perf_mode)
  253. {
  254. int itr = 0, rc = 0;
  255. if ((path_type == ADM_PATH_PLAYBACK) &&
  256. (perf_mode == LEGACY_PCM_MODE) &&
  257. is_custom_stereo_on) {
  258. for (itr = 0; itr < payload.num_copps; itr++) {
  259. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  260. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  261. continue;
  262. }
  263. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  264. payload.port_id[itr],
  265. payload.copp_idx[itr],
  266. payload.session_id,
  267. Q14_GAIN_ZERO_POINT_FIVE,
  268. Q14_GAIN_ZERO_POINT_FIVE,
  269. Q14_GAIN_ZERO_POINT_FIVE,
  270. Q14_GAIN_ZERO_POINT_FIVE);
  271. if (rc < 0)
  272. pr_err("%s: err setting custom stereo\n",
  273. __func__);
  274. }
  275. }
  276. }
  277. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  278. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  279. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  280. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  281. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  282. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  283. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  284. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  285. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  286. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  287. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  288. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  289. LPASS_BE_AFE_PCM_RX},
  290. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  291. LPASS_BE_AFE_PCM_TX},
  292. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  293. LPASS_BE_AUXPCM_RX},
  294. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  295. LPASS_BE_AUXPCM_TX},
  296. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  297. LPASS_BE_VOICE_PLAYBACK_TX},
  298. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  299. LPASS_BE_VOICE2_PLAYBACK_TX},
  300. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  301. LPASS_BE_INCALL_RECORD_RX},
  302. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  303. LPASS_BE_INCALL_RECORD_TX},
  304. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  305. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  306. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  307. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  308. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  309. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  310. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  311. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  312. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  313. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  314. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  315. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  316. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  317. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  318. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  319. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  320. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  321. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  322. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  323. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  324. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  325. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  326. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  327. LPASS_BE_QUAT_MI2S_RX},
  328. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  329. LPASS_BE_QUAT_MI2S_TX},
  330. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_SEC_MI2S_RX},
  332. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_SEC_MI2S_TX},
  334. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_PRI_MI2S_RX},
  336. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_PRI_MI2S_TX},
  338. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_TERT_MI2S_RX},
  340. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_TERT_MI2S_TX},
  342. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_AUDIO_I2S_RX},
  344. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_SEC_AUXPCM_RX},
  346. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_SEC_AUXPCM_TX},
  348. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_PRI_SPDIF_RX},
  350. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_SEC_MI2S_RX_SD1},
  352. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_QUIN_MI2S_RX},
  354. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_QUIN_MI2S_TX},
  356. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_SENARY_MI2S_TX},
  358. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_PRI_TDM_RX_0},
  360. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_PRI_TDM_TX_0},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_RX_1},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_TX_1},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_RX_2},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_TX_2},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_RX_3},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_TX_3},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_RX_4},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_TX_4},
  378. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_PRI_TDM_RX_5},
  380. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_PRI_TDM_TX_5},
  382. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_PRI_TDM_RX_6},
  384. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_PRI_TDM_TX_6},
  386. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_PRI_TDM_RX_7},
  388. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_PRI_TDM_TX_7},
  390. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_SEC_TDM_RX_0},
  392. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_SEC_TDM_TX_0},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_RX_1},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_TX_1},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_RX_2},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_TX_2},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_RX_3},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_TX_3},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_RX_4},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_TX_4},
  410. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_SEC_TDM_RX_5},
  412. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_SEC_TDM_TX_5},
  414. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_SEC_TDM_RX_6},
  416. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_SEC_TDM_TX_6},
  418. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_SEC_TDM_RX_7},
  420. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_SEC_TDM_TX_7},
  422. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_TERT_TDM_RX_0},
  424. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_TERT_TDM_TX_0},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_RX_1},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_TX_1},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_RX_2},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_TX_2},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_RX_3},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_TX_3},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_RX_4},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_TX_4},
  442. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_TERT_TDM_RX_5},
  444. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_TERT_TDM_TX_5},
  446. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_TERT_TDM_RX_6},
  448. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_TERT_TDM_TX_6},
  450. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_TERT_TDM_RX_7},
  452. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_TERT_TDM_TX_7},
  454. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_QUAT_TDM_RX_0},
  456. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_QUAT_TDM_TX_0},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_RX_1},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_TX_1},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_RX_2},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_TX_2},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_RX_3},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_TX_3},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_RX_4},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_TX_4},
  474. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUAT_TDM_RX_5},
  476. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUAT_TDM_TX_5},
  478. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUAT_TDM_RX_6},
  480. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUAT_TDM_TX_6},
  482. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUAT_TDM_RX_7},
  484. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUAT_TDM_TX_7},
  486. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUIN_TDM_RX_0},
  488. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUIN_TDM_TX_0},
  490. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_RX_1},
  492. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_TX_1},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_RX_2},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_TX_2},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_RX_3},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_TX_3},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_RX_4},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_TX_4},
  506. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUIN_TDM_RX_5},
  508. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_QUIN_TDM_TX_5},
  510. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_QUIN_TDM_RX_6},
  512. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_QUIN_TDM_TX_6},
  514. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_QUIN_TDM_RX_7},
  516. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_QUIN_TDM_TX_7},
  518. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_SEN_TDM_RX_0},
  520. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_SEN_TDM_TX_0},
  522. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_SEN_TDM_RX_1},
  524. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_SEN_TDM_TX_1},
  526. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_SEN_TDM_RX_2},
  528. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_SEN_TDM_TX_2},
  530. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_SEN_TDM_RX_3},
  532. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_SEN_TDM_TX_3},
  534. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_SEN_TDM_RX_4},
  536. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_SEN_TDM_TX_4},
  538. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_SEN_TDM_RX_5},
  540. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_SEN_TDM_TX_5},
  542. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_SEN_TDM_RX_6},
  544. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_SEN_TDM_TX_6},
  546. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_SEN_TDM_RX_7},
  548. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_SEN_TDM_TX_7},
  550. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_INT_BT_A2DP_RX},
  552. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_USB_AUDIO_RX},
  554. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_USB_AUDIO_TX},
  556. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_DISPLAY_PORT},
  558. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_DISPLAY_PORT1},
  560. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_TERT_AUXPCM_RX},
  562. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_TERT_AUXPCM_TX},
  564. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_QUAT_AUXPCM_RX},
  566. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_QUAT_AUXPCM_TX},
  568. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_QUIN_AUXPCM_RX},
  570. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_QUIN_AUXPCM_TX},
  572. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_INT0_MI2S_RX},
  574. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_INT0_MI2S_TX},
  576. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_INT1_MI2S_RX},
  578. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_INT1_MI2S_TX},
  580. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_INT2_MI2S_RX},
  582. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_INT2_MI2S_TX},
  584. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_INT3_MI2S_RX},
  586. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_INT3_MI2S_TX},
  588. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_INT4_MI2S_RX},
  590. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_INT4_MI2S_TX},
  592. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_INT5_MI2S_RX},
  594. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_INT5_MI2S_TX},
  596. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_INT6_MI2S_RX},
  598. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_INT6_MI2S_TX},
  600. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_SEN_AUXPCM_RX},
  602. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_SEN_AUXPCM_TX},
  604. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_SENARY_MI2S_RX},
  606. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_WSA_CDC_DMA_RX_0},
  608. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_WSA_CDC_DMA_TX_0},
  610. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_WSA_CDC_DMA_RX_1},
  612. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_WSA_CDC_DMA_TX_1},
  614. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_WSA_CDC_DMA_TX_2},
  616. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_VA_CDC_DMA_TX_0},
  618. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  619. LPASS_BE_VA_CDC_DMA_TX_1},
  620. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  621. LPASS_BE_VA_CDC_DMA_TX_2},
  622. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  623. LPASS_BE_RX_CDC_DMA_RX_0},
  624. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  625. LPASS_BE_TX_CDC_DMA_TX_0},
  626. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  627. LPASS_BE_RX_CDC_DMA_RX_1},
  628. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  629. LPASS_BE_TX_CDC_DMA_TX_1},
  630. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  631. LPASS_BE_RX_CDC_DMA_RX_2},
  632. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  633. LPASS_BE_TX_CDC_DMA_TX_2},
  634. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  635. LPASS_BE_RX_CDC_DMA_RX_3},
  636. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  637. LPASS_BE_TX_CDC_DMA_TX_3},
  638. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  639. LPASS_BE_RX_CDC_DMA_RX_4},
  640. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  641. LPASS_BE_TX_CDC_DMA_TX_4},
  642. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  643. LPASS_BE_RX_CDC_DMA_RX_5},
  644. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  645. LPASS_BE_TX_CDC_DMA_TX_5},
  646. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  647. LPASS_BE_RX_CDC_DMA_RX_6},
  648. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  649. LPASS_BE_RX_CDC_DMA_RX_7},
  650. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  651. LPASS_BE_PRI_SPDIF_TX},
  652. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  653. LPASS_BE_SEC_SPDIF_RX},
  654. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  655. LPASS_BE_SEC_SPDIF_TX},
  656. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  657. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  658. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  659. };
  660. /* Track ASM playback & capture sessions of DAI
  661. * Track LSM listen sessions
  662. */
  663. static struct msm_pcm_routing_fdai_data
  664. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  665. /* MULTIMEDIA1 */
  666. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  667. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  668. /* MULTIMEDIA2 */
  669. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  670. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  671. /* MULTIMEDIA3 */
  672. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  673. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  674. /* MULTIMEDIA4 */
  675. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  676. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  677. /* MULTIMEDIA5 */
  678. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  679. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  680. /* MULTIMEDIA6 */
  681. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  682. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  683. /* MULTIMEDIA7*/
  684. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  685. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  686. /* MULTIMEDIA8 */
  687. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  688. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  689. /* MULTIMEDIA9 */
  690. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  691. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  692. /* MULTIMEDIA10 */
  693. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  694. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  695. /* MULTIMEDIA11 */
  696. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  697. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  698. /* MULTIMEDIA12 */
  699. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  700. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  701. /* MULTIMEDIA13 */
  702. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  703. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  704. /* MULTIMEDIA14 */
  705. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  706. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  707. /* MULTIMEDIA15 */
  708. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  709. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  710. /* MULTIMEDIA16 */
  711. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  712. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  713. /* MULTIMEDIA17 */
  714. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  715. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  716. /* MULTIMEDIA18 */
  717. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  718. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  719. /* MULTIMEDIA19 */
  720. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  721. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  722. /* MULTIMEDIA20 */
  723. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  724. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  725. /* MULTIMEDIA21 */
  726. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  727. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  728. /* MULTIMEDIA26 */
  729. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  730. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  731. /* MULTIMEDIA27 */
  732. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  733. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  734. /* MULTIMEDIA28 */
  735. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  736. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  737. /* MULTIMEDIA29 */
  738. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  739. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  740. /* VOIP */
  741. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  742. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  743. /* AFE_RX */
  744. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  745. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  746. /* AFE_TX */
  747. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  748. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  749. /* VOICE_STUB */
  750. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  751. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  752. /* DTMF_RX */
  753. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  754. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  755. /* QCHAT */
  756. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  757. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  758. /* VOLTE_STUB */
  759. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  760. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  761. /* LSM1 */
  762. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  763. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  764. /* LSM2 */
  765. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  766. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  767. /* LSM3 */
  768. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  769. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  770. /* LSM4 */
  771. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  772. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  773. /* LSM5 */
  774. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  775. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  776. /* LSM6 */
  777. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  778. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  779. /* LSM7 */
  780. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  781. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  782. /* LSM8 */
  783. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  784. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  785. /* VOICE2_STUB */
  786. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  787. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  788. /* VOICEMMODE1 */
  789. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  790. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  791. /* VOICEMMODE2 */
  792. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  793. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  794. };
  795. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  796. [MSM_BACKEND_DAI_MAX];
  797. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  798. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  799. static struct msm_pcm_stream_app_type_cfg
  800. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  801. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  802. /* The caller of this should acquire routing lock */
  803. void msm_pcm_routing_get_bedai_info(int be_idx,
  804. struct msm_pcm_routing_bdai_data *be_dai)
  805. {
  806. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  807. memcpy(be_dai, &msm_bedais[be_idx],
  808. sizeof(struct msm_pcm_routing_bdai_data));
  809. }
  810. /* The caller of this should acquire routing lock */
  811. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  812. struct msm_pcm_routing_fdai_data *fe_dai)
  813. {
  814. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  815. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  816. sizeof(struct msm_pcm_routing_fdai_data));
  817. }
  818. void msm_pcm_routing_acquire_lock(void)
  819. {
  820. mutex_lock(&routing_lock);
  821. }
  822. void msm_pcm_routing_release_lock(void)
  823. {
  824. mutex_unlock(&routing_lock);
  825. }
  826. static int msm_pcm_routing_get_app_type_idx(int app_type)
  827. {
  828. int idx;
  829. pr_debug("%s: app_type: %d\n", __func__, app_type);
  830. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  831. if (app_type_cfg[idx].app_type == app_type)
  832. return idx;
  833. }
  834. pr_info("%s: App type not available, fallback to default\n", __func__);
  835. return 0;
  836. }
  837. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  838. {
  839. int idx;
  840. pr_debug("%s: app_type: %d\n", __func__, app_type);
  841. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  842. if (lsm_app_type_cfg[idx].app_type == app_type)
  843. return idx;
  844. }
  845. pr_debug("%s: App type not available, fallback to default\n", __func__);
  846. return 0;
  847. }
  848. static int get_port_id(int port_id)
  849. {
  850. int ret = port_id;
  851. if (port_id == AFE_LOOPBACK_TX) {
  852. /*
  853. * Return afe_loopback_tx_port_id if set. Else return
  854. * msm_ec_ref_port_id to maintain backward compatibility.
  855. */
  856. if (afe_loopback_tx_port_id != -1)
  857. ret = afe_loopback_tx_port_id;
  858. else
  859. ret = msm_ec_ref_port_id;
  860. }
  861. return ret;
  862. }
  863. static bool is_mm_lsm_fe_id(int fe_id)
  864. {
  865. bool rc = true;
  866. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  867. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  868. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  869. rc = false;
  870. }
  871. return rc;
  872. }
  873. /*
  874. * msm_pcm_routing_send_chmix_cfg:
  875. * send the channel mixer command to mix the input channels
  876. * into output channels.
  877. *
  878. * @fe_id: front end id
  879. * @ip_channel_cnt: input channel count
  880. * @op_channel_cnt: output channel count
  881. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  882. * @session_type: indicates session is of type TX or RX
  883. * @stream_type: indicates either Audio or Listen stream type
  884. */
  885. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  886. int op_channel_cnt, int *ch_wght_coeff,
  887. int session_type, int stream_type)
  888. {
  889. int rc = 0, idx = 0;
  890. int be_index = 0, port_id;
  891. unsigned int session_id = 0;
  892. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  893. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  894. stream_type);
  895. if (!is_mm_lsm_fe_id(fe_id)) {
  896. /* bad ID assigned in machine driver */
  897. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  898. return -EINVAL;
  899. }
  900. if (ch_wght_coeff == NULL) {
  901. pr_err("%s: Null channel weightage coefficients passed\n",
  902. __func__);
  903. return -EINVAL;
  904. }
  905. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  906. port_id = msm_bedais[be_index].port_id;
  907. if (!msm_bedais[be_index].active ||
  908. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  909. continue;
  910. session_id = fe_dai_map[fe_id][session_type].strm_id;
  911. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  912. unsigned long copp =
  913. session_copp_map[fe_id][session_type][be_index];
  914. if (!test_bit(idx, &copp))
  915. continue;
  916. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  917. session_id, ip_channel_cnt,
  918. op_channel_cnt, ch_wght_coeff,
  919. session_type, stream_type);
  920. if (rc < 0)
  921. pr_err("%s: err setting channel mix config\n",
  922. __func__);
  923. }
  924. }
  925. return 0;
  926. }
  927. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  928. /**
  929. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  930. * setting before use case start.
  931. *
  932. * @fe_id: frontend idx
  933. * @type: stream direction type
  934. * @params: parameters of channel mixer setting
  935. *
  936. * Return 0 for success
  937. */
  938. int msm_pcm_routing_set_channel_mixer_cfg(
  939. int fe_id, int type,
  940. struct msm_pcm_channel_mixer *params)
  941. {
  942. int i, j = 0;
  943. channel_mixer_v2[fe_id][type].enable = params->enable;
  944. channel_mixer_v2[fe_id][type].rule = params->rule;
  945. channel_mixer_v2[fe_id][type].input_channel =
  946. params->input_channel;
  947. channel_mixer_v2[fe_id][type].output_channel =
  948. params->output_channel;
  949. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  950. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  951. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  952. params->in_ch_map[i];
  953. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  954. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  955. params->out_ch_map[i];
  956. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  957. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  958. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  959. params->channel_weight[i][j];
  960. channel_mixer_v2[fe_id][type].override_in_ch_map =
  961. params->override_in_ch_map;
  962. channel_mixer_v2[fe_id][type].override_out_ch_map =
  963. params->override_out_ch_map;
  964. return 0;
  965. }
  966. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  967. int msm_pcm_routing_reg_stream_app_type_cfg(
  968. int fedai_id, int session_type, int be_id,
  969. struct msm_pcm_stream_app_type_cfg *cfg_data)
  970. {
  971. int ret = 0;
  972. if (cfg_data == NULL) {
  973. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  974. ret = -EINVAL;
  975. goto done;
  976. }
  977. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  978. __func__, fedai_id, session_type, be_id,
  979. cfg_data->app_type, cfg_data->acdb_dev_id,
  980. cfg_data->sample_rate);
  981. if (!is_mm_lsm_fe_id(fedai_id)) {
  982. pr_err("%s: Invalid machine driver ID %d\n",
  983. __func__, fedai_id);
  984. ret = -EINVAL;
  985. goto done;
  986. }
  987. if (session_type != SESSION_TYPE_RX &&
  988. session_type != SESSION_TYPE_TX) {
  989. pr_err("%s: Invalid session type %d\n",
  990. __func__, session_type);
  991. ret = -EINVAL;
  992. goto done;
  993. }
  994. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  995. pr_err("%s: Received out of bounds be_id %d\n",
  996. __func__, be_id);
  997. ret = -EINVAL;
  998. goto done;
  999. }
  1000. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1001. /*
  1002. * Store the BE ID of the configuration information set as the latest so
  1003. * the get mixer control knows what to return.
  1004. */
  1005. last_be_id_configured[fedai_id][session_type] = be_id;
  1006. done:
  1007. return ret;
  1008. }
  1009. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1010. /**
  1011. * msm_pcm_routing_get_stream_app_type_cfg
  1012. *
  1013. * Receives fedai_id, session_type, be_id, and populates app_type,
  1014. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1015. * -EINVAL and does not alter passed values.
  1016. *
  1017. * fedai_id - Passed value, front end ID for which app type config is wanted
  1018. * session_type - Passed value, session type for which app type config
  1019. * is wanted
  1020. * be_id - Returned value, back end device id the app type config data is for
  1021. * cfg_data - Returned value, configuration data used by app type config
  1022. */
  1023. int msm_pcm_routing_get_stream_app_type_cfg(
  1024. int fedai_id, int session_type, int *bedai_id,
  1025. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1026. {
  1027. int be_id;
  1028. int ret = 0;
  1029. if (bedai_id == NULL) {
  1030. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1031. ret = -EINVAL;
  1032. goto done;
  1033. } else if (cfg_data == NULL) {
  1034. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1035. ret = -EINVAL;
  1036. goto done;
  1037. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1038. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1039. ret = -EINVAL;
  1040. goto done;
  1041. } else if (session_type != SESSION_TYPE_RX &&
  1042. session_type != SESSION_TYPE_TX) {
  1043. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1044. ret = -EINVAL;
  1045. goto done;
  1046. }
  1047. be_id = last_be_id_configured[fedai_id][session_type];
  1048. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1049. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1050. ret = -EINVAL;
  1051. goto done;
  1052. }
  1053. *bedai_id = be_id;
  1054. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1055. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1056. __func__, fedai_id, session_type, *bedai_id,
  1057. cfg_data->app_type, cfg_data->acdb_dev_id,
  1058. cfg_data->sample_rate);
  1059. done:
  1060. return ret;
  1061. }
  1062. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1063. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1064. int cal_index)
  1065. {
  1066. struct list_head *ptr, *next;
  1067. struct cal_block_data *cal_block = NULL;
  1068. pr_debug("%s\n", __func__);
  1069. list_for_each_safe(ptr, next,
  1070. &cal_data[cal_index]->cal_blocks) {
  1071. cal_block = list_entry(ptr,
  1072. struct cal_block_data, list);
  1073. if (cal_utils_is_cal_stale(cal_block))
  1074. continue;
  1075. if (((struct audio_cal_info_adm_top *)cal_block
  1076. ->cal_info)->path == path) {
  1077. return cal_block;
  1078. }
  1079. }
  1080. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1081. return NULL;
  1082. }
  1083. static struct cal_block_data *msm_routing_find_topology(int path,
  1084. int app_type,
  1085. int acdb_id,
  1086. int cal_index,
  1087. bool exact)
  1088. {
  1089. struct list_head *ptr, *next;
  1090. struct cal_block_data *cal_block = NULL;
  1091. struct audio_cal_info_adm_top *cal_info;
  1092. pr_debug("%s\n", __func__);
  1093. list_for_each_safe(ptr, next,
  1094. &cal_data[cal_index]->cal_blocks) {
  1095. cal_block = list_entry(ptr,
  1096. struct cal_block_data, list);
  1097. if (cal_utils_is_cal_stale(cal_block))
  1098. continue;
  1099. cal_info = (struct audio_cal_info_adm_top *)
  1100. cal_block->cal_info;
  1101. if ((cal_info->path == path) &&
  1102. (cal_info->app_type == app_type) &&
  1103. (cal_info->acdb_id == acdb_id)) {
  1104. return cal_block;
  1105. }
  1106. }
  1107. pr_debug("%s: Can't find topology for path %d, app %d, "
  1108. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1109. exact ? "fail" : "defaulting to search by path");
  1110. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1111. cal_index);
  1112. }
  1113. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1114. int acdb_dev_id, int idx,
  1115. bool exact)
  1116. {
  1117. int topology = -EINVAL;
  1118. struct cal_block_data *cal_block = NULL;
  1119. mutex_lock(&cal_data[idx]->lock);
  1120. cal_block = msm_routing_find_topology(session_type, app_type,
  1121. acdb_dev_id, idx, exact);
  1122. if (cal_block != NULL) {
  1123. topology = ((struct audio_cal_info_adm_top *)
  1124. cal_block->cal_info)->topology;
  1125. }
  1126. mutex_unlock(&cal_data[idx]->lock);
  1127. return topology;
  1128. }
  1129. /*
  1130. * Retrieving cal_block will mark cal_block as stale.
  1131. * Hence it cannot be reused or resent unless the flag
  1132. * is reset.
  1133. */
  1134. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1135. int be_id)
  1136. {
  1137. int topology = NULL_COPP_TOPOLOGY;
  1138. int app_type = 0, acdb_dev_id = 0;
  1139. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1140. __func__, fedai_id, session_type, be_id);
  1141. if (cal_data == NULL)
  1142. goto done;
  1143. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1144. acdb_dev_id =
  1145. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1146. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1147. topology = msm_routing_find_topology_on_index(session_type,
  1148. app_type,
  1149. acdb_dev_id,
  1150. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1151. true /*exact*/);
  1152. if (topology < 0) {
  1153. pr_debug("%s: Check for compatible topology\n", __func__);
  1154. topology = msm_routing_find_topology_on_index(session_type,
  1155. app_type,
  1156. acdb_dev_id,
  1157. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1158. false /*exact*/);
  1159. if (topology < 0)
  1160. topology = NULL_COPP_TOPOLOGY;
  1161. }
  1162. done:
  1163. pr_debug("%s: Using topology %d\n", __func__, topology);
  1164. return topology;
  1165. }
  1166. static uint8_t is_be_dai_extproc(int be_dai)
  1167. {
  1168. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1169. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1170. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1171. return 1;
  1172. else
  1173. return 0;
  1174. }
  1175. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1176. int path_type, int perf_mode,
  1177. uint32_t passthr_mode)
  1178. {
  1179. int i, port_type, j, num_copps = 0;
  1180. struct route_payload payload;
  1181. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1182. path_type == ADM_PATH_COMPRESSED_RX) ?
  1183. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1184. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1185. if (!is_be_dai_extproc(i) &&
  1186. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1187. (msm_bedais[i].active) &&
  1188. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1189. int port_id = get_port_id(msm_bedais[i].port_id);
  1190. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1191. unsigned long copp =
  1192. session_copp_map[fedai_id][sess_type][i];
  1193. if (test_bit(j, &copp)) {
  1194. payload.port_id[num_copps] = port_id;
  1195. payload.copp_idx[num_copps] = j;
  1196. payload.app_type[num_copps] =
  1197. fe_dai_app_type_cfg
  1198. [fedai_id][sess_type][i]
  1199. .app_type;
  1200. payload.acdb_dev_id[num_copps] =
  1201. fe_dai_app_type_cfg
  1202. [fedai_id][sess_type][i]
  1203. .acdb_dev_id;
  1204. payload.sample_rate[num_copps] =
  1205. fe_dai_app_type_cfg
  1206. [fedai_id][sess_type][i]
  1207. .sample_rate;
  1208. num_copps++;
  1209. }
  1210. }
  1211. }
  1212. }
  1213. if (num_copps) {
  1214. payload.num_copps = num_copps;
  1215. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1216. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1217. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1218. }
  1219. }
  1220. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1221. int stream_type)
  1222. {
  1223. int i, session_type, path_type, port_type;
  1224. u32 mode = 0;
  1225. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1226. /* bad ID assigned in machine driver */
  1227. pr_err("%s: bad MM ID\n", __func__);
  1228. return;
  1229. }
  1230. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1231. session_type = SESSION_TYPE_RX;
  1232. path_type = ADM_PATH_PLAYBACK;
  1233. port_type = MSM_AFE_PORT_TYPE_RX;
  1234. } else {
  1235. session_type = SESSION_TYPE_TX;
  1236. path_type = ADM_PATH_LIVE_REC;
  1237. port_type = MSM_AFE_PORT_TYPE_TX;
  1238. }
  1239. mutex_lock(&routing_lock);
  1240. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1241. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1242. if (!is_be_dai_extproc(i) &&
  1243. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1244. (msm_bedais[i].active) &&
  1245. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1246. mode = afe_get_port_type(msm_bedais[i].port_id);
  1247. adm_connect_afe_port(mode, dspst_id,
  1248. msm_bedais[i].port_id);
  1249. break;
  1250. }
  1251. }
  1252. mutex_unlock(&routing_lock);
  1253. }
  1254. static bool route_check_fe_id_adm_support(int fe_id)
  1255. {
  1256. bool rc = true;
  1257. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1258. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1259. /* fe id is listen while port is set to afe */
  1260. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1261. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1262. __func__, fe_id, lsm_port_index);
  1263. rc = false;
  1264. }
  1265. }
  1266. return rc;
  1267. }
  1268. /*
  1269. * msm_pcm_routing_get_pp_ch_cnt:
  1270. * Read the processed channel count
  1271. *
  1272. * @fe_id: Front end ID
  1273. * @session_type: Inidicates RX or TX session type
  1274. */
  1275. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1276. {
  1277. struct msm_pcm_stream_app_type_cfg cfg_data;
  1278. int be_id = 0, app_type_idx = 0, app_type = 0;
  1279. int ret = -EINVAL;
  1280. memset(&cfg_data, 0, sizeof(cfg_data));
  1281. if (!is_mm_lsm_fe_id(fe_id)) {
  1282. pr_err("%s: bad MM ID\n", __func__);
  1283. return -EINVAL;
  1284. }
  1285. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1286. &be_id, &cfg_data);
  1287. if (ret) {
  1288. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1289. return ret;
  1290. }
  1291. app_type = cfg_data.app_type;
  1292. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1293. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1294. }
  1295. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1296. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1297. int dspst_id, int stream_type,
  1298. uint32_t passthr_mode)
  1299. {
  1300. int i, j, session_type, path_type, port_type, topology;
  1301. int num_copps = 0;
  1302. struct route_payload payload;
  1303. u32 channels, sample_rate;
  1304. u16 bit_width = 16;
  1305. bool is_lsm;
  1306. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1307. __func__, fe_id, perf_mode, dspst_id,
  1308. stream_type, passthr_mode);
  1309. if (!is_mm_lsm_fe_id(fe_id)) {
  1310. /* bad ID assigned in machine driver */
  1311. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1312. return -EINVAL;
  1313. }
  1314. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1315. session_type = SESSION_TYPE_RX;
  1316. if (passthr_mode != LEGACY_PCM)
  1317. path_type = ADM_PATH_COMPRESSED_RX;
  1318. else
  1319. path_type = ADM_PATH_PLAYBACK;
  1320. port_type = MSM_AFE_PORT_TYPE_RX;
  1321. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1322. session_type = SESSION_TYPE_TX;
  1323. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1324. path_type = ADM_PATH_COMPRESSED_TX;
  1325. else
  1326. path_type = ADM_PATH_LIVE_REC;
  1327. port_type = MSM_AFE_PORT_TYPE_TX;
  1328. } else {
  1329. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1330. return -EINVAL;
  1331. }
  1332. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1333. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1334. mutex_lock(&routing_lock);
  1335. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1336. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1337. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1338. if (!route_check_fe_id_adm_support(fe_id)) {
  1339. /* ignore adm open if not supported for fe_id */
  1340. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1341. mutex_unlock(&routing_lock);
  1342. return 0;
  1343. }
  1344. payload.num_copps = 0; /* only RX needs to use payload */
  1345. /* re-enable EQ if active */
  1346. msm_qti_pp_send_eq_values(fe_id);
  1347. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1348. if (!is_be_dai_extproc(i) &&
  1349. (afe_get_port_type(msm_bedais[i].port_id) ==
  1350. port_type) &&
  1351. (msm_bedais[i].active) &&
  1352. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1353. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1354. int port_id = get_port_id(msm_bedais[i].port_id);
  1355. /*
  1356. * check if ADM needs to be configured with different
  1357. * channel mapping than backend
  1358. */
  1359. if (!msm_bedais[i].adm_override_ch)
  1360. channels = msm_bedais[i].channel;
  1361. else
  1362. channels = msm_bedais[i].adm_override_ch;
  1363. bit_width = msm_routing_get_bit_width(
  1364. msm_bedais[i].format);
  1365. app_type =
  1366. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1367. if (app_type && is_lsm) {
  1368. app_type_idx =
  1369. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1370. sample_rate =
  1371. fe_dai_app_type_cfg[fe_id][session_type][i]
  1372. .sample_rate;
  1373. bit_width =
  1374. lsm_app_type_cfg[app_type_idx].bit_width;
  1375. } else if (app_type) {
  1376. app_type_idx =
  1377. msm_pcm_routing_get_app_type_idx(
  1378. app_type);
  1379. sample_rate =
  1380. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1381. bit_width =
  1382. app_type_cfg[app_type_idx].bit_width;
  1383. } else {
  1384. sample_rate = msm_bedais[i].sample_rate;
  1385. }
  1386. acdb_dev_id =
  1387. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1388. topology = msm_routing_get_adm_topology(fe_id,
  1389. session_type,
  1390. i);
  1391. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1392. || (passthr_mode ==
  1393. COMPRESSED_PASSTHROUGH_GEN)
  1394. || (passthr_mode ==
  1395. COMPRESSED_PASSTHROUGH_IEC61937))
  1396. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1397. pr_debug("%s: Before adm open topology %d\n", __func__,
  1398. topology);
  1399. copp_idx =
  1400. adm_open(port_id, path_type, sample_rate,
  1401. channels, topology, perf_mode,
  1402. bit_width, app_type, acdb_dev_id,
  1403. session_type);
  1404. if ((copp_idx < 0) ||
  1405. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1406. pr_err("%s:adm open failed coppid:%d\n",
  1407. __func__, copp_idx);
  1408. mutex_unlock(&routing_lock);
  1409. return -EINVAL;
  1410. }
  1411. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1412. __func__, fe_id, session_type, i);
  1413. set_bit(copp_idx,
  1414. &session_copp_map[fe_id][session_type][i]);
  1415. if (msm_is_resample_needed(
  1416. sample_rate,
  1417. msm_bedais[i].sample_rate))
  1418. adm_copp_mfc_cfg(port_id, copp_idx,
  1419. msm_bedais[i].sample_rate);
  1420. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1421. unsigned long copp =
  1422. session_copp_map[fe_id][session_type][i];
  1423. if (test_bit(j, &copp)) {
  1424. payload.port_id[num_copps] = port_id;
  1425. payload.copp_idx[num_copps] = j;
  1426. payload.app_type[num_copps] =
  1427. fe_dai_app_type_cfg
  1428. [fe_id][session_type][i]
  1429. .app_type;
  1430. payload.acdb_dev_id[num_copps] =
  1431. fe_dai_app_type_cfg
  1432. [fe_id][session_type][i]
  1433. .acdb_dev_id;
  1434. payload.sample_rate[num_copps] =
  1435. fe_dai_app_type_cfg
  1436. [fe_id][session_type][i]
  1437. .sample_rate;
  1438. num_copps++;
  1439. }
  1440. }
  1441. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1442. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1443. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1444. msm_routing_send_device_pp_params(port_id,
  1445. copp_idx, fe_id);
  1446. }
  1447. }
  1448. if (num_copps) {
  1449. payload.num_copps = num_copps;
  1450. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1451. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1452. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1453. }
  1454. mutex_unlock(&routing_lock);
  1455. return 0;
  1456. }
  1457. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1458. {
  1459. u32 session_id;
  1460. switch (val) {
  1461. case MSM_FRONTEND_DAI_QCHAT:
  1462. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1463. break;
  1464. case MSM_FRONTEND_DAI_VOIP:
  1465. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1466. break;
  1467. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1468. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1469. break;
  1470. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1471. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1472. break;
  1473. default:
  1474. session_id = 0;
  1475. }
  1476. pr_debug("%s session_id 0x%x", __func__, session_id);
  1477. return session_id;
  1478. }
  1479. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1480. int dspst_id, int stream_type)
  1481. {
  1482. int copp_idx = 0;
  1483. int sess_type = 0;
  1484. int j = 0, be_id = 0;
  1485. int ret = 0;
  1486. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1487. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1488. return 0;
  1489. }
  1490. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1491. sess_type = SESSION_TYPE_RX;
  1492. else
  1493. sess_type = SESSION_TYPE_TX;
  1494. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1495. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1496. __func__, fe_id, sess_type);
  1497. return 0;
  1498. }
  1499. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1500. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1501. channel_mixer_v2[fe_id][sess_type].input_channel;
  1502. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1503. __func__, sess_type, fe_id,
  1504. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1505. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1506. msm_bedais[be_id].active);
  1507. if ((msm_bedais[be_id].active) &&
  1508. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1509. unsigned long copp =
  1510. session_copp_map[fe_id][sess_type][be_id];
  1511. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1512. if (test_bit(j, &copp)) {
  1513. copp_idx = j;
  1514. break;
  1515. }
  1516. }
  1517. ret = adm_programable_channel_mixer(
  1518. msm_bedais[be_id].port_id,
  1519. copp_idx, dspst_id, sess_type,
  1520. &channel_mixer_v2[fe_id][sess_type], 0);
  1521. }
  1522. return ret;
  1523. }
  1524. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1525. int dspst_id, int stream_type)
  1526. {
  1527. int copp_idx = 0;
  1528. int sess_type = 0;
  1529. int i = 0, j = 0, be_id;
  1530. int ret = 0;
  1531. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1532. dspst_id, stream_type);
  1533. if (ret) {
  1534. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1535. fe_id);
  1536. return ret;
  1537. }
  1538. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1539. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1540. return 0;
  1541. }
  1542. if (!(channel_mixer[fe_id].enable)) {
  1543. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1544. __func__, fe_id);
  1545. return 0;
  1546. }
  1547. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1548. sess_type = SESSION_TYPE_RX;
  1549. else
  1550. sess_type = SESSION_TYPE_TX;
  1551. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1552. ++i) {
  1553. be_id = channel_input[fe_id][i] - 1;
  1554. channel_mixer[fe_id].input_channels[i] =
  1555. msm_bedais[be_id].channel;
  1556. if ((msm_bedais[be_id].active) &&
  1557. test_bit(fe_id,
  1558. &msm_bedais[be_id].fe_sessions[0])) {
  1559. unsigned long copp =
  1560. session_copp_map[fe_id][sess_type][be_id];
  1561. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1562. if (test_bit(j, &copp)) {
  1563. copp_idx = j;
  1564. break;
  1565. }
  1566. }
  1567. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1568. __func__,
  1569. fe_id, be_id, msm_bedais[be_id].channel,
  1570. copp_idx);
  1571. ret = adm_programable_channel_mixer(
  1572. get_port_id(msm_bedais[be_id].port_id),
  1573. copp_idx, dspst_id, sess_type,
  1574. channel_mixer + fe_id, i);
  1575. }
  1576. }
  1577. return ret;
  1578. }
  1579. /**
  1580. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1581. * setting during runtime.
  1582. *
  1583. * @be_id: backend index
  1584. * @session_id: session index
  1585. * @session_type: session type
  1586. * @params: parameters for channel mixer
  1587. *
  1588. * Retuen: 0 for success, else error
  1589. */
  1590. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1591. int session_type,
  1592. struct msm_pcm_channel_mixer *params)
  1593. {
  1594. int rc = 0;
  1595. int port_id, copp_idx = 0;
  1596. be_id--;
  1597. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1598. pr_err("%s: invalid backend id %d\n", __func__,
  1599. be_id);
  1600. return -EINVAL;
  1601. }
  1602. port_id = msm_bedais[be_id].port_id;
  1603. copp_idx = adm_get_default_copp_idx(port_id);
  1604. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1605. __func__, port_id, copp_idx, session_id);
  1606. if ((params->input_channel < 0) ||
  1607. (params->input_channel > ADM_MAX_CHANNELS)) {
  1608. pr_err("%s: invalid input channel %d\n", __func__,
  1609. params->input_channel);
  1610. return -EINVAL;
  1611. }
  1612. if ((params->output_channel < 0) ||
  1613. (params->output_channel > ADM_MAX_CHANNELS)) {
  1614. pr_err("%s: invalid output channel %d\n", __func__,
  1615. params->output_channel);
  1616. return -EINVAL;
  1617. }
  1618. params->input_channels[0] = params->input_channel;
  1619. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1620. __func__, session_type,
  1621. params->override_in_ch_map,
  1622. params->override_out_ch_map,
  1623. msm_bedais[be_id].active);
  1624. rc = adm_programable_channel_mixer(port_id,
  1625. copp_idx,
  1626. session_id,
  1627. session_type,
  1628. params,
  1629. 0);
  1630. if (rc) {
  1631. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1632. rc = -EINVAL;
  1633. }
  1634. return rc;
  1635. }
  1636. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1637. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1638. int dspst_id, int stream_type)
  1639. {
  1640. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1641. struct route_payload payload;
  1642. u32 channels, sample_rate;
  1643. uint16_t bits_per_sample = 16;
  1644. uint32_t passthr_mode = LEGACY_PCM;
  1645. int ret = 0;
  1646. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1647. /* bad ID assigned in machine driver */
  1648. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1649. return -EINVAL;
  1650. }
  1651. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1652. session_type = SESSION_TYPE_RX;
  1653. path_type = ADM_PATH_PLAYBACK;
  1654. port_type = MSM_AFE_PORT_TYPE_RX;
  1655. } else {
  1656. session_type = SESSION_TYPE_TX;
  1657. path_type = ADM_PATH_LIVE_REC;
  1658. port_type = MSM_AFE_PORT_TYPE_TX;
  1659. }
  1660. mutex_lock(&routing_lock);
  1661. payload.num_copps = 0; /* only RX needs to use payload */
  1662. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1663. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1664. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1665. /* re-enable EQ if active */
  1666. msm_qti_pp_send_eq_values(fedai_id);
  1667. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1668. if (!is_be_dai_extproc(i) &&
  1669. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1670. (msm_bedais[i].active) &&
  1671. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1672. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1673. int port_id = get_port_id(msm_bedais[i].port_id);
  1674. /*
  1675. * check if ADM needs to be configured with different
  1676. * channel mapping than backend
  1677. */
  1678. if (!msm_bedais[i].adm_override_ch)
  1679. channels = msm_bedais[i].channel;
  1680. else
  1681. channels = msm_bedais[i].adm_override_ch;
  1682. bits_per_sample = msm_routing_get_bit_width(
  1683. msm_bedais[i].format);
  1684. app_type =
  1685. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1686. if (app_type) {
  1687. app_type_idx =
  1688. msm_pcm_routing_get_app_type_idx(app_type);
  1689. sample_rate =
  1690. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1691. .sample_rate;
  1692. bits_per_sample =
  1693. app_type_cfg[app_type_idx].bit_width;
  1694. } else
  1695. sample_rate = msm_bedais[i].sample_rate;
  1696. acdb_dev_id =
  1697. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1698. .acdb_dev_id;
  1699. topology = msm_routing_get_adm_topology(fedai_id,
  1700. session_type,
  1701. i);
  1702. copp_idx = adm_open(port_id, path_type,
  1703. sample_rate, channels, topology,
  1704. perf_mode, bits_per_sample,
  1705. app_type, acdb_dev_id,
  1706. session_type);
  1707. if ((copp_idx < 0) ||
  1708. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1709. pr_err("%s: adm open failed copp_idx:%d\n",
  1710. __func__, copp_idx);
  1711. mutex_unlock(&routing_lock);
  1712. return -EINVAL;
  1713. }
  1714. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1715. __func__, fedai_id, session_type, i);
  1716. set_bit(copp_idx,
  1717. &session_copp_map[fedai_id][session_type][i]);
  1718. if (msm_is_resample_needed(
  1719. sample_rate,
  1720. msm_bedais[i].sample_rate))
  1721. adm_copp_mfc_cfg(port_id, copp_idx,
  1722. msm_bedais[i].sample_rate);
  1723. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1724. unsigned long copp =
  1725. session_copp_map[fedai_id][session_type][i];
  1726. if (test_bit(j, &copp)) {
  1727. payload.port_id[num_copps] = port_id;
  1728. payload.copp_idx[num_copps] = j;
  1729. payload.app_type[num_copps] =
  1730. fe_dai_app_type_cfg
  1731. [fedai_id][session_type]
  1732. [i].app_type;
  1733. payload.acdb_dev_id[num_copps] =
  1734. fe_dai_app_type_cfg
  1735. [fedai_id][session_type]
  1736. [i].acdb_dev_id;
  1737. payload.sample_rate[num_copps] =
  1738. fe_dai_app_type_cfg
  1739. [fedai_id][session_type]
  1740. [i].sample_rate;
  1741. num_copps++;
  1742. }
  1743. }
  1744. if (perf_mode == LEGACY_PCM_MODE)
  1745. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1746. topology, channels);
  1747. }
  1748. }
  1749. if (num_copps) {
  1750. payload.num_copps = num_copps;
  1751. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1752. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1753. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1754. }
  1755. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1756. dspst_id, stream_type);
  1757. mutex_unlock(&routing_lock);
  1758. return ret;
  1759. }
  1760. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1761. int dspst_id, int stream_type,
  1762. struct msm_pcm_routing_evt event_info)
  1763. {
  1764. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1765. stream_type)) {
  1766. pr_err("%s: failed to reg phy stream\n", __func__);
  1767. return -EINVAL;
  1768. }
  1769. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1770. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1771. else
  1772. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1773. return 0;
  1774. }
  1775. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1776. {
  1777. int i, port_type, session_type, path_type, topology, port_id;
  1778. struct msm_pcm_routing_fdai_data *fdai;
  1779. if (!is_mm_lsm_fe_id(fedai_id)) {
  1780. /* bad ID assigned in machine driver */
  1781. pr_err("%s: bad MM ID\n", __func__);
  1782. return;
  1783. }
  1784. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1785. port_type = MSM_AFE_PORT_TYPE_RX;
  1786. session_type = SESSION_TYPE_RX;
  1787. path_type = ADM_PATH_PLAYBACK;
  1788. } else {
  1789. port_type = MSM_AFE_PORT_TYPE_TX;
  1790. session_type = SESSION_TYPE_TX;
  1791. path_type = ADM_PATH_LIVE_REC;
  1792. }
  1793. mutex_lock(&routing_lock);
  1794. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1795. if (!is_be_dai_extproc(i) &&
  1796. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1797. (msm_bedais[i].active) &&
  1798. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1799. int idx;
  1800. unsigned long copp =
  1801. session_copp_map[fedai_id][session_type][i];
  1802. fdai = &fe_dai_map[fedai_id][session_type];
  1803. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1804. if (test_bit(idx, &copp))
  1805. break;
  1806. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1807. pr_debug("%s: copp idx is invalid, exiting\n",
  1808. __func__);
  1809. continue;
  1810. }
  1811. port_id = get_port_id(msm_bedais[i].port_id);
  1812. topology = adm_get_topology_for_port_copp_idx(
  1813. port_id, idx);
  1814. msm_routing_unload_topology(topology);
  1815. adm_close(port_id, fdai->perf_mode, idx);
  1816. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1817. __func__, copp, fedai_id, session_type, i);
  1818. clear_bit(idx,
  1819. &session_copp_map[fedai_id][session_type][i]);
  1820. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1821. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1822. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1823. (fdai->passthr_mode == LEGACY_PCM))
  1824. msm_pcm_routing_deinit_pp(port_id, topology);
  1825. }
  1826. }
  1827. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1828. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1829. mutex_unlock(&routing_lock);
  1830. }
  1831. /* Check if FE/BE route is set */
  1832. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1833. {
  1834. bool rc = false;
  1835. if (!is_mm_lsm_fe_id(fe_id)) {
  1836. /* recheck FE ID in the mixer control defined in this file */
  1837. pr_err("%s: bad MM ID\n", __func__);
  1838. return rc;
  1839. }
  1840. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1841. rc = true;
  1842. return rc;
  1843. }
  1844. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1845. {
  1846. int session_type, path_type, topology;
  1847. u32 channels, sample_rate;
  1848. uint16_t bits_per_sample = 16;
  1849. struct msm_pcm_routing_fdai_data *fdai;
  1850. uint32_t passthr_mode;
  1851. bool is_lsm;
  1852. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1853. if (!is_mm_lsm_fe_id(val)) {
  1854. /* recheck FE ID in the mixer control defined in this file */
  1855. pr_err("%s: bad MM ID\n", __func__);
  1856. return;
  1857. }
  1858. if (!route_check_fe_id_adm_support(val)) {
  1859. /* ignore adm open if not supported for fe_id */
  1860. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1861. if (set)
  1862. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1863. else
  1864. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1865. return;
  1866. }
  1867. session_type =
  1868. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1869. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1870. fdai = &fe_dai_map[val][session_type];
  1871. passthr_mode = fdai->passthr_mode;
  1872. if (session_type == SESSION_TYPE_RX) {
  1873. if (passthr_mode != LEGACY_PCM)
  1874. path_type = ADM_PATH_COMPRESSED_RX;
  1875. else
  1876. path_type = ADM_PATH_PLAYBACK;
  1877. } else {
  1878. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1879. path_type = ADM_PATH_COMPRESSED_TX;
  1880. else
  1881. path_type = ADM_PATH_LIVE_REC;
  1882. }
  1883. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1884. (val <= MSM_FRONTEND_DAI_LSM8);
  1885. mutex_lock(&routing_lock);
  1886. if (set) {
  1887. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1888. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1889. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1890. voc_start_playback(set, msm_bedais[reg].port_id);
  1891. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1892. if (msm_bedais[reg].active && fdai->strm_id !=
  1893. INVALID_SESSION) {
  1894. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1895. int port_id = get_port_id(msm_bedais[reg].port_id);
  1896. /*
  1897. * check if ADM needs to be configured with different
  1898. * channel mapping than backend
  1899. */
  1900. if (!msm_bedais[reg].adm_override_ch)
  1901. channels = msm_bedais[reg].channel;
  1902. else
  1903. channels = msm_bedais[reg].adm_override_ch;
  1904. if (session_type == SESSION_TYPE_TX &&
  1905. fdai->be_srate &&
  1906. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1907. pr_debug("%s: flush strm %d diff BE rates\n",
  1908. __func__, fdai->strm_id);
  1909. if (fdai->event_info.event_func)
  1910. fdai->event_info.event_func(
  1911. MSM_PCM_RT_EVT_BUF_RECFG,
  1912. fdai->event_info.priv_data);
  1913. fdai->be_srate = 0; /* might not need it */
  1914. }
  1915. bits_per_sample = msm_routing_get_bit_width(
  1916. msm_bedais[reg].format);
  1917. app_type =
  1918. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1919. if (app_type && is_lsm) {
  1920. app_type_idx =
  1921. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1922. sample_rate =
  1923. fe_dai_app_type_cfg[val][session_type][reg]
  1924. .sample_rate;
  1925. bits_per_sample =
  1926. lsm_app_type_cfg[app_type_idx].bit_width;
  1927. } else if (app_type) {
  1928. app_type_idx =
  1929. msm_pcm_routing_get_app_type_idx(app_type);
  1930. sample_rate =
  1931. fe_dai_app_type_cfg[val][session_type][reg]
  1932. .sample_rate;
  1933. bits_per_sample =
  1934. app_type_cfg[app_type_idx].bit_width;
  1935. } else
  1936. sample_rate = msm_bedais[reg].sample_rate;
  1937. topology = msm_routing_get_adm_topology(val,
  1938. session_type,
  1939. reg);
  1940. acdb_dev_id =
  1941. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1942. copp_idx = adm_open(port_id, path_type,
  1943. sample_rate, channels, topology,
  1944. fdai->perf_mode, bits_per_sample,
  1945. app_type, acdb_dev_id,
  1946. session_type);
  1947. if ((copp_idx < 0) ||
  1948. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1949. pr_err("%s: adm open failed\n", __func__);
  1950. mutex_unlock(&routing_lock);
  1951. return;
  1952. }
  1953. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1954. __func__, val, session_type, reg);
  1955. set_bit(copp_idx,
  1956. &session_copp_map[val][session_type][reg]);
  1957. if (msm_is_resample_needed(
  1958. sample_rate,
  1959. msm_bedais[reg].sample_rate))
  1960. adm_copp_mfc_cfg(port_id, copp_idx,
  1961. msm_bedais[reg].sample_rate);
  1962. if (session_type == SESSION_TYPE_RX &&
  1963. fdai->event_info.event_func)
  1964. fdai->event_info.event_func(
  1965. MSM_PCM_RT_EVT_DEVSWITCH,
  1966. fdai->event_info.priv_data);
  1967. msm_pcm_routing_build_matrix(val, session_type,
  1968. path_type,
  1969. fdai->perf_mode,
  1970. passthr_mode);
  1971. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1972. (passthr_mode == LEGACY_PCM))
  1973. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1974. topology, channels);
  1975. }
  1976. } else {
  1977. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1978. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1979. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1980. voc_start_playback(set, msm_bedais[reg].port_id);
  1981. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1982. if (msm_bedais[reg].active && fdai->strm_id !=
  1983. INVALID_SESSION) {
  1984. int idx;
  1985. int port_id;
  1986. unsigned long copp =
  1987. session_copp_map[val][session_type][reg];
  1988. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1989. if (test_bit(idx, &copp))
  1990. break;
  1991. if (idx >= MAX_COPPS_PER_PORT) {
  1992. pr_debug("%s: copp idx is invalid, exiting\n",
  1993. __func__);
  1994. mutex_unlock(&routing_lock);
  1995. return;
  1996. }
  1997. port_id = get_port_id(msm_bedais[reg].port_id);
  1998. topology = adm_get_topology_for_port_copp_idx(port_id,
  1999. idx);
  2000. msm_routing_unload_topology(topology);
  2001. adm_close(port_id, fdai->perf_mode, idx);
  2002. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2003. __func__, copp, val, session_type, reg,
  2004. topology);
  2005. clear_bit(idx,
  2006. &session_copp_map[val][session_type][reg]);
  2007. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2008. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2009. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2010. (passthr_mode == LEGACY_PCM))
  2011. msm_pcm_routing_deinit_pp(port_id, topology);
  2012. msm_pcm_routing_build_matrix(val, session_type,
  2013. path_type,
  2014. fdai->perf_mode,
  2015. passthr_mode);
  2016. }
  2017. }
  2018. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2019. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2020. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2021. mutex_unlock(&routing_lock);
  2022. }
  2023. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2024. struct snd_ctl_elem_value *ucontrol)
  2025. {
  2026. struct soc_mixer_control *mc =
  2027. (struct soc_mixer_control *)kcontrol->private_value;
  2028. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2029. ucontrol->value.integer.value[0] = 1;
  2030. else
  2031. ucontrol->value.integer.value[0] = 0;
  2032. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2033. ucontrol->value.integer.value[0]);
  2034. return 0;
  2035. }
  2036. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2037. struct snd_ctl_elem_value *ucontrol)
  2038. {
  2039. struct snd_soc_dapm_widget *widget =
  2040. snd_soc_dapm_kcontrol_widget(kcontrol);
  2041. struct soc_mixer_control *mc =
  2042. (struct soc_mixer_control *)kcontrol->private_value;
  2043. struct snd_soc_dapm_update *update = NULL;
  2044. if (ucontrol->value.integer.value[0] &&
  2045. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2046. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2047. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2048. update);
  2049. } else if (!ucontrol->value.integer.value[0] &&
  2050. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2051. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2052. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2053. update);
  2054. }
  2055. return 1;
  2056. }
  2057. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2058. struct snd_ctl_elem_value *ucontrol)
  2059. {
  2060. struct soc_mixer_control *mc =
  2061. (struct soc_mixer_control *)kcontrol->private_value;
  2062. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2063. ucontrol->value.integer.value[0] = 1;
  2064. else
  2065. ucontrol->value.integer.value[0] = 0;
  2066. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2067. ucontrol->value.integer.value[0]);
  2068. return 0;
  2069. }
  2070. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2071. struct snd_ctl_elem_value *ucontrol)
  2072. {
  2073. struct snd_soc_dapm_widget *widget =
  2074. snd_soc_dapm_kcontrol_widget(kcontrol);
  2075. struct soc_mixer_control *mc =
  2076. (struct soc_mixer_control *)kcontrol->private_value;
  2077. struct snd_soc_dapm_update *update = NULL;
  2078. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2079. ucontrol->value.integer.value[0]);
  2080. if (ucontrol->value.integer.value[0]) {
  2081. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2082. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2083. snd_soc_dapm_mixer_update_power(widget->dapm,
  2084. kcontrol, 1, update);
  2085. } else if (!ucontrol->value.integer.value[0]) {
  2086. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2087. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2088. snd_soc_dapm_mixer_update_power(widget->dapm,
  2089. kcontrol, 0, update);
  2090. }
  2091. return 1;
  2092. }
  2093. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2094. {
  2095. u32 session_id = 0;
  2096. u16 path_type;
  2097. struct media_format_info voc_be_media_format;
  2098. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2099. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2100. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2101. __func__, val, session_id);
  2102. mutex_lock(&routing_lock);
  2103. if (set)
  2104. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2105. else
  2106. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2107. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2108. afe_get_port_type(msm_bedais[reg].port_id) ==
  2109. MSM_AFE_PORT_TYPE_RX) {
  2110. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2111. __func__, set, msm_bedais[reg].port_id);
  2112. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2113. }
  2114. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2115. MSM_AFE_PORT_TYPE_RX)
  2116. path_type = RX_PATH;
  2117. else
  2118. path_type = TX_PATH;
  2119. if (set) {
  2120. if (msm_bedais[reg].active) {
  2121. voc_set_route_flag(session_id, path_type, 1);
  2122. memset(&voc_be_media_format, 0,
  2123. sizeof(struct media_format_info));
  2124. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2125. voc_be_media_format.num_channels =
  2126. msm_bedais[reg].channel;
  2127. voc_be_media_format.sample_rate =
  2128. msm_bedais[reg].sample_rate;
  2129. voc_be_media_format.bits_per_sample =
  2130. msm_bedais[reg].format;
  2131. /* Defaulting this to 1 for voice call usecases */
  2132. voc_be_media_format.channel_mapping[0] = 1;
  2133. voc_set_device_config(session_id, path_type,
  2134. &voc_be_media_format);
  2135. if (voc_get_route_flag(session_id, TX_PATH) &&
  2136. voc_get_route_flag(session_id, RX_PATH))
  2137. voc_enable_device(session_id);
  2138. } else {
  2139. pr_debug("%s BE is not active\n", __func__);
  2140. }
  2141. } else {
  2142. voc_set_route_flag(session_id, path_type, 0);
  2143. voc_disable_device(session_id);
  2144. }
  2145. mutex_unlock(&routing_lock);
  2146. }
  2147. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2148. struct snd_ctl_elem_value *ucontrol)
  2149. {
  2150. struct soc_mixer_control *mc =
  2151. (struct soc_mixer_control *)kcontrol->private_value;
  2152. mutex_lock(&routing_lock);
  2153. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2154. ucontrol->value.integer.value[0] = 1;
  2155. else
  2156. ucontrol->value.integer.value[0] = 0;
  2157. mutex_unlock(&routing_lock);
  2158. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2159. ucontrol->value.integer.value[0]);
  2160. return 0;
  2161. }
  2162. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2163. struct snd_ctl_elem_value *ucontrol)
  2164. {
  2165. struct snd_soc_dapm_widget *widget =
  2166. snd_soc_dapm_kcontrol_widget(kcontrol);
  2167. struct soc_mixer_control *mc =
  2168. (struct soc_mixer_control *)kcontrol->private_value;
  2169. struct snd_soc_dapm_update *update = NULL;
  2170. if (ucontrol->value.integer.value[0]) {
  2171. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2172. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2173. update);
  2174. } else {
  2175. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2176. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2177. update);
  2178. }
  2179. return 1;
  2180. }
  2181. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2182. struct snd_ctl_elem_value *ucontrol)
  2183. {
  2184. struct soc_mixer_control *mc =
  2185. (struct soc_mixer_control *)kcontrol->private_value;
  2186. mutex_lock(&routing_lock);
  2187. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2188. ucontrol->value.integer.value[0] = 1;
  2189. else
  2190. ucontrol->value.integer.value[0] = 0;
  2191. mutex_unlock(&routing_lock);
  2192. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2193. ucontrol->value.integer.value[0]);
  2194. return 0;
  2195. }
  2196. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2197. struct snd_ctl_elem_value *ucontrol)
  2198. {
  2199. struct snd_soc_dapm_widget *widget =
  2200. snd_soc_dapm_kcontrol_widget(kcontrol);
  2201. struct soc_mixer_control *mc =
  2202. (struct soc_mixer_control *)kcontrol->private_value;
  2203. struct snd_soc_dapm_update *update = NULL;
  2204. if (ucontrol->value.integer.value[0]) {
  2205. mutex_lock(&routing_lock);
  2206. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2207. mutex_unlock(&routing_lock);
  2208. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2209. update);
  2210. } else {
  2211. mutex_lock(&routing_lock);
  2212. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2213. mutex_unlock(&routing_lock);
  2214. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2215. update);
  2216. }
  2217. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2218. ucontrol->value.integer.value[0]);
  2219. return 1;
  2220. }
  2221. /*
  2222. * Return the mapping between port ID and backend ID to enable the AFE callback
  2223. * to determine the acdb_dev_id from the port id
  2224. */
  2225. int msm_pcm_get_be_id_from_port_id(int port_id)
  2226. {
  2227. int i;
  2228. int be_id = -EINVAL;
  2229. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2230. if (msm_bedais[i].port_id == port_id) {
  2231. be_id = i;
  2232. break;
  2233. }
  2234. }
  2235. return be_id;
  2236. }
  2237. /*
  2238. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2239. * correct AFE calibration information by comparing the header information.
  2240. */
  2241. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2242. {
  2243. int acdb_id = -EINVAL;
  2244. int i = 0;
  2245. int session;
  2246. int port_type = afe_get_port_type(port_id);
  2247. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2248. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2249. __func__, port_id, be_id, port_type);
  2250. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2251. session = SESSION_TYPE_TX;
  2252. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2253. session = SESSION_TYPE_RX;
  2254. } else {
  2255. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2256. acdb_id = -EINVAL;
  2257. goto exit;
  2258. }
  2259. if (be_id < 0) {
  2260. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2261. goto exit;
  2262. }
  2263. mutex_lock(&routing_lock);
  2264. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2265. MSM_FRONTEND_DAI_MAX);
  2266. if (i < MSM_FRONTEND_DAI_MAX)
  2267. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2268. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2269. __func__, i, session, be_id, acdb_id);
  2270. mutex_unlock(&routing_lock);
  2271. exit:
  2272. return acdb_id;
  2273. }
  2274. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2275. struct snd_ctl_elem_value *ucontrol)
  2276. {
  2277. ucontrol->value.integer.value[0] = fm_switch_enable;
  2278. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2279. ucontrol->value.integer.value[0]);
  2280. return 0;
  2281. }
  2282. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2283. struct snd_ctl_elem_value *ucontrol)
  2284. {
  2285. struct snd_soc_dapm_widget *widget =
  2286. snd_soc_dapm_kcontrol_widget(kcontrol);
  2287. struct snd_soc_dapm_update *update = NULL;
  2288. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2289. ucontrol->value.integer.value[0]);
  2290. if (ucontrol->value.integer.value[0])
  2291. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2292. update);
  2293. else
  2294. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2295. update);
  2296. fm_switch_enable = ucontrol->value.integer.value[0];
  2297. return 1;
  2298. }
  2299. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2300. struct snd_ctl_elem_value *ucontrol)
  2301. {
  2302. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2303. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2304. ucontrol->value.integer.value[0]);
  2305. return 0;
  2306. }
  2307. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2308. struct snd_ctl_elem_value *ucontrol)
  2309. {
  2310. struct snd_soc_dapm_widget *widget =
  2311. snd_soc_dapm_kcontrol_widget(kcontrol);
  2312. struct snd_soc_dapm_update *update = NULL;
  2313. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2314. ucontrol->value.integer.value[0]);
  2315. if (ucontrol->value.integer.value[0])
  2316. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2317. 1, update);
  2318. else
  2319. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2320. 0, update);
  2321. hfp_switch_enable = ucontrol->value.integer.value[0];
  2322. return 1;
  2323. }
  2324. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2325. struct snd_ctl_elem_value *ucontrol)
  2326. {
  2327. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2328. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2329. ucontrol->value.integer.value[0]);
  2330. return 0;
  2331. }
  2332. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2333. struct snd_ctl_elem_value *ucontrol)
  2334. {
  2335. struct snd_soc_dapm_widget *widget =
  2336. snd_soc_dapm_kcontrol_widget(kcontrol);
  2337. struct snd_soc_dapm_update *update = NULL;
  2338. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2339. ucontrol->value.integer.value[0]);
  2340. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2341. if (a2dp_switch_enable)
  2342. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2343. 1, update);
  2344. else
  2345. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2346. 0, update);
  2347. return 1;
  2348. }
  2349. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2350. struct snd_ctl_elem_value *ucontrol)
  2351. {
  2352. ucontrol->value.integer.value[0] = sco_switch_enable;
  2353. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2354. ucontrol->value.integer.value[0]);
  2355. return 0;
  2356. }
  2357. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2358. struct snd_ctl_elem_value *ucontrol)
  2359. {
  2360. struct snd_soc_dapm_widget *widget =
  2361. snd_soc_dapm_kcontrol_widget(kcontrol);
  2362. struct snd_soc_dapm_update *update = NULL;
  2363. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2364. ucontrol->value.integer.value[0]);
  2365. sco_switch_enable = ucontrol->value.integer.value[0];
  2366. if (sco_switch_enable)
  2367. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2368. 1, update);
  2369. else
  2370. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2371. 0, update);
  2372. return 1;
  2373. }
  2374. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2375. struct snd_ctl_elem_value *ucontrol)
  2376. {
  2377. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2378. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2379. ucontrol->value.integer.value[0]);
  2380. return 0;
  2381. }
  2382. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2383. struct snd_ctl_elem_value *ucontrol)
  2384. {
  2385. struct snd_soc_dapm_widget *widget =
  2386. snd_soc_dapm_kcontrol_widget(kcontrol);
  2387. struct snd_soc_dapm_update *update = NULL;
  2388. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2389. ucontrol->value.integer.value[0]);
  2390. if (ucontrol->value.integer.value[0])
  2391. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2392. update);
  2393. else
  2394. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2395. update);
  2396. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2397. return 1;
  2398. }
  2399. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2400. struct snd_ctl_elem_value *ucontrol)
  2401. {
  2402. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2403. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2404. ucontrol->value.integer.value[0]);
  2405. return 0;
  2406. }
  2407. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2408. struct snd_ctl_elem_value *ucontrol)
  2409. {
  2410. struct snd_soc_dapm_widget *widget =
  2411. snd_soc_dapm_kcontrol_widget(kcontrol);
  2412. struct snd_soc_dapm_update *update = NULL;
  2413. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2414. ucontrol->value.integer.value[0]);
  2415. if (ucontrol->value.integer.value[0])
  2416. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2417. update);
  2418. else
  2419. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2420. update);
  2421. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2422. return 1;
  2423. }
  2424. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2425. struct snd_ctl_elem_value *ucontrol)
  2426. {
  2427. ucontrol->value.integer.value[0] = usb_switch_enable;
  2428. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2429. ucontrol->value.integer.value[0]);
  2430. return 0;
  2431. }
  2432. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2433. struct snd_ctl_elem_value *ucontrol)
  2434. {
  2435. struct snd_soc_dapm_widget *widget =
  2436. snd_soc_dapm_kcontrol_widget(kcontrol);
  2437. struct snd_soc_dapm_update *update = NULL;
  2438. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2439. ucontrol->value.integer.value[0]);
  2440. if (ucontrol->value.integer.value[0])
  2441. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2442. 1, update);
  2443. else
  2444. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2445. 0, update);
  2446. usb_switch_enable = ucontrol->value.integer.value[0];
  2447. return 1;
  2448. }
  2449. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2450. struct snd_ctl_elem_value *ucontrol)
  2451. {
  2452. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2453. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2454. ucontrol->value.integer.value[0]);
  2455. return 0;
  2456. }
  2457. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2458. struct snd_ctl_elem_value *ucontrol)
  2459. {
  2460. struct snd_soc_dapm_widget *widget =
  2461. snd_soc_dapm_kcontrol_widget(kcontrol);
  2462. struct snd_soc_dapm_update *update = NULL;
  2463. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2464. ucontrol->value.integer.value[0]);
  2465. if (ucontrol->value.integer.value[0])
  2466. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2467. update);
  2468. else
  2469. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2470. update);
  2471. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2472. return 1;
  2473. }
  2474. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2475. struct snd_ctl_elem_value *ucontrol)
  2476. {
  2477. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2478. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2479. ucontrol->value.integer.value[0]);
  2480. return 0;
  2481. }
  2482. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2483. struct snd_ctl_elem_value *ucontrol)
  2484. {
  2485. struct snd_soc_dapm_widget *widget =
  2486. snd_soc_dapm_kcontrol_widget(kcontrol);
  2487. struct snd_soc_dapm_update *update = NULL;
  2488. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2489. ucontrol->value.integer.value[0]);
  2490. if (ucontrol->value.integer.value[0])
  2491. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2492. update);
  2493. else
  2494. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2495. update);
  2496. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2497. return 1;
  2498. }
  2499. static int msm_routing_get_tert_mi2s_switch_mixer(
  2500. struct snd_kcontrol *kcontrol,
  2501. struct snd_ctl_elem_value *ucontrol)
  2502. {
  2503. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2504. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2505. ucontrol->value.integer.value[0]);
  2506. return 0;
  2507. }
  2508. static int msm_routing_put_tert_mi2s_switch_mixer(
  2509. struct snd_kcontrol *kcontrol,
  2510. struct snd_ctl_elem_value *ucontrol)
  2511. {
  2512. struct snd_soc_dapm_widget *widget =
  2513. snd_soc_dapm_kcontrol_widget(kcontrol);
  2514. struct snd_soc_dapm_update *update = NULL;
  2515. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2516. ucontrol->value.integer.value[0]);
  2517. if (ucontrol->value.integer.value[0])
  2518. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2519. update);
  2520. else
  2521. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2522. update);
  2523. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2524. return 1;
  2525. }
  2526. static int msm_routing_get_quat_mi2s_switch_mixer(
  2527. struct snd_kcontrol *kcontrol,
  2528. struct snd_ctl_elem_value *ucontrol)
  2529. {
  2530. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2531. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2532. ucontrol->value.integer.value[0]);
  2533. return 0;
  2534. }
  2535. static int msm_routing_put_quat_mi2s_switch_mixer(
  2536. struct snd_kcontrol *kcontrol,
  2537. struct snd_ctl_elem_value *ucontrol)
  2538. {
  2539. struct snd_soc_dapm_widget *widget =
  2540. snd_soc_dapm_kcontrol_widget(kcontrol);
  2541. struct snd_soc_dapm_update *update = NULL;
  2542. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2543. ucontrol->value.integer.value[0]);
  2544. if (ucontrol->value.integer.value[0])
  2545. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2546. update);
  2547. else
  2548. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2549. update);
  2550. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2551. return 1;
  2552. }
  2553. static int msm_routing_get_quin_mi2s_switch_mixer(
  2554. struct snd_kcontrol *kcontrol,
  2555. struct snd_ctl_elem_value *ucontrol)
  2556. {
  2557. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2558. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2559. ucontrol->value.integer.value[0]);
  2560. return 0;
  2561. }
  2562. static int msm_routing_put_quin_mi2s_switch_mixer(
  2563. struct snd_kcontrol *kcontrol,
  2564. struct snd_ctl_elem_value *ucontrol)
  2565. {
  2566. struct snd_soc_dapm_widget *widget =
  2567. snd_soc_dapm_kcontrol_widget(kcontrol);
  2568. struct snd_soc_dapm_update *update = NULL;
  2569. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2570. ucontrol->value.integer.value[0]);
  2571. if (ucontrol->value.integer.value[0])
  2572. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2573. update);
  2574. else
  2575. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2576. update);
  2577. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2578. return 1;
  2579. }
  2580. static int msm_routing_get_sen_mi2s_switch_mixer(
  2581. struct snd_kcontrol *kcontrol,
  2582. struct snd_ctl_elem_value *ucontrol)
  2583. {
  2584. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2585. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2586. ucontrol->value.integer.value[0]);
  2587. return 0;
  2588. }
  2589. static int msm_routing_put_sen_mi2s_switch_mixer(
  2590. struct snd_kcontrol *kcontrol,
  2591. struct snd_ctl_elem_value *ucontrol)
  2592. {
  2593. struct snd_soc_dapm_widget *widget =
  2594. snd_soc_dapm_kcontrol_widget(kcontrol);
  2595. struct snd_soc_dapm_update *update = NULL;
  2596. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2597. ucontrol->value.integer.value[0]);
  2598. if (ucontrol->value.integer.value[0])
  2599. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2600. update);
  2601. else
  2602. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2603. update);
  2604. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2605. return 1;
  2606. }
  2607. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2608. struct snd_ctl_elem_value *ucontrol)
  2609. {
  2610. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2611. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2612. ucontrol->value.integer.value[0]);
  2613. return 0;
  2614. }
  2615. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2616. struct snd_ctl_elem_value *ucontrol)
  2617. {
  2618. struct snd_soc_dapm_widget *widget =
  2619. snd_soc_dapm_kcontrol_widget(kcontrol);
  2620. struct snd_soc_dapm_update *update = NULL;
  2621. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2622. ucontrol->value.integer.value[0]);
  2623. if (ucontrol->value.integer.value[0])
  2624. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2625. update);
  2626. else
  2627. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2628. update);
  2629. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2630. return 1;
  2631. }
  2632. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2633. struct snd_ctl_elem_value *ucontrol)
  2634. {
  2635. ucontrol->value.integer.value[0] = lsm_port_index;
  2636. return 0;
  2637. }
  2638. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2639. struct snd_ctl_elem_value *ucontrol)
  2640. {
  2641. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2642. int mux = ucontrol->value.enumerated.item[0];
  2643. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2644. if (mux >= e->items) {
  2645. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2646. return -EINVAL;
  2647. }
  2648. pr_debug("%s: LSM enable %ld\n", __func__,
  2649. ucontrol->value.integer.value[0]);
  2650. switch (ucontrol->value.integer.value[0]) {
  2651. case 1:
  2652. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2653. break;
  2654. case 2:
  2655. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2656. break;
  2657. case 3:
  2658. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2659. break;
  2660. case 4:
  2661. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2662. break;
  2663. case 5:
  2664. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2665. break;
  2666. case 6:
  2667. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2668. break;
  2669. case 7:
  2670. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2671. break;
  2672. case 8:
  2673. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2674. break;
  2675. case 9:
  2676. lsm_port = ADM_LSM_PORT_ID;
  2677. break;
  2678. case 10:
  2679. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2680. break;
  2681. case 11:
  2682. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2683. break;
  2684. case 12:
  2685. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2686. break;
  2687. case 13:
  2688. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2689. break;
  2690. case 14:
  2691. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2692. break;
  2693. case 15:
  2694. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2695. break;
  2696. default:
  2697. pr_err("Default lsm port");
  2698. break;
  2699. }
  2700. set_lsm_port(lsm_port);
  2701. lsm_port_index = ucontrol->value.integer.value[0];
  2702. return 0;
  2703. }
  2704. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2705. struct snd_ctl_elem_value *ucontrol)
  2706. {
  2707. int i;
  2708. u16 port_id;
  2709. enum afe_mad_type mad_type;
  2710. pr_debug("%s: enter\n", __func__);
  2711. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2712. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2713. strlen(lsm_port_text[i])))
  2714. break;
  2715. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2716. pr_warn("%s: Invalid id name %s\n", __func__,
  2717. kcontrol->id.name);
  2718. return -EINVAL;
  2719. }
  2720. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2721. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2722. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2723. strlen(lsm_port_text[7])))
  2724. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2725. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2726. strlen(lsm_port_text[8])))
  2727. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2728. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2729. strlen(lsm_port_text[10])))
  2730. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2731. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2732. strlen(lsm_port_text[13])))
  2733. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2734. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2735. strlen(lsm_port_text[14])))
  2736. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2737. mad_type = afe_port_get_mad_type(port_id);
  2738. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2739. mad_type);
  2740. switch (mad_type) {
  2741. case MAD_HW_NONE:
  2742. ucontrol->value.integer.value[0] = MADNONE;
  2743. break;
  2744. case MAD_HW_AUDIO:
  2745. ucontrol->value.integer.value[0] = MADAUDIO;
  2746. break;
  2747. case MAD_HW_BEACON:
  2748. ucontrol->value.integer.value[0] = MADBEACON;
  2749. break;
  2750. case MAD_HW_ULTRASOUND:
  2751. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2752. break;
  2753. case MAD_SW_AUDIO:
  2754. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2755. break;
  2756. default:
  2757. pr_warn("%s: Unknown\n", __func__);
  2758. return -EINVAL;
  2759. }
  2760. return 0;
  2761. }
  2762. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2763. struct snd_ctl_elem_value *ucontrol)
  2764. {
  2765. int i;
  2766. u16 port_id;
  2767. enum afe_mad_type mad_type;
  2768. pr_debug("%s: enter\n", __func__);
  2769. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2770. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2771. strlen(lsm_port_text[i])))
  2772. break;
  2773. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2774. pr_warn("%s: Invalid id name %s\n", __func__,
  2775. kcontrol->id.name);
  2776. return -EINVAL;
  2777. }
  2778. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2779. switch (ucontrol->value.integer.value[0]) {
  2780. case MADNONE:
  2781. mad_type = MAD_HW_NONE;
  2782. break;
  2783. case MADAUDIO:
  2784. mad_type = MAD_HW_AUDIO;
  2785. break;
  2786. case MADBEACON:
  2787. mad_type = MAD_HW_BEACON;
  2788. break;
  2789. case MADULTRASOUND:
  2790. mad_type = MAD_HW_ULTRASOUND;
  2791. break;
  2792. case MADSWAUDIO:
  2793. mad_type = MAD_SW_AUDIO;
  2794. break;
  2795. default:
  2796. pr_warn("%s: Unknown\n", __func__);
  2797. return -EINVAL;
  2798. }
  2799. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2800. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2801. strlen(lsm_port_text[7])))
  2802. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2803. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2804. strlen(lsm_port_text[8])))
  2805. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2806. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2807. strlen(lsm_port_text[10])))
  2808. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2809. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2810. strlen(lsm_port_text[13])))
  2811. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2812. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2813. strlen(lsm_port_text[14])))
  2814. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2815. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2816. mad_type);
  2817. return afe_port_set_mad_type(port_id, mad_type);
  2818. }
  2819. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2820. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2821. adm_override_chs_text);
  2822. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2823. {
  2824. int backend_id;
  2825. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2826. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2827. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2828. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2829. } else {
  2830. pr_err("%s: unsupported backend id: %s",
  2831. __func__, kcontrol->id.name);
  2832. return -EINVAL;
  2833. }
  2834. return backend_id;
  2835. }
  2836. static int msm_routing_adm_channel_config_get(
  2837. struct snd_kcontrol *kcontrol,
  2838. struct snd_ctl_elem_value *ucontrol)
  2839. {
  2840. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2841. if (backend_id >= 0) {
  2842. mutex_lock(&routing_lock);
  2843. ucontrol->value.integer.value[0] =
  2844. msm_bedais[backend_id].adm_override_ch;
  2845. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2846. ucontrol->value.integer.value[0], backend_id);
  2847. mutex_unlock(&routing_lock);
  2848. }
  2849. return 0;
  2850. }
  2851. static int msm_routing_adm_channel_config_put(
  2852. struct snd_kcontrol *kcontrol,
  2853. struct snd_ctl_elem_value *ucontrol)
  2854. {
  2855. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2856. if (backend_id >= 0) {
  2857. mutex_lock(&routing_lock);
  2858. msm_bedais[backend_id].adm_override_ch =
  2859. ucontrol->value.integer.value[0];
  2860. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2861. __func__, backend_id,
  2862. msm_bedais[backend_id].adm_override_ch);
  2863. mutex_unlock(&routing_lock);
  2864. }
  2865. return 0;
  2866. }
  2867. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2868. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2869. msm_routing_adm_channel_config_get,
  2870. msm_routing_adm_channel_config_put),
  2871. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2872. msm_routing_adm_channel_config_get,
  2873. msm_routing_adm_channel_config_put),
  2874. };
  2875. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2876. struct snd_ctl_elem_value *ucontrol)
  2877. {
  2878. mutex_lock(&routing_lock);
  2879. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2880. mutex_unlock(&routing_lock);
  2881. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2882. ucontrol->value.integer.value[0]);
  2883. return 0;
  2884. };
  2885. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2886. struct snd_ctl_elem_value *ucontrol)
  2887. {
  2888. struct aanc_data aanc_info;
  2889. mutex_lock(&routing_lock);
  2890. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2891. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2892. ucontrol->value.integer.value[0]);
  2893. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2894. if (ucontrol->value.integer.value[0] == 0) {
  2895. aanc_info.aanc_active = false;
  2896. aanc_info.aanc_tx_port = 0;
  2897. aanc_info.aanc_rx_port = 0;
  2898. } else {
  2899. aanc_info.aanc_active = true;
  2900. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2901. aanc_info.aanc_tx_port =
  2902. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2903. }
  2904. afe_set_aanc_info(&aanc_info);
  2905. mutex_unlock(&routing_lock);
  2906. return 0;
  2907. };
  2908. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2909. struct snd_ctl_elem_value *ucontrol)
  2910. {
  2911. int idx = 0, shift = 0;
  2912. struct soc_mixer_control *mc =
  2913. (struct soc_mixer_control *)kcontrol->private_value;
  2914. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2915. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2916. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2917. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2918. return -EINVAL;
  2919. }
  2920. if (test_bit(shift,
  2921. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2922. ucontrol->value.integer.value[0] = 1;
  2923. else
  2924. ucontrol->value.integer.value[0] = 0;
  2925. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2926. ucontrol->value.integer.value[0]);
  2927. return 0;
  2928. }
  2929. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2930. struct snd_ctl_elem_value *ucontrol)
  2931. {
  2932. int idx = 0, shift = 0;
  2933. struct soc_mixer_control *mc =
  2934. (struct soc_mixer_control *)kcontrol->private_value;
  2935. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2936. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2937. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2938. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2939. return -EINVAL;
  2940. }
  2941. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2942. __func__, mc->shift, mc->rshift,
  2943. ucontrol->value.integer.value[0], idx, shift);
  2944. if (ucontrol->value.integer.value[0]) {
  2945. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2946. msm_bedais[mc->rshift].port_id);
  2947. set_bit(shift,
  2948. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2949. } else {
  2950. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2951. msm_bedais[mc->rshift].port_id);
  2952. clear_bit(shift,
  2953. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2954. }
  2955. return 1;
  2956. }
  2957. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2958. struct snd_ctl_elem_value *ucontrol)
  2959. {
  2960. u16 fe_id = 0;
  2961. fe_id = ((struct soc_mixer_control *)
  2962. kcontrol->private_value)->shift;
  2963. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2964. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2965. return -EINVAL;
  2966. }
  2967. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2968. return 0;
  2969. }
  2970. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2971. struct snd_ctl_elem_value *ucontrol)
  2972. {
  2973. u16 fe_id = 0;
  2974. fe_id = ((struct soc_mixer_control *)
  2975. kcontrol->private_value)->shift;
  2976. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2977. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2978. return -EINVAL;
  2979. }
  2980. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2981. return 1;
  2982. }
  2983. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2984. struct snd_ctl_elem_value *ucontrol)
  2985. {
  2986. u16 fe_id = 0;
  2987. fe_id = ((struct soc_multi_mixer_control *)
  2988. kcontrol->private_value)->shift;
  2989. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2990. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2991. return -EINVAL;
  2992. }
  2993. ucontrol->value.integer.value[0] =
  2994. channel_mixer[fe_id].output_channel;
  2995. return 0;
  2996. }
  2997. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2998. struct snd_ctl_elem_value *ucontrol)
  2999. {
  3000. u16 fe_id = 0;
  3001. fe_id = ((struct soc_multi_mixer_control *)
  3002. kcontrol->private_value)->shift;
  3003. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3004. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3005. return -EINVAL;
  3006. }
  3007. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3008. fe_id,
  3009. (unsigned int)(ucontrol->value.integer.value[0]));
  3010. channel_mixer[fe_id].output_channel =
  3011. (unsigned int)(ucontrol->value.integer.value[0]);
  3012. return 1;
  3013. }
  3014. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3015. /* If new backend is added, need update this array */
  3016. static const char *const be_name[] = {
  3017. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3018. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3019. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3020. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3021. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3022. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3023. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3024. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3025. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3026. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3027. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3028. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3029. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3030. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3031. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3032. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3033. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3034. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3035. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3036. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3037. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3038. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3039. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3040. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3041. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3042. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3043. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3044. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3045. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3046. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3047. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3048. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3049. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3050. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3051. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3052. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3053. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3054. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3055. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3056. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3057. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3058. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3059. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3060. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3061. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3062. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3063. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3064. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3065. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3066. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3067. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3068. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3069. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX"
  3070. };
  3071. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3072. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3073. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3074. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3075. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3076. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3077. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3078. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3079. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3080. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3081. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3082. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3083. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3084. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3085. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3086. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3087. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3088. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3089. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3090. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3091. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3092. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3093. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3094. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3095. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3096. unsigned int channels,
  3097. unsigned int items, const char *const names[])
  3098. {
  3099. if (uinfo->value.enumerated.item >= items)
  3100. uinfo->value.enumerated.item = items - 1;
  3101. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3102. sizeof(uinfo->value.enumerated.name),
  3103. "ALSA: too long item name '%s'\n",
  3104. names[uinfo->value.enumerated.item]);
  3105. strlcpy(uinfo->value.enumerated.name,
  3106. names[uinfo->value.enumerated.item],
  3107. sizeof(uinfo->value.enumerated.name));
  3108. return 0;
  3109. }
  3110. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3111. struct snd_ctl_elem_info *uinfo)
  3112. {
  3113. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3114. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3115. uinfo->count = 1;
  3116. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3117. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3118. return 0;
  3119. }
  3120. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3121. struct snd_ctl_elem_value *ucontrol)
  3122. {
  3123. u16 fe_id = 0;
  3124. fe_id = ((struct soc_enum *)
  3125. kcontrol->private_value)->shift_l;
  3126. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3127. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3128. return -EINVAL;
  3129. }
  3130. pr_debug("%s: FE %d %s\n", __func__,
  3131. fe_id,
  3132. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3133. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3134. return 0;
  3135. }
  3136. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3137. struct snd_ctl_elem_value *ucontrol)
  3138. {
  3139. u16 fe_id = 0;
  3140. fe_id = ((struct soc_enum *)
  3141. kcontrol->private_value)->shift_l;
  3142. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3143. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3144. return -EINVAL;
  3145. }
  3146. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3147. pr_debug("%s: %s FE %d\n", __func__,
  3148. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3149. fe_id);
  3150. return 0;
  3151. }
  3152. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3153. struct snd_ctl_elem_info *uinfo)
  3154. {
  3155. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3156. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3157. uinfo->count = 1;
  3158. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3159. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3160. return 0;
  3161. }
  3162. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3163. struct snd_ctl_elem_value *ucontrol)
  3164. {
  3165. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3166. u16 fe_id = 0, in_ch = 0;
  3167. fe_id = e->shift_l;
  3168. in_ch = e->shift_r;
  3169. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3170. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3171. return -EINVAL;
  3172. }
  3173. if (in_ch >= ADM_MAX_CHANNELS) {
  3174. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3175. return -EINVAL;
  3176. }
  3177. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3178. return 1;
  3179. }
  3180. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3181. struct snd_ctl_elem_value *ucontrol)
  3182. {
  3183. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3184. u16 fe_id = 0, in_ch = 0;
  3185. fe_id = e->shift_l;
  3186. in_ch = e->shift_r;
  3187. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3188. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3189. return -EINVAL;
  3190. }
  3191. if (in_ch >= ADM_MAX_CHANNELS) {
  3192. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3193. return -EINVAL;
  3194. }
  3195. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3196. return 1;
  3197. }
  3198. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3199. struct snd_ctl_elem_info *uinfo)
  3200. {
  3201. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3202. uinfo->count = ADM_MAX_CHANNELS;
  3203. uinfo->value.integer.min = 0;
  3204. uinfo->value.integer.max = WEIGHT_0_DB;
  3205. return 0;
  3206. }
  3207. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3208. struct snd_ctl_elem_value *ucontrol)
  3209. {
  3210. u16 fe_id = 0, out_ch = 0;
  3211. int i, weight;
  3212. fe_id = ((struct soc_multi_mixer_control *)
  3213. kcontrol->private_value)->shift;
  3214. out_ch = ((struct soc_multi_mixer_control *)
  3215. kcontrol->private_value)->rshift;
  3216. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3217. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3218. return -EINVAL;
  3219. }
  3220. if (out_ch >= ADM_MAX_CHANNELS) {
  3221. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3222. return -EINVAL;
  3223. }
  3224. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3225. __func__, fe_id,
  3226. ucontrol->value.integer.value[0],
  3227. ucontrol->value.integer.value[1],
  3228. ucontrol->value.integer.value[2],
  3229. ucontrol->value.integer.value[3],
  3230. ucontrol->value.integer.value[4],
  3231. ucontrol->value.integer.value[5],
  3232. ucontrol->value.integer.value[6],
  3233. ucontrol->value.integer.value[7]);
  3234. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3235. weight = ucontrol->value.integer.value[i];
  3236. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3237. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3238. __func__, fe_id, out_ch, i,
  3239. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3240. }
  3241. return 0;
  3242. }
  3243. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3244. struct snd_ctl_elem_value *ucontrol)
  3245. {
  3246. u16 fe_id = 0, out_ch = 0;
  3247. int i;
  3248. fe_id = ((struct soc_multi_mixer_control *)
  3249. kcontrol->private_value)->shift;
  3250. out_ch = ((struct soc_multi_mixer_control *)
  3251. kcontrol->private_value)->rshift;
  3252. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3253. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3254. return -EINVAL;
  3255. }
  3256. if (out_ch >= ADM_MAX_CHANNELS) {
  3257. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3258. return -EINVAL;
  3259. }
  3260. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3261. ucontrol->value.integer.value[i] =
  3262. channel_mixer[fe_id].channel_weight[out_ch][i];
  3263. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3264. __func__, fe_id,
  3265. ucontrol->value.integer.value[0],
  3266. ucontrol->value.integer.value[1],
  3267. ucontrol->value.integer.value[2],
  3268. ucontrol->value.integer.value[3],
  3269. ucontrol->value.integer.value[4],
  3270. ucontrol->value.integer.value[5],
  3271. ucontrol->value.integer.value[6],
  3272. ucontrol->value.integer.value[7]);
  3273. return 0;
  3274. }
  3275. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3276. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3277. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3278. msm_pcm_get_channel_rule_index,
  3279. msm_pcm_put_channel_rule_index),
  3280. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3281. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3282. msm_pcm_get_channel_rule_index,
  3283. msm_pcm_put_channel_rule_index),
  3284. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3285. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3286. msm_pcm_get_channel_rule_index,
  3287. msm_pcm_put_channel_rule_index),
  3288. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3289. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3290. msm_pcm_get_channel_rule_index,
  3291. msm_pcm_put_channel_rule_index),
  3292. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3293. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3294. msm_pcm_get_channel_rule_index,
  3295. msm_pcm_put_channel_rule_index),
  3296. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3297. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3298. msm_pcm_get_channel_rule_index,
  3299. msm_pcm_put_channel_rule_index),
  3300. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3301. MSM_FRONTEND_DAI_MULTIMEDIA1, 10, 0,
  3302. msm_pcm_get_out_chs,
  3303. msm_pcm_put_out_chs),
  3304. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3305. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3306. msm_pcm_get_out_chs,
  3307. msm_pcm_put_out_chs),
  3308. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3309. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3310. msm_pcm_get_out_chs,
  3311. msm_pcm_put_out_chs),
  3312. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3313. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3314. msm_pcm_get_out_chs,
  3315. msm_pcm_put_out_chs),
  3316. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3317. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3318. msm_pcm_get_out_chs,
  3319. msm_pcm_put_out_chs),
  3320. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3321. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3322. msm_pcm_get_out_chs,
  3323. msm_pcm_put_out_chs),
  3324. {
  3325. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3326. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3327. .name = "MultiMedia1 Channel Mixer",
  3328. .info = msm_pcm_channel_mixer_info,
  3329. .get = msm_pcm_channel_mixer_get,
  3330. .put = msm_pcm_channel_mixer_put,
  3331. .private_value = (unsigned long)&(mm1_channel_mux)
  3332. },
  3333. {
  3334. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3335. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3336. .name = "MultiMedia2 Channel Mixer",
  3337. .info = msm_pcm_channel_mixer_info,
  3338. .get = msm_pcm_channel_mixer_get,
  3339. .put = msm_pcm_channel_mixer_put,
  3340. .private_value = (unsigned long)&(mm2_channel_mux)
  3341. },
  3342. {
  3343. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3344. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3345. .name = "MultiMedia3 Channel Mixer",
  3346. .info = msm_pcm_channel_mixer_info,
  3347. .get = msm_pcm_channel_mixer_get,
  3348. .put = msm_pcm_channel_mixer_put,
  3349. .private_value = (unsigned long)&(mm3_channel_mux)
  3350. },
  3351. {
  3352. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3353. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3354. .name = "MultiMedia4 Channel Mixer",
  3355. .info = msm_pcm_channel_mixer_info,
  3356. .get = msm_pcm_channel_mixer_get,
  3357. .put = msm_pcm_channel_mixer_put,
  3358. .private_value = (unsigned long)&(mm4_channel_mux)
  3359. },
  3360. {
  3361. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3362. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3363. .name = "MultiMedia1 Output Channel1",
  3364. .info = msm_pcm_channel_weight_info,
  3365. .get = msm_pcm_channel_weight_get,
  3366. .put = msm_pcm_channel_weight_put,
  3367. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3368. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3369. },
  3370. {
  3371. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3372. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3373. .name = "MultiMedia1 Output Channel2",
  3374. .info = msm_pcm_channel_weight_info,
  3375. .get = msm_pcm_channel_weight_get,
  3376. .put = msm_pcm_channel_weight_put,
  3377. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3378. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3379. },
  3380. {
  3381. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3382. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3383. .name = "MultiMedia1 Output Channel3",
  3384. .info = msm_pcm_channel_weight_info,
  3385. .get = msm_pcm_channel_weight_get,
  3386. .put = msm_pcm_channel_weight_put,
  3387. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3388. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3389. },
  3390. {
  3391. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3392. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3393. .name = "MultiMedia1 Output Channel4",
  3394. .info = msm_pcm_channel_weight_info,
  3395. .get = msm_pcm_channel_weight_get,
  3396. .put = msm_pcm_channel_weight_put,
  3397. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3398. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3399. },
  3400. {
  3401. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3402. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3403. .name = "MultiMedia1 Output Channel5",
  3404. .info = msm_pcm_channel_weight_info,
  3405. .get = msm_pcm_channel_weight_get,
  3406. .put = msm_pcm_channel_weight_put,
  3407. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3408. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3409. },
  3410. {
  3411. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3412. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3413. .name = "MultiMedia1 Output Channel6",
  3414. .info = msm_pcm_channel_weight_info,
  3415. .get = msm_pcm_channel_weight_get,
  3416. .put = msm_pcm_channel_weight_put,
  3417. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3418. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3419. },
  3420. {
  3421. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3422. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3423. .name = "MultiMedia1 Output Channel7",
  3424. .info = msm_pcm_channel_weight_info,
  3425. .get = msm_pcm_channel_weight_get,
  3426. .put = msm_pcm_channel_weight_put,
  3427. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3428. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3429. },
  3430. {
  3431. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3432. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3433. .name = "MultiMedia1 Output Channel8",
  3434. .info = msm_pcm_channel_weight_info,
  3435. .get = msm_pcm_channel_weight_get,
  3436. .put = msm_pcm_channel_weight_put,
  3437. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3438. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3439. },
  3440. {
  3441. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3442. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3443. .name = "MultiMedia1 Output Channel9",
  3444. .info = msm_pcm_channel_weight_info,
  3445. .get = msm_pcm_channel_weight_get,
  3446. .put = msm_pcm_channel_weight_put,
  3447. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3448. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3449. },
  3450. {
  3451. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3452. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3453. .name = "MultiMedia1 Output Channel10",
  3454. .info = msm_pcm_channel_weight_info,
  3455. .get = msm_pcm_channel_weight_get,
  3456. .put = msm_pcm_channel_weight_put,
  3457. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3458. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3459. },
  3460. {
  3461. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3462. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3463. .name = "MultiMedia2 Output Channel1",
  3464. .info = msm_pcm_channel_weight_info,
  3465. .get = msm_pcm_channel_weight_get,
  3466. .put = msm_pcm_channel_weight_put,
  3467. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3468. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3469. },
  3470. {
  3471. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3472. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3473. .name = "MultiMedia2 Output Channel2",
  3474. .info = msm_pcm_channel_weight_info,
  3475. .get = msm_pcm_channel_weight_get,
  3476. .put = msm_pcm_channel_weight_put,
  3477. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3478. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3479. },
  3480. {
  3481. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3482. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3483. .name = "MultiMedia2 Output Channel3",
  3484. .info = msm_pcm_channel_weight_info,
  3485. .get = msm_pcm_channel_weight_get,
  3486. .put = msm_pcm_channel_weight_put,
  3487. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3488. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3489. },
  3490. {
  3491. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3492. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3493. .name = "MultiMedia3 Output Channel1",
  3494. .info = msm_pcm_channel_weight_info,
  3495. .get = msm_pcm_channel_weight_get,
  3496. .put = msm_pcm_channel_weight_put,
  3497. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3498. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3499. },
  3500. {
  3501. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3502. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3503. .name = "MultiMedia3 Output Channel2",
  3504. .info = msm_pcm_channel_weight_info,
  3505. .get = msm_pcm_channel_weight_get,
  3506. .put = msm_pcm_channel_weight_put,
  3507. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3508. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3509. },
  3510. {
  3511. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3512. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3513. .name = "MultiMedia1 Channel1",
  3514. .info = msm_pcm_channel_input_be_info,
  3515. .get = msm_pcm_channel_input_be_get,
  3516. .put = msm_pcm_channel_input_be_put,
  3517. .private_value = (unsigned long)&(mm1_ch1_enum)
  3518. },
  3519. {
  3520. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3521. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3522. .name = "MultiMedia1 Channel2",
  3523. .info = msm_pcm_channel_input_be_info,
  3524. .get = msm_pcm_channel_input_be_get,
  3525. .put = msm_pcm_channel_input_be_put,
  3526. .private_value = (unsigned long)&(mm1_ch2_enum)
  3527. },
  3528. {
  3529. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3530. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3531. .name = "MultiMedia1 Channel3",
  3532. .info = msm_pcm_channel_input_be_info,
  3533. .get = msm_pcm_channel_input_be_get,
  3534. .put = msm_pcm_channel_input_be_put,
  3535. .private_value = (unsigned long)&(mm1_ch3_enum)
  3536. },
  3537. {
  3538. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3539. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3540. .name = "MultiMedia1 Channel4",
  3541. .info = msm_pcm_channel_input_be_info,
  3542. .get = msm_pcm_channel_input_be_get,
  3543. .put = msm_pcm_channel_input_be_put,
  3544. .private_value = (unsigned long)&(mm1_ch4_enum)
  3545. },
  3546. {
  3547. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3548. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3549. .name = "MultiMedia1 Channel5",
  3550. .info = msm_pcm_channel_input_be_info,
  3551. .get = msm_pcm_channel_input_be_get,
  3552. .put = msm_pcm_channel_input_be_put,
  3553. .private_value = (unsigned long)&(mm1_ch5_enum)
  3554. },
  3555. {
  3556. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3557. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3558. .name = "MultiMedia1 Channel6",
  3559. .info = msm_pcm_channel_input_be_info,
  3560. .get = msm_pcm_channel_input_be_get,
  3561. .put = msm_pcm_channel_input_be_put,
  3562. .private_value = (unsigned long)&(mm1_ch6_enum)
  3563. },
  3564. {
  3565. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3566. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3567. .name = "MultiMedia1 Channel7",
  3568. .info = msm_pcm_channel_input_be_info,
  3569. .get = msm_pcm_channel_input_be_get,
  3570. .put = msm_pcm_channel_input_be_put,
  3571. .private_value = (unsigned long)&(mm1_ch7_enum)
  3572. },
  3573. {
  3574. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3575. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3576. .name = "MultiMedia1 Channel8",
  3577. .info = msm_pcm_channel_input_be_info,
  3578. .get = msm_pcm_channel_input_be_get,
  3579. .put = msm_pcm_channel_input_be_put,
  3580. .private_value = (unsigned long)&(mm1_ch8_enum)
  3581. },
  3582. };
  3583. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3584. struct snd_ctl_elem_value *ucontrol)
  3585. {
  3586. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3587. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3588. ucontrol->value.integer.value[0]);
  3589. return 0;
  3590. }
  3591. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3592. struct snd_ctl_elem_value *ucontrol)
  3593. {
  3594. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3595. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3596. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3597. return 0;
  3598. }
  3599. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  3600. struct snd_ctl_elem_value *ucontrol)
  3601. {
  3602. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  3603. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  3604. ucontrol->value.integer.value[0]);
  3605. return 0;
  3606. }
  3607. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  3608. struct snd_ctl_elem_value *ucontrol)
  3609. {
  3610. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  3611. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  3612. __func__, msm_ec_ref_ch_downmixed);
  3613. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  3614. return 0;
  3615. }
  3616. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  3617. struct snd_ctl_elem_value *ucontrol)
  3618. {
  3619. int i = 0, ret = 0;
  3620. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  3621. int out_channel_idx = ((struct soc_multi_mixer_control *)
  3622. kcontrol->private_value)->shift;
  3623. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  3624. weights[i] = ucontrol->value.integer.value[i];
  3625. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  3626. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  3627. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  3628. return ret;
  3629. }
  3630. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3631. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  3632. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  3633. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3634. struct snd_ctl_elem_value *ucontrol)
  3635. {
  3636. switch (msm_ec_ref_bit_format) {
  3637. case SNDRV_PCM_FORMAT_S24_LE:
  3638. ucontrol->value.integer.value[0] = 2;
  3639. break;
  3640. case SNDRV_PCM_FORMAT_S16_LE:
  3641. ucontrol->value.integer.value[0] = 1;
  3642. break;
  3643. default:
  3644. ucontrol->value.integer.value[0] = 0;
  3645. break;
  3646. }
  3647. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3648. __func__, ucontrol->value.integer.value[0]);
  3649. return 0;
  3650. }
  3651. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3652. struct snd_ctl_elem_value *ucontrol)
  3653. {
  3654. u16 bit_width = 0;
  3655. switch (ucontrol->value.integer.value[0]) {
  3656. case 2:
  3657. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3658. break;
  3659. case 1:
  3660. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3661. break;
  3662. default:
  3663. msm_ec_ref_bit_format = 0;
  3664. break;
  3665. }
  3666. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3667. bit_width = 16;
  3668. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3669. bit_width = 24;
  3670. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3671. __func__, msm_ec_ref_bit_format);
  3672. adm_ec_ref_rx_bit_width(bit_width);
  3673. return 0;
  3674. }
  3675. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3676. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3677. struct snd_ctl_elem_value *ucontrol)
  3678. {
  3679. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3680. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3681. __func__, ucontrol->value.integer.value[0]);
  3682. return 0;
  3683. }
  3684. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3685. struct snd_ctl_elem_value *ucontrol)
  3686. {
  3687. switch (ucontrol->value.integer.value[0]) {
  3688. case 0:
  3689. msm_ec_ref_sampling_rate = 0;
  3690. break;
  3691. case 1:
  3692. msm_ec_ref_sampling_rate = 8000;
  3693. break;
  3694. case 2:
  3695. msm_ec_ref_sampling_rate = 16000;
  3696. break;
  3697. case 3:
  3698. msm_ec_ref_sampling_rate = 32000;
  3699. break;
  3700. case 4:
  3701. msm_ec_ref_sampling_rate = 44100;
  3702. break;
  3703. case 5:
  3704. msm_ec_ref_sampling_rate = 48000;
  3705. break;
  3706. case 6:
  3707. msm_ec_ref_sampling_rate = 96000;
  3708. break;
  3709. case 7:
  3710. msm_ec_ref_sampling_rate = 192000;
  3711. break;
  3712. case 8:
  3713. msm_ec_ref_sampling_rate = 384000;
  3714. break;
  3715. default:
  3716. msm_ec_ref_sampling_rate = 48000;
  3717. break;
  3718. }
  3719. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3720. __func__, msm_ec_ref_sampling_rate);
  3721. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3722. return 0;
  3723. }
  3724. static int get_ec_ref_port_id(int value, int *index)
  3725. {
  3726. int port_id;
  3727. switch (value) {
  3728. case 0:
  3729. *index = 0;
  3730. port_id = AFE_PORT_INVALID;
  3731. break;
  3732. case 1:
  3733. *index = 1;
  3734. port_id = SLIMBUS_0_RX;
  3735. break;
  3736. case 2:
  3737. *index = 2;
  3738. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3739. break;
  3740. case 3:
  3741. *index = 3;
  3742. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3743. break;
  3744. case 4:
  3745. *index = 4;
  3746. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3747. break;
  3748. case 5:
  3749. *index = 5;
  3750. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3751. break;
  3752. case 6:
  3753. *index = 6;
  3754. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3755. break;
  3756. case 7:
  3757. *index = 7;
  3758. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3759. break;
  3760. case 9:
  3761. *index = 9;
  3762. port_id = SLIMBUS_5_RX;
  3763. break;
  3764. case 10:
  3765. *index = 10;
  3766. port_id = SLIMBUS_1_TX;
  3767. break;
  3768. case 11:
  3769. *index = 11;
  3770. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3771. break;
  3772. case 12:
  3773. *index = 12;
  3774. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3775. break;
  3776. case 13:
  3777. *index = 13;
  3778. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3779. break;
  3780. case 14:
  3781. *index = 14;
  3782. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3783. break;
  3784. case 15:
  3785. *index = 15;
  3786. port_id = SLIMBUS_6_RX;
  3787. break;
  3788. case 16:
  3789. *index = 16;
  3790. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3791. break;
  3792. case 17:
  3793. *index = 17;
  3794. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3795. break;
  3796. case 18:
  3797. *index = 18;
  3798. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3799. break;
  3800. case 19:
  3801. *index = 19;
  3802. port_id = AFE_PORT_ID_USB_RX;
  3803. break;
  3804. case 20:
  3805. *index = 20;
  3806. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3807. break;
  3808. case 21:
  3809. *index = 21;
  3810. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3811. break;
  3812. case 22:
  3813. *index = 22;
  3814. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3815. break;
  3816. case 23:
  3817. *index = 23;
  3818. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3819. break;
  3820. case 24:
  3821. *index = 24;
  3822. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3823. break;
  3824. case 25:
  3825. *index = 25;
  3826. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3827. break;
  3828. case 26:
  3829. *index = 26;
  3830. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3831. break;
  3832. case 27:
  3833. *index = 27;
  3834. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3835. break;
  3836. case 28:
  3837. *index = 28;
  3838. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3839. break;
  3840. case 29:
  3841. *index = 29;
  3842. port_id = SLIMBUS_7_RX;
  3843. break;
  3844. case 30:
  3845. *index = 30;
  3846. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3847. break;
  3848. case 31:
  3849. *index = 31;
  3850. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3851. break;
  3852. case 32:
  3853. *index = 32;
  3854. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3855. break;
  3856. case 33:
  3857. *index = 33;
  3858. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3859. break;
  3860. case 34:
  3861. *index = 34;
  3862. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3863. break;
  3864. case 35:
  3865. *index = 35;
  3866. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  3867. break;
  3868. case 36:
  3869. *index = 36;
  3870. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3871. break;
  3872. default:
  3873. *index = 0; /* NONE */
  3874. pr_err("%s: Invalid value %d\n", __func__, value);
  3875. port_id = AFE_PORT_INVALID;
  3876. break;
  3877. }
  3878. return port_id;
  3879. }
  3880. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  3881. struct snd_ctl_elem_value *ucontrol)
  3882. {
  3883. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  3884. mutex_lock(&routing_lock);
  3885. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  3886. mutex_unlock(&routing_lock);
  3887. return 0;
  3888. }
  3889. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  3890. struct snd_ctl_elem_value *ucontrol)
  3891. {
  3892. int value = ucontrol->value.integer.value[0];
  3893. mutex_lock(&routing_lock);
  3894. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  3895. &afe_loopback_tx_port_index);
  3896. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  3897. __func__, afe_loopback_tx_port_index);
  3898. mutex_unlock(&routing_lock);
  3899. return 0;
  3900. }
  3901. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3902. "32000", "44100", "48000", "96000", "192000", "384000"};
  3903. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3904. SOC_ENUM_SINGLE_EXT(17, ec_ref_ch_text),
  3905. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3906. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3907. };
  3908. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3909. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3910. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3911. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3912. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3913. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3914. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3915. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3916. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  3917. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  3918. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  3919. };
  3920. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3921. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3922. };
  3923. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3924. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3925. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3926. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3927. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3928. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3929. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3930. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  3931. msm_route_ec_ref_params_enum[0],
  3932. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  3933. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  3934. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  3935. msm_ec_ref_chmixer_weights_put),
  3936. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  3937. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  3938. msm_ec_ref_chmixer_weights_put),
  3939. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  3940. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  3941. msm_ec_ref_chmixer_weights_put),
  3942. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  3943. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  3944. msm_ec_ref_chmixer_weights_put),
  3945. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  3946. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  3947. msm_ec_ref_chmixer_weights_put),
  3948. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  3949. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  3950. msm_ec_ref_chmixer_weights_put),
  3951. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  3952. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  3953. };
  3954. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3955. struct snd_ctl_elem_value *ucontrol)
  3956. {
  3957. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3958. mutex_lock(&routing_lock);
  3959. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3960. mutex_unlock(&routing_lock);
  3961. return 0;
  3962. }
  3963. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3964. struct snd_ctl_elem_value *ucontrol)
  3965. {
  3966. int value = ucontrol->value.integer.value[0];
  3967. struct snd_soc_dapm_widget *widget =
  3968. snd_soc_dapm_kcontrol_widget(kcontrol);
  3969. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3970. struct snd_soc_dapm_update *update = NULL;
  3971. mutex_lock(&routing_lock);
  3972. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  3973. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  3974. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3975. __func__, msm_route_ec_ref_rx);
  3976. mutex_unlock(&routing_lock);
  3977. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3978. msm_route_ec_ref_rx, e, update);
  3979. return 0;
  3980. }
  3981. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3982. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3983. msm_route_ec_ref_rx_enum[0],
  3984. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3985. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3986. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3987. msm_route_ec_ref_rx_enum[0],
  3988. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3989. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3990. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3991. msm_route_ec_ref_rx_enum[0],
  3992. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3993. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3994. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3995. msm_route_ec_ref_rx_enum[0],
  3996. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3997. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3998. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3999. msm_route_ec_ref_rx_enum[0],
  4000. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4001. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  4002. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  4003. msm_route_ec_ref_rx_enum[0],
  4004. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4005. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  4006. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  4007. msm_route_ec_ref_rx_enum[0],
  4008. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4009. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  4010. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  4011. msm_route_ec_ref_rx_enum[0],
  4012. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4013. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  4014. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  4015. msm_route_ec_ref_rx_enum[0],
  4016. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4017. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  4018. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  4019. msm_route_ec_ref_rx_enum[0],
  4020. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4021. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  4022. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  4023. msm_route_ec_ref_rx_enum[0],
  4024. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4025. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  4026. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  4027. msm_route_ec_ref_rx_enum[0],
  4028. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4029. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  4030. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  4031. msm_route_ec_ref_rx_enum[0],
  4032. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4033. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  4034. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  4035. msm_route_ec_ref_rx_enum[0],
  4036. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4037. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  4038. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  4039. msm_route_ec_ref_rx_enum[0],
  4040. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4041. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  4042. struct snd_ctl_elem_value *ucontrol)
  4043. {
  4044. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  4045. mutex_lock(&routing_lock);
  4046. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  4047. mutex_unlock(&routing_lock);
  4048. return 0;
  4049. }
  4050. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  4051. struct snd_ctl_elem_value *ucontrol)
  4052. {
  4053. struct snd_soc_dapm_widget *widget =
  4054. snd_soc_dapm_kcontrol_widget(kcontrol);
  4055. int mux = ucontrol->value.enumerated.item[0];
  4056. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  4057. int ret = 1;
  4058. bool state = true;
  4059. uint16_t ext_ec_ref_port_id;
  4060. struct snd_soc_dapm_update *update = NULL;
  4061. if (mux >= e->items) {
  4062. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  4063. return -EINVAL;
  4064. }
  4065. mutex_lock(&routing_lock);
  4066. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  4067. switch (msm_route_ext_ec_ref) {
  4068. case EXT_EC_REF_PRI_MI2S_TX:
  4069. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4070. break;
  4071. case EXT_EC_REF_SEC_MI2S_TX:
  4072. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4073. break;
  4074. case EXT_EC_REF_TERT_MI2S_TX:
  4075. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4076. break;
  4077. case EXT_EC_REF_QUAT_MI2S_TX:
  4078. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4079. break;
  4080. case EXT_EC_REF_QUIN_MI2S_TX:
  4081. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  4082. break;
  4083. case EXT_EC_REF_SLIM_1_TX:
  4084. ext_ec_ref_port_id = SLIMBUS_1_TX;
  4085. break;
  4086. case EXT_EC_REF_SEC_TDM_TX:
  4087. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  4088. break;
  4089. case EXT_EC_REF_NONE:
  4090. default:
  4091. ext_ec_ref_port_id = AFE_PORT_INVALID;
  4092. state = false;
  4093. break;
  4094. }
  4095. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  4096. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  4097. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  4098. mutex_unlock(&routing_lock);
  4099. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  4100. update);
  4101. } else {
  4102. ret = -EINVAL;
  4103. mutex_unlock(&routing_lock);
  4104. }
  4105. return ret;
  4106. }
  4107. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  4108. "SEC_MI2S_TX", "TERT_MI2S_TX",
  4109. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  4110. "SLIM_1_TX", "SEC_TDM_TX"};
  4111. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  4112. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  4113. };
  4114. static const struct snd_kcontrol_new voc_ext_ec_mux =
  4115. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  4116. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  4117. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  4118. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4119. MSM_BACKEND_DAI_PRI_I2S_RX,
  4120. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4121. msm_routing_put_audio_mixer),
  4122. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4123. MSM_BACKEND_DAI_PRI_I2S_RX,
  4124. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4125. msm_routing_put_audio_mixer),
  4126. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4127. MSM_BACKEND_DAI_PRI_I2S_RX,
  4128. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4129. msm_routing_put_audio_mixer),
  4130. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4131. MSM_BACKEND_DAI_PRI_I2S_RX,
  4132. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4133. msm_routing_put_audio_mixer),
  4134. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4135. MSM_BACKEND_DAI_PRI_I2S_RX,
  4136. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4137. msm_routing_put_audio_mixer),
  4138. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4139. MSM_BACKEND_DAI_PRI_I2S_RX,
  4140. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4141. msm_routing_put_audio_mixer),
  4142. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4143. MSM_BACKEND_DAI_PRI_I2S_RX,
  4144. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4145. msm_routing_put_audio_mixer),
  4146. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4147. MSM_BACKEND_DAI_PRI_I2S_RX,
  4148. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4149. msm_routing_put_audio_mixer),
  4150. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4151. MSM_BACKEND_DAI_PRI_I2S_RX,
  4152. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4153. msm_routing_put_audio_mixer),
  4154. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4155. MSM_BACKEND_DAI_PRI_I2S_RX,
  4156. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4157. msm_routing_put_audio_mixer),
  4158. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4159. MSM_BACKEND_DAI_PRI_I2S_RX,
  4160. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4161. msm_routing_put_audio_mixer),
  4162. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4163. MSM_BACKEND_DAI_PRI_I2S_RX,
  4164. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4165. msm_routing_put_audio_mixer),
  4166. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4167. MSM_BACKEND_DAI_PRI_I2S_RX,
  4168. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4169. msm_routing_put_audio_mixer),
  4170. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4171. MSM_BACKEND_DAI_PRI_I2S_RX,
  4172. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4173. msm_routing_put_audio_mixer),
  4174. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4175. MSM_BACKEND_DAI_PRI_I2S_RX,
  4176. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4177. msm_routing_put_audio_mixer),
  4178. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4179. MSM_BACKEND_DAI_PRI_I2S_RX,
  4180. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4181. msm_routing_put_audio_mixer),
  4182. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4183. MSM_BACKEND_DAI_PRI_I2S_RX,
  4184. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4185. msm_routing_put_audio_mixer),
  4186. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4187. MSM_BACKEND_DAI_PRI_I2S_RX,
  4188. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4189. msm_routing_put_audio_mixer),
  4190. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4191. MSM_BACKEND_DAI_PRI_I2S_RX,
  4192. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4193. msm_routing_put_audio_mixer),
  4194. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4195. MSM_BACKEND_DAI_PRI_I2S_RX,
  4196. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4197. msm_routing_put_audio_mixer),
  4198. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4199. MSM_BACKEND_DAI_PRI_I2S_RX,
  4200. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4201. msm_routing_put_audio_mixer),
  4202. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4203. MSM_BACKEND_DAI_PRI_I2S_RX,
  4204. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4205. msm_routing_put_audio_mixer),
  4206. };
  4207. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  4208. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4209. MSM_BACKEND_DAI_SEC_I2S_RX,
  4210. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4211. msm_routing_put_audio_mixer),
  4212. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4213. MSM_BACKEND_DAI_SEC_I2S_RX,
  4214. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4215. msm_routing_put_audio_mixer),
  4216. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4217. MSM_BACKEND_DAI_SEC_I2S_RX,
  4218. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4219. msm_routing_put_audio_mixer),
  4220. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4221. MSM_BACKEND_DAI_SEC_I2S_RX,
  4222. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4223. msm_routing_put_audio_mixer),
  4224. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4225. MSM_BACKEND_DAI_SEC_I2S_RX,
  4226. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4227. msm_routing_put_audio_mixer),
  4228. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4229. MSM_BACKEND_DAI_SEC_I2S_RX,
  4230. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4231. msm_routing_put_audio_mixer),
  4232. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4233. MSM_BACKEND_DAI_SEC_I2S_RX,
  4234. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4235. msm_routing_put_audio_mixer),
  4236. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4237. MSM_BACKEND_DAI_SEC_I2S_RX,
  4238. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4239. msm_routing_put_audio_mixer),
  4240. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4241. MSM_BACKEND_DAI_SEC_I2S_RX,
  4242. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4243. msm_routing_put_audio_mixer),
  4244. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4245. MSM_BACKEND_DAI_SEC_I2S_RX,
  4246. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4247. msm_routing_put_audio_mixer),
  4248. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4249. MSM_BACKEND_DAI_SEC_I2S_RX,
  4250. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4251. msm_routing_put_audio_mixer),
  4252. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4253. MSM_BACKEND_DAI_SEC_I2S_RX,
  4254. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4255. msm_routing_put_audio_mixer),
  4256. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4257. MSM_BACKEND_DAI_SEC_I2S_RX,
  4258. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4259. msm_routing_put_audio_mixer),
  4260. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4261. MSM_BACKEND_DAI_SEC_I2S_RX,
  4262. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4263. msm_routing_put_audio_mixer),
  4264. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4265. MSM_BACKEND_DAI_SEC_I2S_RX,
  4266. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4267. msm_routing_put_audio_mixer),
  4268. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4269. MSM_BACKEND_DAI_SEC_I2S_RX,
  4270. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4271. msm_routing_put_audio_mixer),
  4272. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4273. MSM_BACKEND_DAI_SEC_I2S_RX,
  4274. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4275. msm_routing_put_audio_mixer),
  4276. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4277. MSM_BACKEND_DAI_SEC_I2S_RX,
  4278. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4279. msm_routing_put_audio_mixer),
  4280. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4281. MSM_BACKEND_DAI_SEC_I2S_RX,
  4282. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4283. msm_routing_put_audio_mixer),
  4284. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4285. MSM_BACKEND_DAI_SEC_I2S_RX,
  4286. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4287. msm_routing_put_audio_mixer),
  4288. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4289. MSM_BACKEND_DAI_SEC_I2S_RX,
  4290. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4291. msm_routing_put_audio_mixer),
  4292. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4293. MSM_BACKEND_DAI_SEC_I2S_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. };
  4297. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  4298. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4299. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4300. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4301. msm_routing_put_audio_mixer),
  4302. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4303. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4304. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4305. msm_routing_put_audio_mixer),
  4306. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4307. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4308. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4309. msm_routing_put_audio_mixer),
  4310. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4311. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4312. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4313. msm_routing_put_audio_mixer),
  4314. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4315. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4316. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4317. msm_routing_put_audio_mixer),
  4318. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4319. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4320. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4321. msm_routing_put_audio_mixer),
  4322. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4323. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4324. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4325. msm_routing_put_audio_mixer),
  4326. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4327. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4328. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4329. msm_routing_put_audio_mixer),
  4330. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4331. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4332. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4333. msm_routing_put_audio_mixer),
  4334. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4335. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4336. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4337. msm_routing_put_audio_mixer),
  4338. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4339. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4340. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4341. msm_routing_put_audio_mixer),
  4342. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4343. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4344. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4345. msm_routing_put_audio_mixer),
  4346. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4347. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4348. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4349. msm_routing_put_audio_mixer),
  4350. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4351. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4352. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4353. msm_routing_put_audio_mixer),
  4354. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4355. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4356. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4357. msm_routing_put_audio_mixer),
  4358. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4359. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4360. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4361. msm_routing_put_audio_mixer),
  4362. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4363. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4364. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4365. msm_routing_put_audio_mixer),
  4366. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4367. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4368. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4369. msm_routing_put_audio_mixer),
  4370. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4371. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4372. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4373. msm_routing_put_audio_mixer),
  4374. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4375. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4376. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4377. msm_routing_put_audio_mixer),
  4378. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4379. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4380. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4381. msm_routing_put_audio_mixer),
  4382. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4383. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. };
  4387. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  4388. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4389. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4390. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4391. msm_routing_put_audio_mixer),
  4392. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4393. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4394. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4395. msm_routing_put_audio_mixer),
  4396. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4397. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4398. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4399. msm_routing_put_audio_mixer),
  4400. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4401. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4402. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4403. msm_routing_put_audio_mixer),
  4404. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4405. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4406. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4407. msm_routing_put_audio_mixer),
  4408. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4409. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4410. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4411. msm_routing_put_audio_mixer),
  4412. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4413. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4414. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4415. msm_routing_put_audio_mixer),
  4416. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4417. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4418. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4419. msm_routing_put_audio_mixer),
  4420. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4421. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4422. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4423. msm_routing_put_audio_mixer),
  4424. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4425. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4426. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4427. msm_routing_put_audio_mixer),
  4428. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4429. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4430. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4431. msm_routing_put_audio_mixer),
  4432. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4433. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4434. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4435. msm_routing_put_audio_mixer),
  4436. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4437. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4438. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4439. msm_routing_put_audio_mixer),
  4440. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4441. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4442. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4443. msm_routing_put_audio_mixer),
  4444. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4445. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4446. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4447. msm_routing_put_audio_mixer),
  4448. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4449. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4450. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4451. msm_routing_put_audio_mixer),
  4452. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4453. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4454. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4455. msm_routing_put_audio_mixer),
  4456. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4457. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4458. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4459. msm_routing_put_audio_mixer),
  4460. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4461. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4462. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4463. msm_routing_put_audio_mixer),
  4464. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4465. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4466. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4467. msm_routing_put_audio_mixer),
  4468. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4469. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4470. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4471. msm_routing_put_audio_mixer),
  4472. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4473. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4474. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4475. msm_routing_put_audio_mixer),
  4476. };
  4477. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4478. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4479. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4480. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4481. msm_routing_put_audio_mixer),
  4482. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4483. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4487. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4488. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4489. msm_routing_put_audio_mixer),
  4490. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4491. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4492. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4493. msm_routing_put_audio_mixer),
  4494. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4495. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4499. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4500. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4501. msm_routing_put_audio_mixer),
  4502. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4503. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4504. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4505. msm_routing_put_audio_mixer),
  4506. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4507. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4511. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4512. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4513. msm_routing_put_audio_mixer),
  4514. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4515. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4516. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4517. msm_routing_put_audio_mixer),
  4518. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4519. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4520. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4521. msm_routing_put_audio_mixer),
  4522. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4523. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4524. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4525. msm_routing_put_audio_mixer),
  4526. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4527. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4528. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4529. msm_routing_put_audio_mixer),
  4530. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4531. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4532. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4533. msm_routing_put_audio_mixer),
  4534. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4535. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4536. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4537. msm_routing_put_audio_mixer),
  4538. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4539. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4543. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4544. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4545. msm_routing_put_audio_mixer),
  4546. };
  4547. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4548. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4549. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4550. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4551. msm_routing_put_audio_mixer),
  4552. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4553. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4554. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4555. msm_routing_put_audio_mixer),
  4556. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4557. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4561. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4562. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4563. msm_routing_put_audio_mixer),
  4564. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4565. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4566. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4567. msm_routing_put_audio_mixer),
  4568. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4569. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4573. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4574. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4575. msm_routing_put_audio_mixer),
  4576. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4577. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4578. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4579. msm_routing_put_audio_mixer),
  4580. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4581. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4582. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4583. msm_routing_put_audio_mixer),
  4584. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4585. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4586. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4587. msm_routing_put_audio_mixer),
  4588. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4589. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4593. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4594. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4595. msm_routing_put_audio_mixer),
  4596. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4597. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4598. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4599. msm_routing_put_audio_mixer),
  4600. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4601. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4602. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4603. msm_routing_put_audio_mixer),
  4604. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4605. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4606. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4607. msm_routing_put_audio_mixer),
  4608. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4609. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4610. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4611. msm_routing_put_audio_mixer),
  4612. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4613. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4614. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4615. msm_routing_put_audio_mixer),
  4616. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4617. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4618. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4619. msm_routing_put_audio_mixer),
  4620. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4621. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4622. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4623. msm_routing_put_audio_mixer),
  4624. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4625. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4626. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4627. msm_routing_put_audio_mixer),
  4628. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4629. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4630. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4631. msm_routing_put_audio_mixer),
  4632. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4633. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4634. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4635. msm_routing_put_audio_mixer),
  4636. };
  4637. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4638. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4639. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4643. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4644. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4645. msm_routing_put_audio_mixer),
  4646. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4647. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4648. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4649. msm_routing_put_audio_mixer),
  4650. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4651. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4655. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4656. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4657. msm_routing_put_audio_mixer),
  4658. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4659. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4660. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4661. msm_routing_put_audio_mixer),
  4662. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4663. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4667. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4668. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4669. msm_routing_put_audio_mixer),
  4670. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4671. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4672. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4673. msm_routing_put_audio_mixer),
  4674. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4675. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4679. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4680. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4681. msm_routing_put_audio_mixer),
  4682. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4683. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4684. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4685. msm_routing_put_audio_mixer),
  4686. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4687. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4691. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4692. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4693. msm_routing_put_audio_mixer),
  4694. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4695. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4696. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4697. msm_routing_put_audio_mixer),
  4698. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4699. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4700. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4701. msm_routing_put_audio_mixer),
  4702. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4703. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4704. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4705. msm_routing_put_audio_mixer),
  4706. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4707. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4708. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4709. msm_routing_put_audio_mixer),
  4710. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4711. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4712. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4713. msm_routing_put_audio_mixer),
  4714. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4715. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4716. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4717. msm_routing_put_audio_mixer),
  4718. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4719. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4720. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4721. msm_routing_put_audio_mixer),
  4722. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4723. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4724. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4725. msm_routing_put_audio_mixer),
  4726. };
  4727. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4728. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4729. MSM_BACKEND_DAI_MI2S_RX,
  4730. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4731. msm_routing_put_audio_mixer),
  4732. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4733. MSM_BACKEND_DAI_MI2S_RX,
  4734. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4735. msm_routing_put_audio_mixer),
  4736. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4737. MSM_BACKEND_DAI_MI2S_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4741. MSM_BACKEND_DAI_MI2S_RX,
  4742. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4743. msm_routing_put_audio_mixer),
  4744. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4745. MSM_BACKEND_DAI_MI2S_RX,
  4746. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4747. msm_routing_put_audio_mixer),
  4748. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4749. MSM_BACKEND_DAI_MI2S_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4753. MSM_BACKEND_DAI_MI2S_RX,
  4754. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4755. msm_routing_put_audio_mixer),
  4756. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4757. MSM_BACKEND_DAI_MI2S_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4761. MSM_BACKEND_DAI_MI2S_RX,
  4762. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4763. msm_routing_put_audio_mixer),
  4764. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4765. MSM_BACKEND_DAI_MI2S_RX,
  4766. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4767. msm_routing_put_audio_mixer),
  4768. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4769. MSM_BACKEND_DAI_MI2S_RX,
  4770. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4771. msm_routing_put_audio_mixer),
  4772. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4773. MSM_BACKEND_DAI_MI2S_RX,
  4774. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4775. msm_routing_put_audio_mixer),
  4776. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4777. MSM_BACKEND_DAI_MI2S_RX,
  4778. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4779. msm_routing_put_audio_mixer),
  4780. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4781. MSM_BACKEND_DAI_MI2S_RX,
  4782. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4783. msm_routing_put_audio_mixer),
  4784. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4785. MSM_BACKEND_DAI_MI2S_RX,
  4786. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4787. msm_routing_put_audio_mixer),
  4788. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4789. MSM_BACKEND_DAI_MI2S_RX,
  4790. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4791. msm_routing_put_audio_mixer),
  4792. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4793. MSM_BACKEND_DAI_MI2S_RX,
  4794. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4795. msm_routing_put_audio_mixer),
  4796. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4797. MSM_BACKEND_DAI_MI2S_RX,
  4798. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4799. msm_routing_put_audio_mixer),
  4800. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4801. MSM_BACKEND_DAI_MI2S_RX,
  4802. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4803. msm_routing_put_audio_mixer),
  4804. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4805. MSM_BACKEND_DAI_MI2S_RX,
  4806. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4807. msm_routing_put_audio_mixer),
  4808. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4809. MSM_BACKEND_DAI_MI2S_RX,
  4810. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4811. msm_routing_put_audio_mixer),
  4812. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4813. MSM_BACKEND_DAI_MI2S_RX,
  4814. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4815. msm_routing_put_audio_mixer),
  4816. };
  4817. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4818. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4819. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4820. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4821. msm_routing_put_audio_mixer),
  4822. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4823. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4824. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4825. msm_routing_put_audio_mixer),
  4826. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4827. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4828. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4829. msm_routing_put_audio_mixer),
  4830. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4831. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4832. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4833. msm_routing_put_audio_mixer),
  4834. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4835. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4836. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4837. msm_routing_put_audio_mixer),
  4838. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4839. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4840. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4841. msm_routing_put_audio_mixer),
  4842. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4843. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4847. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4848. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4849. msm_routing_put_audio_mixer),
  4850. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4851. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4852. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4853. msm_routing_put_audio_mixer),
  4854. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4855. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4856. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4857. msm_routing_put_audio_mixer),
  4858. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4859. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4860. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4861. msm_routing_put_audio_mixer),
  4862. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4863. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4864. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4865. msm_routing_put_audio_mixer),
  4866. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4867. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4868. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4869. msm_routing_put_audio_mixer),
  4870. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4871. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4872. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4873. msm_routing_put_audio_mixer),
  4874. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4875. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4876. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4877. msm_routing_put_audio_mixer),
  4878. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4879. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4880. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4881. msm_routing_put_audio_mixer),
  4882. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4883. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4884. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4885. msm_routing_put_audio_mixer),
  4886. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4887. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4888. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4889. msm_routing_put_audio_mixer),
  4890. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4891. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4892. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4893. msm_routing_put_audio_mixer),
  4894. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4895. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4896. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4897. msm_routing_put_audio_mixer),
  4898. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4899. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4900. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4901. msm_routing_put_audio_mixer),
  4902. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4903. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4904. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4905. msm_routing_put_audio_mixer),
  4906. };
  4907. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4908. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4909. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4910. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4911. msm_routing_put_audio_mixer),
  4912. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4913. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4914. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4915. msm_routing_put_audio_mixer),
  4916. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4917. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4918. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4919. msm_routing_put_audio_mixer),
  4920. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4921. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4922. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4923. msm_routing_put_audio_mixer),
  4924. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4925. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4926. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4927. msm_routing_put_audio_mixer),
  4928. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4929. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4930. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4931. msm_routing_put_audio_mixer),
  4932. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4933. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4934. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4935. msm_routing_put_audio_mixer),
  4936. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4937. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4938. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4939. msm_routing_put_audio_mixer),
  4940. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4941. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4942. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4943. msm_routing_put_audio_mixer),
  4944. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4945. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4946. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4947. msm_routing_put_audio_mixer),
  4948. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4949. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4950. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4951. msm_routing_put_audio_mixer),
  4952. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4953. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4954. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4955. msm_routing_put_audio_mixer),
  4956. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4957. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4958. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4959. msm_routing_put_audio_mixer),
  4960. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4961. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4962. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4963. msm_routing_put_audio_mixer),
  4964. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4965. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4966. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4967. msm_routing_put_audio_mixer),
  4968. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4969. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4970. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4971. msm_routing_put_audio_mixer),
  4972. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4973. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4974. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4975. msm_routing_put_audio_mixer),
  4976. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4977. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4978. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4979. msm_routing_put_audio_mixer),
  4980. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4981. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4982. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4983. msm_routing_put_audio_mixer),
  4984. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4985. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4986. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4987. msm_routing_put_audio_mixer),
  4988. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4989. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4990. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4991. msm_routing_put_audio_mixer),
  4992. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4993. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4994. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4995. msm_routing_put_audio_mixer),
  4996. };
  4997. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  4998. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4999. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5001. msm_routing_put_audio_mixer),
  5002. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5003. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5004. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5005. msm_routing_put_audio_mixer),
  5006. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5007. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5008. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5009. msm_routing_put_audio_mixer),
  5010. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5011. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5012. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5013. msm_routing_put_audio_mixer),
  5014. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5015. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5016. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5017. msm_routing_put_audio_mixer),
  5018. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5019. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5020. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5021. msm_routing_put_audio_mixer),
  5022. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5023. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5024. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5025. msm_routing_put_audio_mixer),
  5026. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5027. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5028. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5029. msm_routing_put_audio_mixer),
  5030. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5031. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5032. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5033. msm_routing_put_audio_mixer),
  5034. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5035. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5036. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5037. msm_routing_put_audio_mixer),
  5038. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5039. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5040. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5041. msm_routing_put_audio_mixer),
  5042. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5043. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5044. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5045. msm_routing_put_audio_mixer),
  5046. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5047. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5048. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5049. msm_routing_put_audio_mixer),
  5050. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5051. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5052. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5053. msm_routing_put_audio_mixer),
  5054. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5055. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5056. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5057. msm_routing_put_audio_mixer),
  5058. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5059. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5060. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5061. msm_routing_put_audio_mixer),
  5062. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5063. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5064. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5065. msm_routing_put_audio_mixer),
  5066. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5067. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5068. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5069. msm_routing_put_audio_mixer),
  5070. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5071. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5072. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5073. msm_routing_put_audio_mixer),
  5074. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5075. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5079. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5080. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5081. msm_routing_put_audio_mixer),
  5082. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5083. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5084. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5085. msm_routing_put_audio_mixer),
  5086. };
  5087. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  5088. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5089. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5090. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5091. msm_routing_put_audio_mixer),
  5092. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5093. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5095. msm_routing_put_audio_mixer),
  5096. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5097. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5098. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5099. msm_routing_put_audio_mixer),
  5100. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5101. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5102. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5103. msm_routing_put_audio_mixer),
  5104. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5105. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5106. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5107. msm_routing_put_audio_mixer),
  5108. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5109. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5110. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5111. msm_routing_put_audio_mixer),
  5112. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5113. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5114. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5115. msm_routing_put_audio_mixer),
  5116. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5117. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5118. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5119. msm_routing_put_audio_mixer),
  5120. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5121. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5122. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5123. msm_routing_put_audio_mixer),
  5124. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5125. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5126. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5127. msm_routing_put_audio_mixer),
  5128. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5129. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5130. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5131. msm_routing_put_audio_mixer),
  5132. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5133. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5134. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5135. msm_routing_put_audio_mixer),
  5136. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5137. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5138. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5139. msm_routing_put_audio_mixer),
  5140. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5141. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5142. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5143. msm_routing_put_audio_mixer),
  5144. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5145. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5146. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5147. msm_routing_put_audio_mixer),
  5148. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5149. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5150. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5151. msm_routing_put_audio_mixer),
  5152. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5153. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5154. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5155. msm_routing_put_audio_mixer),
  5156. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5157. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5158. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5159. msm_routing_put_audio_mixer),
  5160. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5161. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5162. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5163. msm_routing_put_audio_mixer),
  5164. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5165. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5166. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5167. msm_routing_put_audio_mixer),
  5168. };
  5169. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  5170. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5171. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  5172. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5173. msm_routing_put_audio_mixer),
  5174. };
  5175. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  5176. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5177. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5178. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5179. msm_routing_put_audio_mixer),
  5180. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5181. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5182. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5183. msm_routing_put_audio_mixer),
  5184. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5185. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5186. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5187. msm_routing_put_audio_mixer),
  5188. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5189. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5190. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5191. msm_routing_put_audio_mixer),
  5192. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5193. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5197. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5198. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5199. msm_routing_put_audio_mixer),
  5200. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5201. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5202. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5203. msm_routing_put_audio_mixer),
  5204. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5205. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5206. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5207. msm_routing_put_audio_mixer),
  5208. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5209. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5210. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5211. msm_routing_put_audio_mixer),
  5212. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5213. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5214. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5215. msm_routing_put_audio_mixer),
  5216. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5217. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5218. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5219. msm_routing_put_audio_mixer),
  5220. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5221. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5222. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5223. msm_routing_put_audio_mixer),
  5224. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5225. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5226. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5227. msm_routing_put_audio_mixer),
  5228. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5229. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5230. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5231. msm_routing_put_audio_mixer),
  5232. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5233. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5234. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5235. msm_routing_put_audio_mixer),
  5236. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5237. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5238. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5239. msm_routing_put_audio_mixer),
  5240. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5241. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5242. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5243. msm_routing_put_audio_mixer),
  5244. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5245. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5246. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5247. msm_routing_put_audio_mixer),
  5248. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5249. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5250. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5251. msm_routing_put_audio_mixer),
  5252. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5253. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5254. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5255. msm_routing_put_audio_mixer),
  5256. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5257. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5258. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5259. msm_routing_put_audio_mixer),
  5260. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5261. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5262. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5263. msm_routing_put_audio_mixer),
  5264. };
  5265. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  5266. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_PRI_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_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_MI2S_RX,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. };
  5355. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  5356. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. };
  5421. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  5422. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5423. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5424. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5425. msm_routing_put_audio_mixer),
  5426. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5427. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5428. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5429. msm_routing_put_audio_mixer),
  5430. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5431. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5433. msm_routing_put_audio_mixer),
  5434. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5435. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5436. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5437. msm_routing_put_audio_mixer),
  5438. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5439. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5440. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5441. msm_routing_put_audio_mixer),
  5442. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5443. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5447. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5451. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5459. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. };
  5487. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  5488. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5489. MSM_BACKEND_DAI_HDMI_RX,
  5490. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5491. msm_routing_put_audio_mixer),
  5492. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5493. MSM_BACKEND_DAI_HDMI_RX,
  5494. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5495. msm_routing_put_audio_mixer),
  5496. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5497. MSM_BACKEND_DAI_HDMI_RX,
  5498. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5499. msm_routing_put_audio_mixer),
  5500. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5501. MSM_BACKEND_DAI_HDMI_RX,
  5502. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5503. msm_routing_put_audio_mixer),
  5504. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5505. MSM_BACKEND_DAI_HDMI_RX,
  5506. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5507. msm_routing_put_audio_mixer),
  5508. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5509. MSM_BACKEND_DAI_HDMI_RX,
  5510. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5511. msm_routing_put_audio_mixer),
  5512. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5513. MSM_BACKEND_DAI_HDMI_RX,
  5514. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5515. msm_routing_put_audio_mixer),
  5516. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5517. MSM_BACKEND_DAI_HDMI_RX,
  5518. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5519. msm_routing_put_audio_mixer),
  5520. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5521. MSM_BACKEND_DAI_HDMI_RX,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5525. MSM_BACKEND_DAI_HDMI_RX,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5529. MSM_BACKEND_DAI_HDMI_RX,
  5530. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5531. msm_routing_put_audio_mixer),
  5532. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5533. MSM_BACKEND_DAI_HDMI_RX,
  5534. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5535. msm_routing_put_audio_mixer),
  5536. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5537. MSM_BACKEND_DAI_HDMI_RX,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5541. MSM_BACKEND_DAI_HDMI_RX,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5545. MSM_BACKEND_DAI_HDMI_RX,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_HDMI_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_HDMI_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_HDMI_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_HDMI_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_HDMI_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_HDMI_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_HDMI_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. };
  5577. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5578. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5579. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5580. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5581. msm_routing_put_audio_mixer),
  5582. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5583. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5584. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5585. msm_routing_put_audio_mixer),
  5586. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5587. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5588. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5589. msm_routing_put_audio_mixer),
  5590. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5591. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5592. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5593. msm_routing_put_audio_mixer),
  5594. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5595. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5596. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5597. msm_routing_put_audio_mixer),
  5598. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5599. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5600. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5601. msm_routing_put_audio_mixer),
  5602. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5603. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5604. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5605. msm_routing_put_audio_mixer),
  5606. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5607. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5608. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5609. msm_routing_put_audio_mixer),
  5610. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5611. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5612. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5613. msm_routing_put_audio_mixer),
  5614. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5615. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5619. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5620. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5621. msm_routing_put_audio_mixer),
  5622. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5623. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5624. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5625. msm_routing_put_audio_mixer),
  5626. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5627. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5628. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5629. msm_routing_put_audio_mixer),
  5630. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5631. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5635. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5636. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5637. msm_routing_put_audio_mixer),
  5638. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. };
  5647. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5648. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5649. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5653. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5654. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5655. msm_routing_put_audio_mixer),
  5656. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5657. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5658. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5659. msm_routing_put_audio_mixer),
  5660. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5661. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5662. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5663. msm_routing_put_audio_mixer),
  5664. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5665. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5666. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5667. msm_routing_put_audio_mixer),
  5668. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5669. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5670. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5671. msm_routing_put_audio_mixer),
  5672. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5673. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5674. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5675. msm_routing_put_audio_mixer),
  5676. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5677. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5678. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5679. msm_routing_put_audio_mixer),
  5680. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5681. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5682. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5683. msm_routing_put_audio_mixer),
  5684. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5685. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5686. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5687. msm_routing_put_audio_mixer),
  5688. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5689. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5690. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5691. msm_routing_put_audio_mixer),
  5692. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5693. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5697. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5698. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5699. msm_routing_put_audio_mixer),
  5700. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5701. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5702. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5703. msm_routing_put_audio_mixer),
  5704. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5705. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5709. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. };
  5717. /* incall music delivery mixer */
  5718. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5719. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5720. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5721. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5722. msm_routing_put_audio_mixer),
  5723. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5724. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5725. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5726. msm_routing_put_audio_mixer),
  5727. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5728. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5732. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5733. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5734. msm_routing_put_audio_mixer),
  5735. };
  5736. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5737. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5738. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5739. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5740. msm_routing_put_audio_mixer),
  5741. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5742. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5743. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5744. msm_routing_put_audio_mixer),
  5745. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5746. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5750. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5751. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5752. msm_routing_put_audio_mixer),
  5753. };
  5754. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5755. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5756. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5757. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5758. msm_routing_put_audio_mixer),
  5759. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5760. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5761. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5762. msm_routing_put_audio_mixer),
  5763. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5764. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5768. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. };
  5772. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5773. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5774. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5775. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5776. msm_routing_put_audio_mixer),
  5777. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5778. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5779. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5780. msm_routing_put_audio_mixer),
  5781. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5782. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5783. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5784. msm_routing_put_audio_mixer),
  5785. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5786. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5787. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5788. msm_routing_put_audio_mixer),
  5789. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5790. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5791. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5792. msm_routing_put_audio_mixer),
  5793. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5794. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5795. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5796. msm_routing_put_audio_mixer),
  5797. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5798. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5799. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5800. msm_routing_put_audio_mixer),
  5801. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5802. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5803. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5804. msm_routing_put_audio_mixer),
  5805. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5806. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5807. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5808. msm_routing_put_audio_mixer),
  5809. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5810. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5811. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5812. msm_routing_put_audio_mixer),
  5813. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5814. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5818. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5822. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5823. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5824. msm_routing_put_audio_mixer),
  5825. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5826. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5827. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5828. msm_routing_put_audio_mixer),
  5829. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5830. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5834. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5838. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. };
  5842. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5843. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5844. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5845. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5846. msm_routing_put_audio_mixer),
  5847. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5848. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5849. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5850. msm_routing_put_audio_mixer),
  5851. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5852. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5856. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5857. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5858. msm_routing_put_audio_mixer),
  5859. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5860. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5861. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5862. msm_routing_put_audio_mixer),
  5863. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5864. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5865. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5866. msm_routing_put_audio_mixer),
  5867. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5868. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5869. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5870. msm_routing_put_audio_mixer),
  5871. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5872. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5874. msm_routing_put_audio_mixer),
  5875. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5876. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5877. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5878. msm_routing_put_audio_mixer),
  5879. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5880. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5881. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5882. msm_routing_put_audio_mixer),
  5883. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5884. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5885. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5886. msm_routing_put_audio_mixer),
  5887. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5888. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5889. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5890. msm_routing_put_audio_mixer),
  5891. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5892. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5893. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5894. msm_routing_put_audio_mixer),
  5895. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5896. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5900. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5901. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5902. msm_routing_put_audio_mixer),
  5903. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5904. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. };
  5912. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5913. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5914. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5915. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5916. msm_routing_put_audio_mixer),
  5917. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5918. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5919. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5920. msm_routing_put_audio_mixer),
  5921. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5922. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5923. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5924. msm_routing_put_audio_mixer),
  5925. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5926. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5927. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5928. msm_routing_put_audio_mixer),
  5929. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5930. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5931. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5932. msm_routing_put_audio_mixer),
  5933. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5934. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5935. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5936. msm_routing_put_audio_mixer),
  5937. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5938. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5939. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5940. msm_routing_put_audio_mixer),
  5941. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5942. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5943. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5944. msm_routing_put_audio_mixer),
  5945. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5946. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5947. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5948. msm_routing_put_audio_mixer),
  5949. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5950. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5951. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5952. msm_routing_put_audio_mixer),
  5953. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5954. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5955. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5956. msm_routing_put_audio_mixer),
  5957. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5958. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5959. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5960. msm_routing_put_audio_mixer),
  5961. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5962. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5963. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5964. msm_routing_put_audio_mixer),
  5965. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5966. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5967. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5968. msm_routing_put_audio_mixer),
  5969. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5970. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5971. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5972. msm_routing_put_audio_mixer),
  5973. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5974. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5975. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5976. msm_routing_put_audio_mixer),
  5977. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5978. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. };
  5982. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  5983. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5984. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5988. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5989. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5990. msm_routing_put_audio_mixer),
  5991. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5992. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5993. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5994. msm_routing_put_audio_mixer),
  5995. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5996. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  5997. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5998. msm_routing_put_audio_mixer),
  5999. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6000. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6001. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6002. msm_routing_put_audio_mixer),
  6003. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6004. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6005. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6006. msm_routing_put_audio_mixer),
  6007. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6008. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6009. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6010. msm_routing_put_audio_mixer),
  6011. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6012. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6013. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6014. msm_routing_put_audio_mixer),
  6015. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6016. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6017. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6018. msm_routing_put_audio_mixer),
  6019. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6020. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6021. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6022. msm_routing_put_audio_mixer),
  6023. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6024. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6025. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6026. msm_routing_put_audio_mixer),
  6027. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6028. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6029. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6030. msm_routing_put_audio_mixer),
  6031. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6032. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6033. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6034. msm_routing_put_audio_mixer),
  6035. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6036. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6037. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6038. msm_routing_put_audio_mixer),
  6039. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6040. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6044. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6048. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6049. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6050. msm_routing_put_audio_mixer),
  6051. };
  6052. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  6053. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6054. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6058. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6062. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6066. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6067. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6068. msm_routing_put_audio_mixer),
  6069. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6070. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6074. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6075. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6076. msm_routing_put_audio_mixer),
  6077. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6078. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6079. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6080. msm_routing_put_audio_mixer),
  6081. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6082. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6083. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6084. msm_routing_put_audio_mixer),
  6085. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6086. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6087. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6088. msm_routing_put_audio_mixer),
  6089. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6090. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6091. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6092. msm_routing_put_audio_mixer),
  6093. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6094. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6095. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6096. msm_routing_put_audio_mixer),
  6097. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6098. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6099. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6100. msm_routing_put_audio_mixer),
  6101. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6102. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6103. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6104. msm_routing_put_audio_mixer),
  6105. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6106. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6107. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6108. msm_routing_put_audio_mixer),
  6109. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6110. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6111. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6112. msm_routing_put_audio_mixer),
  6113. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6114. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6118. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. };
  6122. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  6123. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6124. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6128. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6129. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6130. msm_routing_put_audio_mixer),
  6131. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6132. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6133. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6134. msm_routing_put_audio_mixer),
  6135. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6136. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6137. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6138. msm_routing_put_audio_mixer),
  6139. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6140. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6144. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6145. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6146. msm_routing_put_audio_mixer),
  6147. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6148. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6149. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6150. msm_routing_put_audio_mixer),
  6151. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6152. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6153. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6154. msm_routing_put_audio_mixer),
  6155. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6156. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6157. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6158. msm_routing_put_audio_mixer),
  6159. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6160. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6161. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6162. msm_routing_put_audio_mixer),
  6163. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6164. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6168. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6169. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6170. msm_routing_put_audio_mixer),
  6171. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6172. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6173. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6174. msm_routing_put_audio_mixer),
  6175. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6176. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6177. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6178. msm_routing_put_audio_mixer),
  6179. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6180. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6181. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6182. msm_routing_put_audio_mixer),
  6183. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6184. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6185. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6186. msm_routing_put_audio_mixer),
  6187. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6188. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6189. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6190. msm_routing_put_audio_mixer),
  6191. };
  6192. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  6193. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6194. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6195. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6196. msm_routing_put_audio_mixer),
  6197. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6198. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6199. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6200. msm_routing_put_audio_mixer),
  6201. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6202. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6203. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6204. msm_routing_put_audio_mixer),
  6205. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6206. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6207. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6208. msm_routing_put_audio_mixer),
  6209. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6210. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6214. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6218. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6219. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6220. msm_routing_put_audio_mixer),
  6221. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6222. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6223. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6224. msm_routing_put_audio_mixer),
  6225. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6226. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6227. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6228. msm_routing_put_audio_mixer),
  6229. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6230. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6231. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6232. msm_routing_put_audio_mixer),
  6233. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6234. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6238. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6242. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6246. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6250. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6251. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6252. msm_routing_put_audio_mixer),
  6253. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6254. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6258. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. };
  6262. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  6263. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6264. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6265. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6266. msm_routing_put_audio_mixer),
  6267. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6268. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6269. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6270. msm_routing_put_audio_mixer),
  6271. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6272. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6273. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6274. msm_routing_put_audio_mixer),
  6275. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6276. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6280. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6281. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6282. msm_routing_put_audio_mixer),
  6283. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6284. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6285. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6286. msm_routing_put_audio_mixer),
  6287. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6288. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6289. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6290. msm_routing_put_audio_mixer),
  6291. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6292. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6293. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6294. msm_routing_put_audio_mixer),
  6295. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6296. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6300. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6301. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6302. msm_routing_put_audio_mixer),
  6303. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6304. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6305. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6306. msm_routing_put_audio_mixer),
  6307. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6308. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6312. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6313. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6314. msm_routing_put_audio_mixer),
  6315. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6316. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6317. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6318. msm_routing_put_audio_mixer),
  6319. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6320. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6324. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. };
  6332. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  6333. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6334. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6335. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6336. msm_routing_put_audio_mixer),
  6337. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6338. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6339. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6340. msm_routing_put_audio_mixer),
  6341. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6342. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6343. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6344. msm_routing_put_audio_mixer),
  6345. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6346. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6347. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6348. msm_routing_put_audio_mixer),
  6349. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6350. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6351. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6352. msm_routing_put_audio_mixer),
  6353. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6354. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6355. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6356. msm_routing_put_audio_mixer),
  6357. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6358. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6362. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6363. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6364. msm_routing_put_audio_mixer),
  6365. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6366. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6367. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6368. msm_routing_put_audio_mixer),
  6369. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6370. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6374. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6375. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6376. msm_routing_put_audio_mixer),
  6377. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6378. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6382. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6386. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. };
  6402. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  6403. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6404. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6405. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6406. msm_routing_put_audio_mixer),
  6407. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6408. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6409. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6410. msm_routing_put_audio_mixer),
  6411. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6412. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6413. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6414. msm_routing_put_audio_mixer),
  6415. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6416. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6417. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6418. msm_routing_put_audio_mixer),
  6419. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6420. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6421. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6422. msm_routing_put_audio_mixer),
  6423. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6424. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6425. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6426. msm_routing_put_audio_mixer),
  6427. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6428. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6429. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6430. msm_routing_put_audio_mixer),
  6431. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6432. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6433. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6434. msm_routing_put_audio_mixer),
  6435. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6436. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6437. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6438. msm_routing_put_audio_mixer),
  6439. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6440. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6441. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6442. msm_routing_put_audio_mixer),
  6443. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6444. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6445. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6446. msm_routing_put_audio_mixer),
  6447. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6448. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6449. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6450. msm_routing_put_audio_mixer),
  6451. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6452. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6453. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6454. msm_routing_put_audio_mixer),
  6455. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6456. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6457. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6458. msm_routing_put_audio_mixer),
  6459. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6460. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6464. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6465. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6466. msm_routing_put_audio_mixer),
  6467. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. };
  6472. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  6473. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6474. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6475. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6476. msm_routing_put_audio_mixer),
  6477. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6478. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6479. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6480. msm_routing_put_audio_mixer),
  6481. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6482. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6483. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6484. msm_routing_put_audio_mixer),
  6485. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6486. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6487. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6488. msm_routing_put_audio_mixer),
  6489. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6490. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6491. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6492. msm_routing_put_audio_mixer),
  6493. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6494. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6495. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6496. msm_routing_put_audio_mixer),
  6497. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6498. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6499. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6500. msm_routing_put_audio_mixer),
  6501. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6502. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6503. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6504. msm_routing_put_audio_mixer),
  6505. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6506. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6507. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6508. msm_routing_put_audio_mixer),
  6509. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6510. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6511. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6512. msm_routing_put_audio_mixer),
  6513. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6514. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6515. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6516. msm_routing_put_audio_mixer),
  6517. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6519. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6520. msm_routing_put_audio_mixer),
  6521. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6523. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6524. msm_routing_put_audio_mixer),
  6525. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6527. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6528. msm_routing_put_audio_mixer),
  6529. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6531. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6532. msm_routing_put_audio_mixer),
  6533. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6534. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6538. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6539. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6540. msm_routing_put_audio_mixer),
  6541. };
  6542. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  6543. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6544. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6545. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6546. msm_routing_put_audio_mixer),
  6547. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6548. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6549. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6550. msm_routing_put_audio_mixer),
  6551. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6552. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6556. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6557. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6558. msm_routing_put_audio_mixer),
  6559. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6560. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6562. msm_routing_put_audio_mixer),
  6563. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6564. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6565. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6566. msm_routing_put_audio_mixer),
  6567. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6568. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6569. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6570. msm_routing_put_audio_mixer),
  6571. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6572. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6573. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6574. msm_routing_put_audio_mixer),
  6575. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6576. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6577. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6578. msm_routing_put_audio_mixer),
  6579. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6580. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6581. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6582. msm_routing_put_audio_mixer),
  6583. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6584. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6585. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6586. msm_routing_put_audio_mixer),
  6587. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6588. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6589. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6590. msm_routing_put_audio_mixer),
  6591. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6592. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6593. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6594. msm_routing_put_audio_mixer),
  6595. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6596. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6600. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6601. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6602. msm_routing_put_audio_mixer),
  6603. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6604. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6605. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6606. msm_routing_put_audio_mixer),
  6607. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6608. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. };
  6612. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  6613. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6614. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6618. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6619. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6620. msm_routing_put_audio_mixer),
  6621. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6622. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6623. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6624. msm_routing_put_audio_mixer),
  6625. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6626. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6627. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6628. msm_routing_put_audio_mixer),
  6629. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6630. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6631. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6632. msm_routing_put_audio_mixer),
  6633. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6634. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6635. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6636. msm_routing_put_audio_mixer),
  6637. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6638. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6639. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6640. msm_routing_put_audio_mixer),
  6641. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6642. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6643. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6644. msm_routing_put_audio_mixer),
  6645. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6646. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6647. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6648. msm_routing_put_audio_mixer),
  6649. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6650. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6654. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6655. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6656. msm_routing_put_audio_mixer),
  6657. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6658. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6662. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6666. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6667. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6668. msm_routing_put_audio_mixer),
  6669. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6670. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6674. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6678. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. };
  6682. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  6683. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6684. MSM_BACKEND_DAI_USB_RX,
  6685. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6686. msm_routing_put_audio_mixer),
  6687. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6688. MSM_BACKEND_DAI_USB_RX,
  6689. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6690. msm_routing_put_audio_mixer),
  6691. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6692. MSM_BACKEND_DAI_USB_RX,
  6693. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6694. msm_routing_put_audio_mixer),
  6695. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6696. MSM_BACKEND_DAI_USB_RX,
  6697. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6698. msm_routing_put_audio_mixer),
  6699. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6700. MSM_BACKEND_DAI_USB_RX,
  6701. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6702. msm_routing_put_audio_mixer),
  6703. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6704. MSM_BACKEND_DAI_USB_RX,
  6705. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6706. msm_routing_put_audio_mixer),
  6707. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6708. MSM_BACKEND_DAI_USB_RX,
  6709. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6710. msm_routing_put_audio_mixer),
  6711. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6712. MSM_BACKEND_DAI_USB_RX,
  6713. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6714. msm_routing_put_audio_mixer),
  6715. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6716. MSM_BACKEND_DAI_USB_RX,
  6717. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6718. msm_routing_put_audio_mixer),
  6719. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6720. MSM_BACKEND_DAI_USB_RX,
  6721. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6722. msm_routing_put_audio_mixer),
  6723. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6724. MSM_BACKEND_DAI_USB_RX,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6728. MSM_BACKEND_DAI_USB_RX,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6732. MSM_BACKEND_DAI_USB_RX,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6736. MSM_BACKEND_DAI_USB_RX,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_USB_RX,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_USB_RX,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_USB_RX,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. };
  6752. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6753. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6754. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6755. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6756. msm_routing_put_audio_mixer),
  6757. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6758. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6759. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6760. msm_routing_put_audio_mixer),
  6761. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6762. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6763. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6764. msm_routing_put_audio_mixer),
  6765. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6766. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6768. msm_routing_put_audio_mixer),
  6769. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6770. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6771. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6772. msm_routing_put_audio_mixer),
  6773. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6774. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6776. msm_routing_put_audio_mixer),
  6777. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6778. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6782. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6783. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6784. msm_routing_put_audio_mixer),
  6785. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6786. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6787. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6788. msm_routing_put_audio_mixer),
  6789. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6790. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6794. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6795. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6796. msm_routing_put_audio_mixer),
  6797. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6798. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6802. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6803. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6804. msm_routing_put_audio_mixer),
  6805. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6806. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6807. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6808. msm_routing_put_audio_mixer),
  6809. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6810. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6814. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6815. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6816. msm_routing_put_audio_mixer),
  6817. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6818. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6819. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6820. msm_routing_put_audio_mixer),
  6821. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6822. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6826. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6830. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. };
  6842. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6843. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6844. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6845. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6846. msm_routing_put_audio_mixer),
  6847. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6848. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6849. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6850. msm_routing_put_audio_mixer),
  6851. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6852. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6853. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6854. msm_routing_put_audio_mixer),
  6855. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6856. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6857. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6858. msm_routing_put_audio_mixer),
  6859. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6860. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6861. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6862. msm_routing_put_audio_mixer),
  6863. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6864. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6868. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6872. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6876. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6880. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6884. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6888. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6892. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6896. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6897. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6898. msm_routing_put_audio_mixer),
  6899. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6900. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6904. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. };
  6912. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  6913. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6914. MSM_BACKEND_DAI_INT_FM_RX,
  6915. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6916. msm_routing_put_audio_mixer),
  6917. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6918. MSM_BACKEND_DAI_INT_FM_RX,
  6919. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6920. msm_routing_put_audio_mixer),
  6921. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6922. MSM_BACKEND_DAI_INT_FM_RX,
  6923. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6924. msm_routing_put_audio_mixer),
  6925. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6926. MSM_BACKEND_DAI_INT_FM_RX,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6930. MSM_BACKEND_DAI_INT_FM_RX,
  6931. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6932. msm_routing_put_audio_mixer),
  6933. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6934. MSM_BACKEND_DAI_INT_FM_RX,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6938. MSM_BACKEND_DAI_INT_FM_RX,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6942. MSM_BACKEND_DAI_INT_FM_RX,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6946. MSM_BACKEND_DAI_INT_FM_RX,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6950. MSM_BACKEND_DAI_INT_FM_RX,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6954. MSM_BACKEND_DAI_INT_FM_RX,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_INT_FM_RX,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_INT_FM_RX,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_INT_FM_RX,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_INT_FM_RX,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_INT_FM_RX,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_INT_FM_RX,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6982. MSM_BACKEND_DAI_INT_FM_RX,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6986. MSM_BACKEND_DAI_INT_FM_RX,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6990. MSM_BACKEND_DAI_INT_FM_RX,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_INT_FM_RX,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_INT_FM_RX,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. };
  7002. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  7003. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7004. MSM_BACKEND_DAI_AFE_PCM_RX,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7008. MSM_BACKEND_DAI_AFE_PCM_RX,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7012. MSM_BACKEND_DAI_AFE_PCM_RX,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7016. MSM_BACKEND_DAI_AFE_PCM_RX,
  7017. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7018. msm_routing_put_audio_mixer),
  7019. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7020. MSM_BACKEND_DAI_AFE_PCM_RX,
  7021. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7022. msm_routing_put_audio_mixer),
  7023. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7024. MSM_BACKEND_DAI_AFE_PCM_RX,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7028. MSM_BACKEND_DAI_AFE_PCM_RX,
  7029. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7030. msm_routing_put_audio_mixer),
  7031. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7032. MSM_BACKEND_DAI_AFE_PCM_RX,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7036. MSM_BACKEND_DAI_AFE_PCM_RX,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7040. MSM_BACKEND_DAI_AFE_PCM_RX,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7044. MSM_BACKEND_DAI_AFE_PCM_RX,
  7045. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7046. msm_routing_put_audio_mixer),
  7047. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_AFE_PCM_RX,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7052. MSM_BACKEND_DAI_AFE_PCM_RX,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_AFE_PCM_RX,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7060. MSM_BACKEND_DAI_AFE_PCM_RX,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_AFE_PCM_RX,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_AFE_PCM_RX,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7072. MSM_BACKEND_DAI_AFE_PCM_RX,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7076. MSM_BACKEND_DAI_AFE_PCM_RX,
  7077. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7078. msm_routing_put_audio_mixer),
  7079. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7080. MSM_BACKEND_DAI_AFE_PCM_RX,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7084. MSM_BACKEND_DAI_AFE_PCM_RX,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_AFE_PCM_RX,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. };
  7092. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  7093. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7094. MSM_BACKEND_DAI_AUXPCM_RX,
  7095. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7096. msm_routing_put_audio_mixer),
  7097. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7098. MSM_BACKEND_DAI_AUXPCM_RX,
  7099. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7100. msm_routing_put_audio_mixer),
  7101. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7102. MSM_BACKEND_DAI_AUXPCM_RX,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7106. MSM_BACKEND_DAI_AUXPCM_RX,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7110. MSM_BACKEND_DAI_AUXPCM_RX,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7114. MSM_BACKEND_DAI_AUXPCM_RX,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_AUXPCM_RX,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_AUXPCM_RX,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_AUXPCM_RX,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_AUXPCM_RX,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7134. MSM_BACKEND_DAI_AUXPCM_RX,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_AUXPCM_RX,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7142. MSM_BACKEND_DAI_AUXPCM_RX,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7146. MSM_BACKEND_DAI_AUXPCM_RX,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_AUXPCM_RX,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_AUXPCM_RX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_AUXPCM_RX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_AUXPCM_RX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_AUXPCM_RX,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_AUXPCM_RX,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_AUXPCM_RX,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_AUXPCM_RX,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_AUXPCM_RX,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. };
  7186. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  7187. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7188. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7190. msm_routing_put_audio_mixer),
  7191. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7192. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7194. msm_routing_put_audio_mixer),
  7195. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7196. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7198. msm_routing_put_audio_mixer),
  7199. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7200. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7201. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7202. msm_routing_put_audio_mixer),
  7203. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7204. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7205. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7206. msm_routing_put_audio_mixer),
  7207. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7208. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7212. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7216. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7217. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7218. msm_routing_put_audio_mixer),
  7219. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7220. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. };
  7280. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  7281. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7282. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7283. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7284. msm_routing_put_audio_mixer),
  7285. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7286. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7287. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7288. msm_routing_put_audio_mixer),
  7289. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7290. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7291. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7292. msm_routing_put_audio_mixer),
  7293. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7310. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7314. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. };
  7350. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  7351. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7352. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7353. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7354. msm_routing_put_audio_mixer),
  7355. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7356. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7357. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7358. msm_routing_put_audio_mixer),
  7359. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7360. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7361. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7362. msm_routing_put_audio_mixer),
  7363. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7380. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7384. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7388. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. };
  7420. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  7421. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7422. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7423. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7424. msm_routing_put_audio_mixer),
  7425. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7426. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7427. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7428. msm_routing_put_audio_mixer),
  7429. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7430. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7431. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7432. msm_routing_put_audio_mixer),
  7433. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7446. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7450. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7451. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7452. msm_routing_put_audio_mixer),
  7453. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7454. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7455. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7456. msm_routing_put_audio_mixer),
  7457. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7458. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. };
  7490. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  7491. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7492. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7493. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7494. msm_routing_put_audio_mixer),
  7495. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7496. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7500. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7516. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7520. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7521. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7522. msm_routing_put_audio_mixer),
  7523. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7524. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7525. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7526. msm_routing_put_audio_mixer),
  7527. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7528. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. };
  7560. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  7561. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7563. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7564. msm_routing_put_audio_mixer),
  7565. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7570. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7571. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7572. msm_routing_put_audio_mixer),
  7573. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7582. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7583. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7584. msm_routing_put_audio_mixer),
  7585. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7586. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7587. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7588. msm_routing_put_audio_mixer),
  7589. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7590. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7591. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7592. msm_routing_put_audio_mixer),
  7593. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7594. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7595. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7596. msm_routing_put_audio_mixer),
  7597. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. };
  7630. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  7631. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7632. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7633. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7634. msm_routing_put_audio_mixer),
  7635. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7640. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7656. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7657. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7658. msm_routing_put_audio_mixer),
  7659. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7660. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7661. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7662. msm_routing_put_audio_mixer),
  7663. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7664. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7665. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7666. msm_routing_put_audio_mixer),
  7667. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. };
  7700. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  7701. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7703. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7704. msm_routing_put_audio_mixer),
  7705. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7726. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7727. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7728. msm_routing_put_audio_mixer),
  7729. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7730. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7731. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7732. msm_routing_put_audio_mixer),
  7733. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7738. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7739. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7740. msm_routing_put_audio_mixer),
  7741. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. };
  7770. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  7771. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7774. msm_routing_put_audio_mixer),
  7775. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7780. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7781. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7782. msm_routing_put_audio_mixer),
  7783. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7800. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7802. msm_routing_put_audio_mixer),
  7803. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. };
  7840. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7841. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7842. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7843. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7844. msm_routing_put_audio_mixer),
  7845. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7846. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7847. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7848. msm_routing_put_audio_mixer),
  7849. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7850. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7851. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7852. msm_routing_put_audio_mixer),
  7853. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7878. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7879. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7880. msm_routing_put_audio_mixer),
  7881. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7894. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7895. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7896. msm_routing_put_audio_mixer),
  7897. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. };
  7906. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  7907. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. };
  7976. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  7977. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8006. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8007. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8008. msm_routing_put_audio_mixer),
  8009. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. };
  8046. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  8047. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8048. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8050. msm_routing_put_audio_mixer),
  8051. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. };
  8116. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  8117. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. };
  8186. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  8187. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. };
  8252. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  8253. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8262. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8263. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8264. msm_routing_put_audio_mixer),
  8265. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8266. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8267. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8268. msm_routing_put_audio_mixer),
  8269. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8270. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8271. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8272. msm_routing_put_audio_mixer),
  8273. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8274. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8275. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8276. msm_routing_put_audio_mixer),
  8277. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8278. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8279. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8280. msm_routing_put_audio_mixer),
  8281. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8282. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8283. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8284. msm_routing_put_audio_mixer),
  8285. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8290. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8291. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8292. msm_routing_put_audio_mixer),
  8293. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. };
  8322. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  8323. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8332. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8333. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8334. msm_routing_put_audio_mixer),
  8335. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8336. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8337. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8338. msm_routing_put_audio_mixer),
  8339. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8340. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8341. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8342. msm_routing_put_audio_mixer),
  8343. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8344. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8345. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8346. msm_routing_put_audio_mixer),
  8347. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8348. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8349. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8350. msm_routing_put_audio_mixer),
  8351. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8352. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8353. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8354. msm_routing_put_audio_mixer),
  8355. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8356. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8357. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8358. msm_routing_put_audio_mixer),
  8359. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8360. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8362. msm_routing_put_audio_mixer),
  8363. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. };
  8388. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  8389. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8426. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8427. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8428. msm_routing_put_audio_mixer),
  8429. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8446. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8447. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8448. msm_routing_put_audio_mixer),
  8449. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8450. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8451. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8452. msm_routing_put_audio_mixer),
  8453. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. };
  8458. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  8459. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8492. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8493. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8494. msm_routing_put_audio_mixer),
  8495. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. };
  8528. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  8529. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8586. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8587. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8588. msm_routing_put_audio_mixer),
  8589. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8590. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8591. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8592. msm_routing_put_audio_mixer),
  8593. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8594. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8595. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8596. msm_routing_put_audio_mixer),
  8597. };
  8598. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  8599. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. };
  8668. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  8669. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8670. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8671. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8672. msm_routing_put_audio_mixer),
  8673. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8674. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8675. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8676. msm_routing_put_audio_mixer),
  8677. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8678. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8679. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8680. msm_routing_put_audio_mixer),
  8681. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8682. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8683. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8684. msm_routing_put_audio_mixer),
  8685. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8694. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8695. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8696. msm_routing_put_audio_mixer),
  8697. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8698. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8699. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8700. msm_routing_put_audio_mixer),
  8701. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8706. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8707. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8708. msm_routing_put_audio_mixer),
  8709. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8710. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8711. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8712. msm_routing_put_audio_mixer),
  8713. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. };
  8742. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  8743. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8744. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8745. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8746. msm_routing_put_audio_mixer),
  8747. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8748. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8749. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8750. msm_routing_put_audio_mixer),
  8751. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8752. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8753. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8754. msm_routing_put_audio_mixer),
  8755. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8764. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8765. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8766. msm_routing_put_audio_mixer),
  8767. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8768. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8769. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8770. msm_routing_put_audio_mixer),
  8771. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8772. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8773. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8774. msm_routing_put_audio_mixer),
  8775. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. };
  8808. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8809. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8814. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8815. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8816. msm_routing_put_audio_mixer),
  8817. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8818. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8819. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8820. msm_routing_put_audio_mixer),
  8821. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8850. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8851. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8852. msm_routing_put_audio_mixer),
  8853. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8854. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8855. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8856. msm_routing_put_audio_mixer),
  8857. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. };
  8882. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8883. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. };
  8956. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  8957. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8958. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8959. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8960. msm_routing_put_audio_mixer),
  8961. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA20, 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_QUAT_TDM_RX_3,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. };
  9030. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  9031. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA20, 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_QUIN_TDM_RX_0,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. };
  9104. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  9105. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9106. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9107. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9108. msm_routing_put_audio_mixer),
  9109. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. };
  9170. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  9171. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. };
  9244. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  9245. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. };
  9318. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  9319. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9320. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9321. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9322. msm_routing_put_audio_mixer),
  9323. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA20, 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_QUIN_TDM_RX_3,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. };
  9392. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  9393. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9394. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9395. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9396. msm_routing_put_audio_mixer),
  9397. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA20, 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_SEN_TDM_RX_0,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. };
  9466. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  9467. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9468. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9470. msm_routing_put_audio_mixer),
  9471. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. };
  9532. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  9533. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9535. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9536. msm_routing_put_audio_mixer),
  9537. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9538. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9539. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9540. msm_routing_put_audio_mixer),
  9541. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9542. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9543. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9544. msm_routing_put_audio_mixer),
  9545. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. };
  9606. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  9607. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9608. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9609. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9610. msm_routing_put_audio_mixer),
  9611. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9612. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9613. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9614. msm_routing_put_audio_mixer),
  9615. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9616. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9617. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9618. msm_routing_put_audio_mixer),
  9619. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9620. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9621. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9622. msm_routing_put_audio_mixer),
  9623. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9633. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9634. msm_routing_put_audio_mixer),
  9635. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9637. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9638. msm_routing_put_audio_mixer),
  9639. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. };
  9680. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  9681. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9682. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9683. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9684. msm_routing_put_audio_mixer),
  9685. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA20, 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_SEN_TDM_RX_3,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. };
  9754. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  9755. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  9756. MSM_BACKEND_DAI_PRI_I2S_TX,
  9757. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9758. msm_routing_put_audio_mixer),
  9759. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9760. MSM_BACKEND_DAI_MI2S_TX,
  9761. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9762. msm_routing_put_audio_mixer),
  9763. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9764. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9765. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9766. msm_routing_put_audio_mixer),
  9767. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9769. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9770. msm_routing_put_audio_mixer),
  9771. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9774. msm_routing_put_audio_mixer),
  9775. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9777. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9778. msm_routing_put_audio_mixer),
  9779. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_AUXPCM_TX,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_INT_FM_TX,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_AFE_PCM_TX,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9865. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9866. msm_routing_put_audio_mixer),
  9867. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9868. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9869. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9870. msm_routing_put_audio_mixer),
  9871. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9872. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9873. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9874. msm_routing_put_audio_mixer),
  9875. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9876. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9877. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9878. msm_routing_put_audio_mixer),
  9879. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9881. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9882. msm_routing_put_audio_mixer),
  9883. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9885. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9886. msm_routing_put_audio_mixer),
  9887. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9889. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9890. msm_routing_put_audio_mixer),
  9891. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9909. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9910. msm_routing_put_audio_mixer),
  9911. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9912. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9913. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9914. msm_routing_put_audio_mixer),
  9915. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9916. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9918. msm_routing_put_audio_mixer),
  9919. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9921. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9922. msm_routing_put_audio_mixer),
  9923. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9926. msm_routing_put_audio_mixer),
  9927. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9930. msm_routing_put_audio_mixer),
  9931. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_USB_TX,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9974. msm_routing_put_audio_mixer),
  9975. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9978. msm_routing_put_audio_mixer),
  9979. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9980. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9981. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9982. msm_routing_put_audio_mixer),
  9983. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9984. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  9985. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9986. msm_routing_put_audio_mixer),
  9987. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  9988. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  9989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9990. msm_routing_put_audio_mixer),
  9991. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  9992. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  9993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9994. msm_routing_put_audio_mixer),
  9995. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  9996. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  9997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9998. msm_routing_put_audio_mixer),
  9999. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10000. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10001. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10002. msm_routing_put_audio_mixer),
  10003. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10004. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10006. msm_routing_put_audio_mixer),
  10007. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10008. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10009. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10010. msm_routing_put_audio_mixer),
  10011. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10014. msm_routing_put_audio_mixer),
  10015. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10017. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10018. msm_routing_put_audio_mixer),
  10019. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10021. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10022. msm_routing_put_audio_mixer),
  10023. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10025. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10026. msm_routing_put_audio_mixer),
  10027. };
  10028. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  10029. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_INT_FM_TX,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_MI2S_TX,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10047. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10048. msm_routing_put_audio_mixer),
  10049. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10051. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10052. msm_routing_put_audio_mixer),
  10053. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10055. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10056. msm_routing_put_audio_mixer),
  10057. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10059. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10060. msm_routing_put_audio_mixer),
  10061. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10063. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10064. msm_routing_put_audio_mixer),
  10065. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10066. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10067. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10068. msm_routing_put_audio_mixer),
  10069. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10070. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10071. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10072. msm_routing_put_audio_mixer),
  10073. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  10075. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10076. msm_routing_put_audio_mixer),
  10077. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  10079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10080. msm_routing_put_audio_mixer),
  10081. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10167. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10168. msm_routing_put_audio_mixer),
  10169. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10171. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10172. msm_routing_put_audio_mixer),
  10173. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10175. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10176. msm_routing_put_audio_mixer),
  10177. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10179. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10180. msm_routing_put_audio_mixer),
  10181. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_USB_TX,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10187. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10188. msm_routing_put_audio_mixer),
  10189. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10191. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10192. msm_routing_put_audio_mixer),
  10193. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10198. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10199. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10200. msm_routing_put_audio_mixer),
  10201. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10202. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10203. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10204. msm_routing_put_audio_mixer),
  10205. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10206. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10207. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10208. msm_routing_put_audio_mixer),
  10209. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10210. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10211. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10212. msm_routing_put_audio_mixer),
  10213. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10214. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10215. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10216. msm_routing_put_audio_mixer),
  10217. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10218. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10219. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10220. msm_routing_put_audio_mixer),
  10221. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10223. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10224. msm_routing_put_audio_mixer),
  10225. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10227. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10228. msm_routing_put_audio_mixer),
  10229. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10230. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10231. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10232. msm_routing_put_audio_mixer),
  10233. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10235. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10236. msm_routing_put_audio_mixer),
  10237. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10239. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10240. msm_routing_put_audio_mixer),
  10241. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10243. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10244. msm_routing_put_audio_mixer),
  10245. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. };
  10250. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  10251. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10253. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10254. msm_routing_put_audio_mixer),
  10255. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10257. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10258. msm_routing_put_audio_mixer),
  10259. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_INT_FM_TX,
  10261. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10262. msm_routing_put_audio_mixer),
  10263. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10264. MSM_BACKEND_DAI_MI2S_TX,
  10265. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10266. msm_routing_put_audio_mixer),
  10267. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10268. MSM_BACKEND_DAI_AFE_PCM_TX,
  10269. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10270. msm_routing_put_audio_mixer),
  10271. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10272. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10273. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10274. msm_routing_put_audio_mixer),
  10275. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10276. MSM_BACKEND_DAI_AUXPCM_TX,
  10277. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10278. msm_routing_put_audio_mixer),
  10279. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10281. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10282. msm_routing_put_audio_mixer),
  10283. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10284. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10285. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10286. msm_routing_put_audio_mixer),
  10287. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10290. msm_routing_put_audio_mixer),
  10291. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10293. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10294. msm_routing_put_audio_mixer),
  10295. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  10297. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10298. msm_routing_put_audio_mixer),
  10299. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10300. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10301. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10302. msm_routing_put_audio_mixer),
  10303. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10305. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10306. msm_routing_put_audio_mixer),
  10307. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10308. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10309. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10310. msm_routing_put_audio_mixer),
  10311. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10312. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10314. msm_routing_put_audio_mixer),
  10315. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10317. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10318. msm_routing_put_audio_mixer),
  10319. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10321. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10322. msm_routing_put_audio_mixer),
  10323. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10410. msm_routing_put_audio_mixer),
  10411. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10413. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10414. msm_routing_put_audio_mixer),
  10415. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10417. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10418. msm_routing_put_audio_mixer),
  10419. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10420. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10421. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10422. msm_routing_put_audio_mixer),
  10423. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10424. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10425. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10426. msm_routing_put_audio_mixer),
  10427. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10428. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10429. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10430. msm_routing_put_audio_mixer),
  10431. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10432. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10433. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10434. msm_routing_put_audio_mixer),
  10435. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10436. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10437. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10438. msm_routing_put_audio_mixer),
  10439. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10440. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10441. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10442. msm_routing_put_audio_mixer),
  10443. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10444. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10445. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10446. msm_routing_put_audio_mixer),
  10447. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10448. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10449. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10450. msm_routing_put_audio_mixer),
  10451. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10452. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10453. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10454. msm_routing_put_audio_mixer),
  10455. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10457. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10461. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10462. msm_routing_put_audio_mixer),
  10463. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10465. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10466. msm_routing_put_audio_mixer),
  10467. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10468. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10469. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10470. msm_routing_put_audio_mixer),
  10471. };
  10472. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  10473. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_INT_FM_TX,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_AFE_PCM_TX,
  10495. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10496. msm_routing_put_audio_mixer),
  10497. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10498. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10500. msm_routing_put_audio_mixer),
  10501. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10502. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10503. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10504. msm_routing_put_audio_mixer),
  10505. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10506. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10507. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10508. msm_routing_put_audio_mixer),
  10509. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10510. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10511. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10512. msm_routing_put_audio_mixer),
  10513. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10514. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10515. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10516. msm_routing_put_audio_mixer),
  10517. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10518. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10519. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10520. msm_routing_put_audio_mixer),
  10521. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10523. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10524. msm_routing_put_audio_mixer),
  10525. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10526. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10528. msm_routing_put_audio_mixer),
  10529. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10530. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10531. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10532. msm_routing_put_audio_mixer),
  10533. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10536. msm_routing_put_audio_mixer),
  10537. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10539. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10540. msm_routing_put_audio_mixer),
  10541. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10543. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10544. msm_routing_put_audio_mixer),
  10545. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10547. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10552. msm_routing_put_audio_mixer),
  10553. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10555. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10556. msm_routing_put_audio_mixer),
  10557. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10559. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10560. msm_routing_put_audio_mixer),
  10561. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10563. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10564. msm_routing_put_audio_mixer),
  10565. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10567. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_USB_TX,
  10623. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10624. msm_routing_put_audio_mixer),
  10625. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10627. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10628. msm_routing_put_audio_mixer),
  10629. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10631. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10632. msm_routing_put_audio_mixer),
  10633. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10635. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10636. msm_routing_put_audio_mixer),
  10637. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10639. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10640. msm_routing_put_audio_mixer),
  10641. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10643. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10644. msm_routing_put_audio_mixer),
  10645. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10646. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10647. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10648. msm_routing_put_audio_mixer),
  10649. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10650. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10651. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10652. msm_routing_put_audio_mixer),
  10653. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10655. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10656. msm_routing_put_audio_mixer),
  10657. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10659. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10660. msm_routing_put_audio_mixer),
  10661. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10663. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10664. msm_routing_put_audio_mixer),
  10665. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10666. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10667. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10668. msm_routing_put_audio_mixer),
  10669. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10670. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10671. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10672. msm_routing_put_audio_mixer),
  10673. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10674. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10675. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10676. msm_routing_put_audio_mixer),
  10677. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10679. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10680. msm_routing_put_audio_mixer),
  10681. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10682. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10683. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10684. msm_routing_put_audio_mixer),
  10685. };
  10686. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  10687. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_INT_FM_TX,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_MI2S_TX,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_AFE_PCM_TX,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_AUXPCM_TX,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10721. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10726. msm_routing_put_audio_mixer),
  10727. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10729. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10730. msm_routing_put_audio_mixer),
  10731. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  10733. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10734. msm_routing_put_audio_mixer),
  10735. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10737. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10738. msm_routing_put_audio_mixer),
  10739. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10742. msm_routing_put_audio_mixer),
  10743. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10745. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10746. msm_routing_put_audio_mixer),
  10747. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10749. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10750. msm_routing_put_audio_mixer),
  10751. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10752. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10753. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10754. msm_routing_put_audio_mixer),
  10755. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10756. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10757. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10758. msm_routing_put_audio_mixer),
  10759. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10760. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10761. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10762. msm_routing_put_audio_mixer),
  10763. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10765. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10766. msm_routing_put_audio_mixer),
  10767. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10768. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10769. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10770. msm_routing_put_audio_mixer),
  10771. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10772. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10773. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10774. msm_routing_put_audio_mixer),
  10775. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10776. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10777. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10778. msm_routing_put_audio_mixer),
  10779. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10780. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10781. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10782. msm_routing_put_audio_mixer),
  10783. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10785. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10786. msm_routing_put_audio_mixer),
  10787. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_USB_TX,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10881. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10882. msm_routing_put_audio_mixer),
  10883. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10885. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10886. msm_routing_put_audio_mixer),
  10887. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10889. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10890. msm_routing_put_audio_mixer),
  10891. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10893. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10894. msm_routing_put_audio_mixer),
  10895. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10897. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10898. msm_routing_put_audio_mixer),
  10899. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10901. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10902. msm_routing_put_audio_mixer),
  10903. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10905. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10906. msm_routing_put_audio_mixer),
  10907. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10908. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10909. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10910. msm_routing_put_audio_mixer),
  10911. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10912. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10913. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10914. msm_routing_put_audio_mixer),
  10915. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10917. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10918. msm_routing_put_audio_mixer),
  10919. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10920. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10921. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10922. msm_routing_put_audio_mixer),
  10923. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10924. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10925. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10926. msm_routing_put_audio_mixer),
  10927. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10928. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10929. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10930. msm_routing_put_audio_mixer),
  10931. };
  10932. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  10933. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_INT_FM_TX,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  10975. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10976. msm_routing_put_audio_mixer),
  10977. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_AUXPCM_TX,
  10979. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10980. msm_routing_put_audio_mixer),
  10981. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10983. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10984. msm_routing_put_audio_mixer),
  10985. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10996. msm_routing_put_audio_mixer),
  10997. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10998. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10999. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11000. msm_routing_put_audio_mixer),
  11001. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11002. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11003. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11004. msm_routing_put_audio_mixer),
  11005. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11010. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11011. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11012. msm_routing_put_audio_mixer),
  11013. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11015. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11016. msm_routing_put_audio_mixer),
  11017. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11019. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11020. msm_routing_put_audio_mixer),
  11021. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11023. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11024. msm_routing_put_audio_mixer),
  11025. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11027. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11028. msm_routing_put_audio_mixer),
  11029. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11030. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11031. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11067. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11068. msm_routing_put_audio_mixer),
  11069. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11071. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11072. msm_routing_put_audio_mixer),
  11073. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11075. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11076. msm_routing_put_audio_mixer),
  11077. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11079. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11080. msm_routing_put_audio_mixer),
  11081. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11082. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11083. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11084. msm_routing_put_audio_mixer),
  11085. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11086. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11087. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11088. msm_routing_put_audio_mixer),
  11089. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11090. MSM_BACKEND_DAI_USB_TX,
  11091. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11092. msm_routing_put_audio_mixer),
  11093. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11094. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11095. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11096. msm_routing_put_audio_mixer),
  11097. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11098. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11099. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11100. msm_routing_put_audio_mixer),
  11101. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11102. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11103. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11104. msm_routing_put_audio_mixer),
  11105. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11106. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11107. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11108. msm_routing_put_audio_mixer),
  11109. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11110. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11111. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11112. msm_routing_put_audio_mixer),
  11113. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11114. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11115. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11116. msm_routing_put_audio_mixer),
  11117. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11118. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11119. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11120. msm_routing_put_audio_mixer),
  11121. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11122. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11124. msm_routing_put_audio_mixer),
  11125. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11127. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11128. msm_routing_put_audio_mixer),
  11129. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11131. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11132. msm_routing_put_audio_mixer),
  11133. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11139. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11140. msm_routing_put_audio_mixer),
  11141. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11143. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11144. msm_routing_put_audio_mixer),
  11145. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11146. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11147. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11148. msm_routing_put_audio_mixer),
  11149. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. };
  11154. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  11155. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11165. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11166. msm_routing_put_audio_mixer),
  11167. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11169. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11170. msm_routing_put_audio_mixer),
  11171. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11173. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11174. msm_routing_put_audio_mixer),
  11175. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11177. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11178. msm_routing_put_audio_mixer),
  11179. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11181. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11182. msm_routing_put_audio_mixer),
  11183. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11185. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11186. msm_routing_put_audio_mixer),
  11187. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_INT_FM_TX,
  11189. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11190. msm_routing_put_audio_mixer),
  11191. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11193. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11194. msm_routing_put_audio_mixer),
  11195. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_AFE_PCM_TX,
  11197. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11198. msm_routing_put_audio_mixer),
  11199. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11201. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11206. msm_routing_put_audio_mixer),
  11207. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11208. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11209. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11210. msm_routing_put_audio_mixer),
  11211. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11212. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11213. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11214. msm_routing_put_audio_mixer),
  11215. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11217. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11218. msm_routing_put_audio_mixer),
  11219. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11221. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11233. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11234. msm_routing_put_audio_mixer),
  11235. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11237. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11238. msm_routing_put_audio_mixer),
  11239. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11265. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11266. msm_routing_put_audio_mixer),
  11267. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11269. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11270. msm_routing_put_audio_mixer),
  11271. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11273. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11278. msm_routing_put_audio_mixer),
  11279. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11281. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11282. msm_routing_put_audio_mixer),
  11283. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11289. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11290. msm_routing_put_audio_mixer),
  11291. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11293. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11294. msm_routing_put_audio_mixer),
  11295. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11297. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11298. msm_routing_put_audio_mixer),
  11299. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11301. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11302. msm_routing_put_audio_mixer),
  11303. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11305. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11306. msm_routing_put_audio_mixer),
  11307. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11309. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11310. msm_routing_put_audio_mixer),
  11311. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_USB_TX,
  11313. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11314. msm_routing_put_audio_mixer),
  11315. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11317. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11318. msm_routing_put_audio_mixer),
  11319. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11321. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11322. msm_routing_put_audio_mixer),
  11323. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11325. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11326. msm_routing_put_audio_mixer),
  11327. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11329. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11330. msm_routing_put_audio_mixer),
  11331. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11333. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11334. msm_routing_put_audio_mixer),
  11335. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11337. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11338. msm_routing_put_audio_mixer),
  11339. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11341. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11342. msm_routing_put_audio_mixer),
  11343. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11345. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11346. msm_routing_put_audio_mixer),
  11347. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11349. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11350. msm_routing_put_audio_mixer),
  11351. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11353. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11354. msm_routing_put_audio_mixer),
  11355. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11357. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11358. msm_routing_put_audio_mixer),
  11359. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11361. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11362. msm_routing_put_audio_mixer),
  11363. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. };
  11380. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  11381. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11383. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11384. msm_routing_put_audio_mixer),
  11385. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11387. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11388. msm_routing_put_audio_mixer),
  11389. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11390. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11391. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11392. msm_routing_put_audio_mixer),
  11393. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11395. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11396. msm_routing_put_audio_mixer),
  11397. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11399. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11400. msm_routing_put_audio_mixer),
  11401. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11403. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11404. msm_routing_put_audio_mixer),
  11405. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11407. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11408. msm_routing_put_audio_mixer),
  11409. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11411. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11412. msm_routing_put_audio_mixer),
  11413. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_INT_FM_TX,
  11415. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11416. msm_routing_put_audio_mixer),
  11417. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11419. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11420. msm_routing_put_audio_mixer),
  11421. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_AFE_PCM_TX,
  11423. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11439. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11440. msm_routing_put_audio_mixer),
  11441. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11443. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11448. msm_routing_put_audio_mixer),
  11449. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11451. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11452. msm_routing_put_audio_mixer),
  11453. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11455. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11456. msm_routing_put_audio_mixer),
  11457. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11459. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11460. msm_routing_put_audio_mixer),
  11461. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11463. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11476. msm_routing_put_audio_mixer),
  11477. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11479. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11480. msm_routing_put_audio_mixer),
  11481. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11482. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11483. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11484. msm_routing_put_audio_mixer),
  11485. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11487. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11488. msm_routing_put_audio_mixer),
  11489. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11491. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11492. msm_routing_put_audio_mixer),
  11493. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11495. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11496. msm_routing_put_audio_mixer),
  11497. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11498. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11499. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11500. msm_routing_put_audio_mixer),
  11501. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11502. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11503. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11504. msm_routing_put_audio_mixer),
  11505. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11506. MSM_BACKEND_DAI_USB_TX,
  11507. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11508. msm_routing_put_audio_mixer),
  11509. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11510. MSM_BACKEND_DAI_MI2S_TX,
  11511. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11512. msm_routing_put_audio_mixer),
  11513. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_AUXPCM_TX,
  11515. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11516. msm_routing_put_audio_mixer),
  11517. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11519. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11520. msm_routing_put_audio_mixer),
  11521. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11523. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11524. msm_routing_put_audio_mixer),
  11525. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11527. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11528. msm_routing_put_audio_mixer),
  11529. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11531. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11532. msm_routing_put_audio_mixer),
  11533. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11535. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11536. msm_routing_put_audio_mixer),
  11537. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11539. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11544. msm_routing_put_audio_mixer),
  11545. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11547. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11548. msm_routing_put_audio_mixer),
  11549. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11551. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11552. msm_routing_get_audio_mixer,
  11553. msm_routing_put_audio_mixer),
  11554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11556. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11557. msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11562. msm_routing_get_audio_mixer,
  11563. msm_routing_put_audio_mixer),
  11564. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11565. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11566. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11567. msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11572. msm_routing_get_audio_mixer,
  11573. msm_routing_put_audio_mixer),
  11574. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11575. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11576. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11577. msm_routing_get_audio_mixer,
  11578. msm_routing_put_audio_mixer),
  11579. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11581. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11590. msm_routing_put_audio_mixer),
  11591. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11593. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11594. msm_routing_put_audio_mixer),
  11595. };
  11596. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  11597. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11600. msm_routing_put_audio_mixer),
  11601. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11610. MSM_BACKEND_DAI_INT_FM_TX,
  11611. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11612. msm_routing_put_audio_mixer),
  11613. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11614. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11615. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11616. msm_routing_put_audio_mixer),
  11617. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_AFE_PCM_TX,
  11619. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11620. msm_routing_put_audio_mixer),
  11621. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11623. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11624. msm_routing_put_audio_mixer),
  11625. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11627. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11628. msm_routing_put_audio_mixer),
  11629. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11631. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11632. msm_routing_put_audio_mixer),
  11633. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11635. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11636. msm_routing_put_audio_mixer),
  11637. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11639. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11640. msm_routing_put_audio_mixer),
  11641. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11643. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11652. msm_routing_put_audio_mixer),
  11653. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11712. msm_routing_put_audio_mixer),
  11713. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11715. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11716. msm_routing_put_audio_mixer),
  11717. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11719. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11720. msm_routing_put_audio_mixer),
  11721. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11723. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11724. msm_routing_put_audio_mixer),
  11725. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11727. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11728. msm_routing_put_audio_mixer),
  11729. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11731. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11732. msm_routing_put_audio_mixer),
  11733. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11735. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11736. msm_routing_put_audio_mixer),
  11737. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11739. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11740. msm_routing_put_audio_mixer),
  11741. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11743. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11744. msm_routing_put_audio_mixer),
  11745. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11747. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11748. msm_routing_put_audio_mixer),
  11749. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11751. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11752. msm_routing_put_audio_mixer),
  11753. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11755. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11756. msm_routing_put_audio_mixer),
  11757. };
  11758. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  11759. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11762. msm_routing_put_audio_mixer),
  11763. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11765. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11766. msm_routing_put_audio_mixer),
  11767. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11768. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11769. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11770. msm_routing_put_audio_mixer),
  11771. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_INT_FM_TX,
  11773. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11774. msm_routing_put_audio_mixer),
  11775. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11777. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11778. msm_routing_put_audio_mixer),
  11779. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_AFE_PCM_TX,
  11781. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11782. msm_routing_put_audio_mixer),
  11783. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11784. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11785. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11786. msm_routing_put_audio_mixer),
  11787. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11788. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11789. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11790. msm_routing_put_audio_mixer),
  11791. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11793. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11794. msm_routing_put_audio_mixer),
  11795. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11797. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11798. msm_routing_put_audio_mixer),
  11799. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11801. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11802. msm_routing_put_audio_mixer),
  11803. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11805. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11806. msm_routing_put_audio_mixer),
  11807. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11809. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11810. msm_routing_put_audio_mixer),
  11811. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11813. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11814. msm_routing_put_audio_mixer),
  11815. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11817. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11818. msm_routing_put_audio_mixer),
  11819. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11821. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11822. msm_routing_put_audio_mixer),
  11823. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11825. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11826. msm_routing_put_audio_mixer),
  11827. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_USB_TX,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_MI2S_TX,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_AUXPCM_TX,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11844. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11845. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11846. msm_routing_put_audio_mixer),
  11847. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA10, 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_MULTIMEDIA10, 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_MULTIMEDIA10, 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_MULTIMEDIA10, 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_MULTIMEDIA10, 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_MULTIMEDIA10, 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_MULTIMEDIA10, 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_MULTIMEDIA10, 1, 0,
  11894. msm_routing_get_audio_mixer,
  11895. msm_routing_put_audio_mixer),
  11896. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11897. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11898. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11899. msm_routing_get_audio_mixer,
  11900. msm_routing_put_audio_mixer),
  11901. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11903. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11904. msm_routing_get_audio_mixer,
  11905. msm_routing_put_audio_mixer),
  11906. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11907. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11908. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11909. msm_routing_get_audio_mixer,
  11910. msm_routing_put_audio_mixer),
  11911. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11913. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11914. msm_routing_get_audio_mixer,
  11915. msm_routing_put_audio_mixer),
  11916. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11918. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  11919. msm_routing_get_audio_mixer,
  11920. msm_routing_put_audio_mixer),
  11921. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11923. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11924. msm_routing_put_audio_mixer),
  11925. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11927. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11928. msm_routing_put_audio_mixer),
  11929. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11931. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11932. msm_routing_put_audio_mixer),
  11933. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11935. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11936. msm_routing_put_audio_mixer),
  11937. };
  11938. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  11939. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11941. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11942. msm_routing_put_audio_mixer),
  11943. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11945. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11946. msm_routing_put_audio_mixer),
  11947. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11949. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11950. msm_routing_put_audio_mixer),
  11951. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11953. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11954. msm_routing_put_audio_mixer),
  11955. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_INT_FM_TX,
  11957. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11960. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11961. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11962. msm_routing_put_audio_mixer),
  11963. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11964. MSM_BACKEND_DAI_AFE_PCM_TX,
  11965. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11966. msm_routing_put_audio_mixer),
  11967. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11968. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11969. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11970. msm_routing_put_audio_mixer),
  11971. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11972. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11973. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11974. msm_routing_put_audio_mixer),
  11975. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11976. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11977. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11978. msm_routing_put_audio_mixer),
  11979. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11981. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11982. msm_routing_put_audio_mixer),
  11983. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11985. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11986. msm_routing_put_audio_mixer),
  11987. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11989. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11990. msm_routing_put_audio_mixer),
  11991. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11993. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11994. msm_routing_put_audio_mixer),
  11995. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11997. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  11998. msm_routing_put_audio_mixer),
  11999. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12001. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12002. msm_routing_put_audio_mixer),
  12003. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12005. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12006. msm_routing_put_audio_mixer),
  12007. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12008. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12009. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12010. msm_routing_get_audio_mixer,
  12011. msm_routing_put_audio_mixer),
  12012. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12013. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12014. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12015. msm_routing_get_audio_mixer,
  12016. msm_routing_put_audio_mixer),
  12017. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12020. msm_routing_get_audio_mixer,
  12021. msm_routing_put_audio_mixer),
  12022. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12023. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12024. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12025. msm_routing_get_audio_mixer,
  12026. msm_routing_put_audio_mixer),
  12027. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12028. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12029. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12030. msm_routing_get_audio_mixer,
  12031. msm_routing_put_audio_mixer),
  12032. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12033. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12034. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12035. msm_routing_get_audio_mixer,
  12036. msm_routing_put_audio_mixer),
  12037. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12038. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12039. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12040. msm_routing_put_audio_mixer),
  12041. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12047. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12048. msm_routing_put_audio_mixer),
  12049. };
  12050. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  12051. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12053. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12054. msm_routing_put_audio_mixer),
  12055. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12056. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12057. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12058. msm_routing_put_audio_mixer),
  12059. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12060. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12061. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12062. msm_routing_put_audio_mixer),
  12063. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12064. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12065. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12066. msm_routing_put_audio_mixer),
  12067. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12068. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12069. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12070. msm_routing_put_audio_mixer),
  12071. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12073. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12074. msm_routing_put_audio_mixer),
  12075. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12076. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12077. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12078. msm_routing_put_audio_mixer),
  12079. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12080. MSM_BACKEND_DAI_INT_FM_TX,
  12081. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12082. msm_routing_put_audio_mixer),
  12083. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12084. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12085. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12086. msm_routing_put_audio_mixer),
  12087. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12088. MSM_BACKEND_DAI_AFE_PCM_TX,
  12089. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12090. msm_routing_put_audio_mixer),
  12091. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12093. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12094. msm_routing_put_audio_mixer),
  12095. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12096. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12097. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12098. msm_routing_put_audio_mixer),
  12099. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12100. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12101. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12102. msm_routing_put_audio_mixer),
  12103. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12104. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12105. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12106. msm_routing_put_audio_mixer),
  12107. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12108. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12109. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12110. msm_routing_put_audio_mixer),
  12111. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12112. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12113. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12114. msm_routing_put_audio_mixer),
  12115. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12117. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12118. msm_routing_put_audio_mixer),
  12119. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12120. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12121. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12122. msm_routing_put_audio_mixer),
  12123. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12125. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12126. msm_routing_get_audio_mixer,
  12127. msm_routing_put_audio_mixer),
  12128. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12129. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12130. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12131. msm_routing_get_audio_mixer,
  12132. msm_routing_put_audio_mixer),
  12133. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12135. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12136. msm_routing_get_audio_mixer,
  12137. msm_routing_put_audio_mixer),
  12138. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12139. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12140. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12141. msm_routing_get_audio_mixer,
  12142. msm_routing_put_audio_mixer),
  12143. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12145. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12146. msm_routing_get_audio_mixer,
  12147. msm_routing_put_audio_mixer),
  12148. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12149. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12150. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12151. msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12159. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12160. msm_routing_put_audio_mixer),
  12161. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12163. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12164. msm_routing_put_audio_mixer),
  12165. };
  12166. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  12167. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12169. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12170. msm_routing_put_audio_mixer),
  12171. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12172. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12173. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12174. msm_routing_put_audio_mixer),
  12175. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12176. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12177. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12178. msm_routing_put_audio_mixer),
  12179. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12181. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12182. msm_routing_put_audio_mixer),
  12183. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_INT_FM_TX,
  12185. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12186. msm_routing_put_audio_mixer),
  12187. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12189. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12190. msm_routing_put_audio_mixer),
  12191. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_AFE_PCM_TX,
  12193. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12194. msm_routing_put_audio_mixer),
  12195. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12197. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12198. msm_routing_put_audio_mixer),
  12199. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12201. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12202. msm_routing_put_audio_mixer),
  12203. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12205. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12206. msm_routing_put_audio_mixer),
  12207. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12209. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12210. msm_routing_put_audio_mixer),
  12211. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12212. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12213. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12214. msm_routing_put_audio_mixer),
  12215. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12217. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12218. msm_routing_put_audio_mixer),
  12219. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12221. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12222. msm_routing_put_audio_mixer),
  12223. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12225. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12226. msm_routing_put_audio_mixer),
  12227. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12229. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12230. msm_routing_put_audio_mixer),
  12231. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12233. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12234. msm_routing_put_audio_mixer),
  12235. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12237. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12238. msm_routing_put_audio_mixer),
  12239. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12241. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12242. msm_routing_get_audio_mixer,
  12243. msm_routing_put_audio_mixer),
  12244. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12246. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12247. msm_routing_get_audio_mixer,
  12248. msm_routing_put_audio_mixer),
  12249. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12251. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12252. msm_routing_get_audio_mixer,
  12253. msm_routing_put_audio_mixer),
  12254. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12255. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12256. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12257. msm_routing_get_audio_mixer,
  12258. msm_routing_put_audio_mixer),
  12259. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12261. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12262. msm_routing_get_audio_mixer,
  12263. msm_routing_put_audio_mixer),
  12264. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12265. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12266. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12267. msm_routing_get_audio_mixer,
  12268. msm_routing_put_audio_mixer),
  12269. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12271. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12272. msm_routing_put_audio_mixer),
  12273. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12274. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12275. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12276. msm_routing_put_audio_mixer),
  12277. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12279. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12280. msm_routing_put_audio_mixer),
  12281. };
  12282. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  12283. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12285. MSM_FRONTEND_DAI_MULTIMEDIA20, 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_MULTIMEDIA20, 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_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12294. msm_routing_put_audio_mixer),
  12295. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12297. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12298. msm_routing_put_audio_mixer),
  12299. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12301. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12302. msm_routing_put_audio_mixer),
  12303. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12304. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12305. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12306. msm_routing_put_audio_mixer),
  12307. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12308. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12309. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12310. msm_routing_put_audio_mixer),
  12311. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12313. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12314. msm_routing_put_audio_mixer),
  12315. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12317. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12318. msm_routing_put_audio_mixer),
  12319. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12321. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12322. msm_routing_put_audio_mixer),
  12323. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12324. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12325. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12326. msm_routing_put_audio_mixer),
  12327. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12328. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12329. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12330. msm_routing_put_audio_mixer),
  12331. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12333. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12334. msm_routing_put_audio_mixer),
  12335. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12337. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12338. msm_routing_put_audio_mixer),
  12339. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12341. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12342. msm_routing_put_audio_mixer),
  12343. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12344. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12345. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12346. msm_routing_put_audio_mixer),
  12347. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12349. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12350. msm_routing_put_audio_mixer),
  12351. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12353. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12354. msm_routing_put_audio_mixer),
  12355. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12357. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12358. msm_routing_put_audio_mixer),
  12359. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12361. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12362. msm_routing_put_audio_mixer),
  12363. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12365. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12366. msm_routing_put_audio_mixer),
  12367. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12369. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12370. msm_routing_put_audio_mixer),
  12371. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12373. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12374. msm_routing_put_audio_mixer),
  12375. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12377. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12378. msm_routing_put_audio_mixer),
  12379. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12381. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12382. msm_routing_put_audio_mixer),
  12383. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12385. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12386. msm_routing_put_audio_mixer),
  12387. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12389. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12390. msm_routing_put_audio_mixer),
  12391. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12393. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12394. msm_routing_put_audio_mixer),
  12395. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12397. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12398. msm_routing_put_audio_mixer),
  12399. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12401. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12402. msm_routing_put_audio_mixer),
  12403. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12405. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12406. msm_routing_put_audio_mixer),
  12407. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12409. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12410. msm_routing_put_audio_mixer),
  12411. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12413. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12414. msm_routing_put_audio_mixer),
  12415. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12417. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12418. msm_routing_put_audio_mixer),
  12419. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12421. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12422. msm_routing_put_audio_mixer),
  12423. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12425. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12426. msm_routing_put_audio_mixer),
  12427. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12429. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12430. msm_routing_put_audio_mixer),
  12431. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12432. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12433. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12434. msm_routing_put_audio_mixer),
  12435. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12437. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12438. msm_routing_put_audio_mixer),
  12439. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12441. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12442. msm_routing_put_audio_mixer),
  12443. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12445. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12446. msm_routing_put_audio_mixer),
  12447. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12449. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12450. msm_routing_put_audio_mixer),
  12451. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12453. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12454. msm_routing_put_audio_mixer),
  12455. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12457. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12458. msm_routing_put_audio_mixer),
  12459. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12461. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12462. msm_routing_put_audio_mixer),
  12463. };
  12464. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  12465. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_AUXPCM_TX,
  12467. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12468. msm_routing_put_audio_mixer),
  12469. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12471. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12472. msm_routing_put_audio_mixer),
  12473. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12475. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12476. msm_routing_put_audio_mixer),
  12477. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12479. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12480. msm_routing_put_audio_mixer),
  12481. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12483. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12484. msm_routing_put_audio_mixer),
  12485. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12487. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12488. msm_routing_put_audio_mixer),
  12489. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12491. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12492. msm_routing_put_audio_mixer),
  12493. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12495. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12496. msm_routing_put_audio_mixer),
  12497. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12499. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12500. msm_routing_put_audio_mixer),
  12501. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12503. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12504. msm_routing_put_audio_mixer),
  12505. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12507. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12508. msm_routing_put_audio_mixer),
  12509. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12511. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12512. msm_routing_put_audio_mixer),
  12513. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12515. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12516. msm_routing_put_audio_mixer),
  12517. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12519. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12520. msm_routing_put_audio_mixer),
  12521. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12523. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12524. msm_routing_put_audio_mixer),
  12525. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12527. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12528. msm_routing_put_audio_mixer),
  12529. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12531. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12532. msm_routing_put_audio_mixer),
  12533. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12535. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12536. msm_routing_put_audio_mixer),
  12537. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12539. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12540. msm_routing_put_audio_mixer),
  12541. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12543. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12544. msm_routing_put_audio_mixer),
  12545. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12547. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12548. msm_routing_put_audio_mixer),
  12549. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12551. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12552. msm_routing_put_audio_mixer),
  12553. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12555. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12556. msm_routing_put_audio_mixer),
  12557. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12559. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12560. msm_routing_put_audio_mixer),
  12561. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12563. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12564. msm_routing_put_audio_mixer),
  12565. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12567. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12568. msm_routing_put_audio_mixer),
  12569. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12571. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12572. msm_routing_put_audio_mixer),
  12573. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12575. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12576. msm_routing_put_audio_mixer),
  12577. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12578. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12579. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12580. msm_routing_put_audio_mixer),
  12581. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12583. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12584. msm_routing_put_audio_mixer),
  12585. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12587. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12588. msm_routing_put_audio_mixer),
  12589. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12590. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12591. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12592. msm_routing_put_audio_mixer),
  12593. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12594. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12595. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12596. msm_routing_put_audio_mixer),
  12597. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12599. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12600. msm_routing_put_audio_mixer),
  12601. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12603. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12604. msm_routing_put_audio_mixer),
  12605. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12607. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12608. msm_routing_put_audio_mixer),
  12609. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12611. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12612. msm_routing_put_audio_mixer),
  12613. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12614. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12615. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12616. msm_routing_put_audio_mixer),
  12617. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12618. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12619. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12620. msm_routing_put_audio_mixer),
  12621. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12623. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12624. msm_routing_put_audio_mixer),
  12625. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12626. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12627. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12628. msm_routing_put_audio_mixer),
  12629. };
  12630. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  12631. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12633. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12634. msm_routing_put_audio_mixer),
  12635. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12637. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12638. msm_routing_put_audio_mixer),
  12639. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12641. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12642. msm_routing_put_audio_mixer),
  12643. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12646. msm_routing_put_audio_mixer),
  12647. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12658. msm_routing_put_audio_mixer),
  12659. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12661. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12673. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12674. msm_routing_put_audio_mixer),
  12675. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12677. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12678. msm_routing_put_audio_mixer),
  12679. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12681. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12682. msm_routing_put_audio_mixer),
  12683. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12685. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12686. msm_routing_put_audio_mixer),
  12687. };
  12688. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  12689. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12691. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12692. msm_routing_put_audio_mixer),
  12693. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12695. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12696. msm_routing_put_audio_mixer),
  12697. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12699. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12700. msm_routing_put_audio_mixer),
  12701. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12703. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12704. msm_routing_put_audio_mixer),
  12705. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_INT_FM_TX,
  12707. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12708. msm_routing_put_audio_mixer),
  12709. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12711. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12712. msm_routing_put_audio_mixer),
  12713. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_AFE_PCM_TX,
  12715. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12716. msm_routing_put_audio_mixer),
  12717. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12719. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12720. msm_routing_put_audio_mixer),
  12721. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12723. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12724. msm_routing_put_audio_mixer),
  12725. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12727. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12728. msm_routing_put_audio_mixer),
  12729. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12731. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12732. msm_routing_put_audio_mixer),
  12733. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12735. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12736. msm_routing_put_audio_mixer),
  12737. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12739. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12740. msm_routing_put_audio_mixer),
  12741. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12742. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12743. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12744. msm_routing_put_audio_mixer),
  12745. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12747. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12748. msm_routing_put_audio_mixer),
  12749. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12751. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12752. msm_routing_put_audio_mixer),
  12753. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12755. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12756. msm_routing_put_audio_mixer),
  12757. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12759. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12760. msm_routing_put_audio_mixer),
  12761. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12763. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12764. msm_routing_get_audio_mixer,
  12765. msm_routing_put_audio_mixer),
  12766. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12767. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12768. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12769. msm_routing_get_audio_mixer,
  12770. msm_routing_put_audio_mixer),
  12771. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12773. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12774. msm_routing_get_audio_mixer,
  12775. msm_routing_put_audio_mixer),
  12776. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12777. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12778. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12779. msm_routing_get_audio_mixer,
  12780. msm_routing_put_audio_mixer),
  12781. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12784. msm_routing_get_audio_mixer,
  12785. msm_routing_put_audio_mixer),
  12786. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12787. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12788. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12789. msm_routing_get_audio_mixer,
  12790. msm_routing_put_audio_mixer),
  12791. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12792. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12793. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12794. msm_routing_put_audio_mixer),
  12795. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12797. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12798. msm_routing_put_audio_mixer),
  12799. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12801. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12802. msm_routing_put_audio_mixer),
  12803. };
  12804. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  12805. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12807. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12808. msm_routing_put_audio_mixer),
  12809. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12811. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12812. msm_routing_put_audio_mixer),
  12813. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12815. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12816. msm_routing_put_audio_mixer),
  12817. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12819. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12820. msm_routing_put_audio_mixer),
  12821. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_INT_FM_TX,
  12823. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12824. msm_routing_put_audio_mixer),
  12825. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12827. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12828. msm_routing_put_audio_mixer),
  12829. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_AFE_PCM_TX,
  12831. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12832. msm_routing_put_audio_mixer),
  12833. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12834. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12835. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12836. msm_routing_put_audio_mixer),
  12837. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12838. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12839. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12840. msm_routing_put_audio_mixer),
  12841. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12842. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12843. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12844. msm_routing_put_audio_mixer),
  12845. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12847. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12848. msm_routing_put_audio_mixer),
  12849. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12851. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12852. msm_routing_put_audio_mixer),
  12853. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12854. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12855. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12856. msm_routing_put_audio_mixer),
  12857. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12859. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12860. msm_routing_put_audio_mixer),
  12861. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12863. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12864. msm_routing_put_audio_mixer),
  12865. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12867. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12868. msm_routing_put_audio_mixer),
  12869. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12880. msm_routing_get_audio_mixer,
  12881. msm_routing_put_audio_mixer),
  12882. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12884. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12885. msm_routing_get_audio_mixer,
  12886. msm_routing_put_audio_mixer),
  12887. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12889. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12890. msm_routing_get_audio_mixer,
  12891. msm_routing_put_audio_mixer),
  12892. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12893. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12894. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12895. msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12900. msm_routing_get_audio_mixer,
  12901. msm_routing_put_audio_mixer),
  12902. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12903. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12904. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12905. msm_routing_get_audio_mixer,
  12906. msm_routing_put_audio_mixer),
  12907. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12908. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12909. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12910. msm_routing_put_audio_mixer),
  12911. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12913. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12914. msm_routing_put_audio_mixer),
  12915. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12916. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12917. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12918. msm_routing_put_audio_mixer),
  12919. };
  12920. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  12921. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_PRI_I2S_RX,
  12923. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12924. msm_routing_put_voice_mixer),
  12925. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_PRI_I2S_RX,
  12927. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12928. msm_routing_put_voice_mixer),
  12929. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_PRI_I2S_RX,
  12931. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12932. msm_routing_put_voice_mixer),
  12933. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_PRI_I2S_RX,
  12935. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12936. msm_routing_put_voice_mixer),
  12937. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_PRI_I2S_RX,
  12939. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12940. msm_routing_put_voice_mixer),
  12941. };
  12942. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  12943. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_SEC_I2S_RX,
  12945. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12946. msm_routing_put_voice_mixer),
  12947. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_SEC_I2S_RX,
  12949. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12950. msm_routing_put_voice_mixer),
  12951. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_SEC_I2S_RX,
  12953. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12954. msm_routing_put_voice_mixer),
  12955. };
  12956. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  12957. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12959. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12960. msm_routing_put_voice_mixer),
  12961. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12963. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  12964. msm_routing_put_voice_mixer),
  12965. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  12966. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12967. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  12968. msm_routing_put_voice_mixer),
  12969. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12971. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12972. msm_routing_put_voice_mixer),
  12973. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12975. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12976. msm_routing_put_voice_mixer),
  12977. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12979. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  12980. msm_routing_put_voice_mixer),
  12981. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  12983. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  12984. msm_routing_put_voice_mixer),
  12985. };
  12986. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  12987. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12989. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  12990. msm_routing_put_voice_mixer),
  12991. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  12992. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12993. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  12994. msm_routing_put_voice_mixer),
  12995. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  12997. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  12998. msm_routing_put_voice_mixer),
  12999. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13001. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13002. msm_routing_put_voice_mixer),
  13003. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13005. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13006. msm_routing_put_voice_mixer),
  13007. };
  13008. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  13009. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13011. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13012. msm_routing_put_voice_mixer),
  13013. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13015. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13016. msm_routing_put_voice_mixer),
  13017. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13019. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13020. msm_routing_put_voice_mixer),
  13021. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13023. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13024. msm_routing_put_voice_mixer),
  13025. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13026. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13027. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13028. msm_routing_put_voice_mixer),
  13029. };
  13030. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  13031. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13032. MSM_BACKEND_DAI_USB_RX,
  13033. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13034. msm_routing_put_voice_mixer),
  13035. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_USB_RX,
  13037. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13038. msm_routing_put_voice_mixer),
  13039. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_USB_RX,
  13041. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13042. msm_routing_put_voice_mixer),
  13043. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_USB_RX,
  13045. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13046. msm_routing_put_voice_mixer),
  13047. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_USB_RX,
  13049. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13050. msm_routing_put_voice_mixer),
  13051. };
  13052. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  13053. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13055. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13056. msm_routing_put_voice_mixer),
  13057. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13058. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13059. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13060. msm_routing_put_voice_mixer),
  13061. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13063. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13064. msm_routing_put_voice_mixer),
  13065. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13066. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13067. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13068. msm_routing_put_voice_mixer),
  13069. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13070. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13071. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13072. msm_routing_put_voice_mixer),
  13073. };
  13074. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  13075. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13077. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13078. msm_routing_put_voice_mixer),
  13079. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13081. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13082. msm_routing_put_voice_mixer),
  13083. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13084. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13085. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13086. msm_routing_put_voice_mixer),
  13087. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13088. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13089. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13090. msm_routing_put_voice_mixer),
  13091. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13093. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13094. msm_routing_put_voice_mixer),
  13095. };
  13096. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  13097. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13099. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13100. msm_routing_put_voice_mixer),
  13101. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13103. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13104. msm_routing_put_voice_mixer),
  13105. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13107. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13108. msm_routing_put_voice_mixer),
  13109. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13111. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13112. msm_routing_put_voice_mixer),
  13113. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13115. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13116. msm_routing_put_voice_mixer),
  13117. };
  13118. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  13119. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_MI2S_RX,
  13121. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13122. msm_routing_put_voice_mixer),
  13123. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13124. MSM_BACKEND_DAI_MI2S_RX,
  13125. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13126. msm_routing_put_voice_mixer),
  13127. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13128. MSM_BACKEND_DAI_MI2S_RX,
  13129. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13130. msm_routing_put_voice_mixer),
  13131. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_MI2S_RX,
  13133. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13134. msm_routing_put_voice_mixer),
  13135. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_MI2S_RX,
  13137. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13138. msm_routing_put_voice_mixer),
  13139. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13140. MSM_BACKEND_DAI_MI2S_RX,
  13141. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13142. msm_routing_put_voice_mixer),
  13143. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13144. MSM_BACKEND_DAI_MI2S_RX,
  13145. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13146. msm_routing_put_voice_mixer),
  13147. };
  13148. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  13149. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13151. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13152. msm_routing_put_voice_mixer),
  13153. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13155. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13156. msm_routing_put_voice_mixer),
  13157. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13159. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13160. msm_routing_put_voice_mixer),
  13161. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13163. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13164. msm_routing_put_voice_mixer),
  13165. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13167. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13168. msm_routing_put_voice_mixer),
  13169. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13171. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13172. msm_routing_put_voice_mixer),
  13173. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13175. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13176. msm_routing_put_voice_mixer),
  13177. };
  13178. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  13179. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13180. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13181. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13182. msm_routing_put_voice_mixer),
  13183. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13185. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13186. msm_routing_put_voice_mixer),
  13187. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13189. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13190. msm_routing_put_voice_mixer),
  13191. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13192. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13193. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13194. msm_routing_put_voice_mixer),
  13195. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13196. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13197. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13198. msm_routing_put_voice_mixer),
  13199. };
  13200. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  13201. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13203. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13204. msm_routing_put_voice_mixer),
  13205. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13207. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13208. msm_routing_put_voice_mixer),
  13209. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13210. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13211. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13212. msm_routing_put_voice_mixer),
  13213. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13215. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13216. msm_routing_put_voice_mixer),
  13217. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13219. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13220. msm_routing_put_voice_mixer),
  13221. };
  13222. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  13223. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13224. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13225. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13226. msm_routing_put_voice_mixer),
  13227. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13228. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13229. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13230. msm_routing_put_voice_mixer),
  13231. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13232. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13233. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13234. msm_routing_put_voice_mixer),
  13235. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13236. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13237. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13238. msm_routing_put_voice_mixer),
  13239. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13240. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13241. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13242. msm_routing_put_voice_mixer),
  13243. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13245. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13246. msm_routing_put_voice_mixer),
  13247. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13249. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13250. msm_routing_put_voice_mixer),
  13251. };
  13252. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  13253. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13255. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13256. msm_routing_put_voice_mixer),
  13257. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13258. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13259. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13260. msm_routing_put_voice_mixer),
  13261. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13262. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13263. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13264. msm_routing_put_voice_mixer),
  13265. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13266. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13267. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13268. msm_routing_put_voice_mixer),
  13269. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13270. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13271. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13272. msm_routing_put_voice_mixer),
  13273. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13275. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13276. msm_routing_put_voice_mixer),
  13277. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13278. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13279. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13280. msm_routing_put_voice_mixer),
  13281. };
  13282. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  13283. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13285. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13286. msm_routing_put_voice_mixer),
  13287. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13289. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13290. msm_routing_put_voice_stub_mixer),
  13291. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13293. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13294. msm_routing_put_voice_stub_mixer),
  13295. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13297. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13298. msm_routing_put_voice_mixer),
  13299. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13301. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13302. msm_routing_put_voice_mixer),
  13303. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13305. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13306. msm_routing_put_voice_mixer),
  13307. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13309. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13310. msm_routing_put_voice_mixer),
  13311. };
  13312. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  13313. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13314. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13315. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13316. msm_routing_put_voice_mixer),
  13317. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13318. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13319. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13320. msm_routing_put_voice_mixer),
  13321. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13322. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13323. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13324. msm_routing_put_voice_mixer),
  13325. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13327. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13328. msm_routing_put_voice_mixer),
  13329. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13331. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13332. msm_routing_put_voice_mixer),
  13333. };
  13334. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  13335. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_AFE_PCM_RX,
  13337. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13338. msm_routing_put_voice_mixer),
  13339. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_AFE_PCM_RX,
  13341. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13342. msm_routing_put_voice_mixer),
  13343. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13344. MSM_BACKEND_DAI_AFE_PCM_RX,
  13345. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13346. msm_routing_put_voice_mixer),
  13347. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13348. MSM_BACKEND_DAI_AFE_PCM_RX,
  13349. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13350. msm_routing_put_voice_mixer),
  13351. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_AFE_PCM_RX,
  13353. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13354. msm_routing_put_voice_mixer),
  13355. };
  13356. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  13357. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13358. MSM_BACKEND_DAI_AUXPCM_RX,
  13359. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13360. msm_routing_put_voice_mixer),
  13361. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13362. MSM_BACKEND_DAI_AUXPCM_RX,
  13363. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13364. msm_routing_put_voice_mixer),
  13365. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_AUXPCM_RX,
  13367. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13368. msm_routing_put_voice_mixer),
  13369. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13370. MSM_BACKEND_DAI_AUXPCM_RX,
  13371. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13372. msm_routing_put_voice_mixer),
  13373. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13374. MSM_BACKEND_DAI_AUXPCM_RX,
  13375. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13376. msm_routing_put_voice_mixer),
  13377. };
  13378. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  13379. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13381. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13382. msm_routing_put_voice_mixer),
  13383. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13384. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13385. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13386. msm_routing_put_voice_mixer),
  13387. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13389. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13390. msm_routing_put_voice_mixer),
  13391. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13393. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13394. msm_routing_put_voice_mixer),
  13395. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13396. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13397. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13398. msm_routing_put_voice_mixer),
  13399. };
  13400. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  13401. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13402. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13403. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13404. msm_routing_put_voice_mixer),
  13405. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13406. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13407. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13408. msm_routing_put_voice_mixer),
  13409. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13411. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13412. msm_routing_put_voice_mixer),
  13413. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13414. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13415. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13416. msm_routing_put_voice_mixer),
  13417. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13419. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13420. msm_routing_put_voice_mixer),
  13421. };
  13422. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  13423. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13425. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13426. msm_routing_put_voice_mixer),
  13427. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13429. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13430. msm_routing_put_voice_mixer),
  13431. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13433. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13434. msm_routing_put_voice_mixer),
  13435. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13437. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13438. msm_routing_put_voice_mixer),
  13439. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13441. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13442. msm_routing_put_voice_mixer),
  13443. };
  13444. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  13445. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13446. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13447. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13448. msm_routing_put_voice_mixer),
  13449. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13450. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13451. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13452. msm_routing_put_voice_mixer),
  13453. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13454. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13455. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13456. msm_routing_put_voice_mixer),
  13457. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13459. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13460. msm_routing_put_voice_mixer),
  13461. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13462. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13463. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13464. msm_routing_put_voice_mixer),
  13465. };
  13466. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  13467. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13468. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13469. msm_routing_put_voice_mixer),
  13470. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13471. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13472. msm_routing_put_voice_mixer),
  13473. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13474. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13475. msm_routing_put_voice_mixer),
  13476. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13477. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13478. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13479. msm_routing_put_voice_mixer),
  13480. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13481. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13482. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13483. msm_routing_put_voice_mixer),
  13484. };
  13485. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  13486. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13487. MSM_BACKEND_DAI_HDMI_RX,
  13488. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13489. msm_routing_put_voice_mixer),
  13490. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13491. MSM_BACKEND_DAI_HDMI_RX,
  13492. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13493. msm_routing_put_voice_mixer),
  13494. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13495. MSM_BACKEND_DAI_HDMI_RX,
  13496. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13497. msm_routing_put_voice_mixer),
  13498. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13499. MSM_BACKEND_DAI_HDMI_RX,
  13500. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13501. msm_routing_put_voice_mixer),
  13502. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13503. MSM_BACKEND_DAI_HDMI_RX,
  13504. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13505. msm_routing_put_voice_mixer),
  13506. };
  13507. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  13508. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13509. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13510. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13511. msm_routing_put_voice_mixer),
  13512. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13513. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13514. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13515. msm_routing_put_voice_mixer),
  13516. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13517. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13518. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13519. msm_routing_put_voice_mixer),
  13520. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13521. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13522. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13523. msm_routing_put_voice_mixer),
  13524. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13525. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13526. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13527. msm_routing_put_voice_mixer),
  13528. };
  13529. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  13530. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13531. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13532. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13533. msm_routing_put_voice_mixer),
  13534. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13535. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13536. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13537. msm_routing_put_voice_mixer),
  13538. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13540. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13541. msm_routing_put_voice_mixer),
  13542. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13543. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13544. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13545. msm_routing_put_voice_mixer),
  13546. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13547. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13548. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13549. msm_routing_put_voice_mixer),
  13550. };
  13551. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  13552. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13553. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13554. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13555. msm_routing_put_voice_mixer),
  13556. };
  13557. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  13558. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13559. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13560. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13561. msm_routing_put_voice_mixer),
  13562. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13563. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13564. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13565. msm_routing_put_voice_mixer),
  13566. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13567. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13568. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13569. msm_routing_put_voice_mixer),
  13570. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13571. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13572. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13573. msm_routing_put_voice_mixer),
  13574. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13575. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13576. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13577. msm_routing_put_voice_mixer),
  13578. };
  13579. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  13580. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13581. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13582. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13583. msm_routing_put_voice_mixer),
  13584. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13585. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13586. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13587. msm_routing_put_voice_mixer),
  13588. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13589. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13590. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13591. msm_routing_put_voice_mixer),
  13592. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13593. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13594. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13595. msm_routing_put_voice_mixer),
  13596. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13597. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13598. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13599. msm_routing_put_voice_mixer),
  13600. };
  13601. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  13602. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13603. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13604. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13605. msm_routing_put_voice_mixer),
  13606. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13607. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13608. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13609. msm_routing_put_voice_mixer),
  13610. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13611. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13612. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13613. msm_routing_put_voice_mixer),
  13614. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13615. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13616. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13617. msm_routing_put_voice_mixer),
  13618. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13619. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13620. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13621. msm_routing_put_voice_mixer),
  13622. };
  13623. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  13624. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13625. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13626. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13627. msm_routing_put_voice_mixer),
  13628. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13629. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13630. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13631. msm_routing_put_voice_mixer),
  13632. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13633. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13634. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13635. msm_routing_put_voice_mixer),
  13636. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13638. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13639. msm_routing_put_voice_mixer),
  13640. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13642. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13643. msm_routing_put_voice_mixer),
  13644. };
  13645. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  13646. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13647. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13648. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13649. msm_routing_put_voice_mixer),
  13650. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13651. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13652. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13653. msm_routing_put_voice_mixer),
  13654. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13655. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13656. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13657. msm_routing_put_voice_mixer),
  13658. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13659. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13660. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13661. msm_routing_put_voice_mixer),
  13662. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13663. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13664. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13665. msm_routing_put_voice_mixer),
  13666. };
  13667. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  13668. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13669. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13670. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13671. msm_routing_put_voice_mixer),
  13672. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13673. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13674. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13675. msm_routing_put_voice_mixer),
  13676. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13677. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13678. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13679. msm_routing_put_voice_mixer),
  13680. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13681. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13682. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13683. msm_routing_put_voice_mixer),
  13684. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13685. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13686. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13687. msm_routing_put_voice_mixer),
  13688. };
  13689. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  13690. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13691. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13692. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13693. msm_routing_put_voice_mixer),
  13694. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13695. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13696. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13697. msm_routing_put_voice_mixer),
  13698. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13699. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13700. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13701. msm_routing_put_voice_mixer),
  13702. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13703. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13704. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13705. msm_routing_put_voice_mixer),
  13706. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13707. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13708. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13709. msm_routing_put_voice_mixer),
  13710. };
  13711. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  13712. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13713. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13714. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13715. msm_routing_put_voice_mixer),
  13716. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13717. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13718. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13719. msm_routing_put_voice_mixer),
  13720. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13721. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13722. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13723. msm_routing_put_voice_mixer),
  13724. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13725. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13726. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13727. msm_routing_put_voice_mixer),
  13728. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13730. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13731. msm_routing_put_voice_mixer),
  13732. };
  13733. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  13734. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13735. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13736. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13737. msm_routing_put_voice_mixer),
  13738. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13739. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13740. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13741. msm_routing_put_voice_mixer),
  13742. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13744. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13745. msm_routing_put_voice_mixer),
  13746. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13747. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13748. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13749. msm_routing_put_voice_mixer),
  13750. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13751. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13752. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13753. msm_routing_put_voice_mixer),
  13754. };
  13755. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  13756. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13757. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13758. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13759. msm_routing_put_voice_mixer),
  13760. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13761. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13762. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13763. msm_routing_put_voice_mixer),
  13764. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13765. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13766. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13767. msm_routing_put_voice_mixer),
  13768. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13769. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13770. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13771. msm_routing_put_voice_mixer),
  13772. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13773. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13774. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13775. msm_routing_put_voice_mixer),
  13776. };
  13777. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  13778. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13780. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13781. msm_routing_put_voice_mixer),
  13782. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13783. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13784. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13785. msm_routing_put_voice_stub_mixer),
  13786. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13787. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13788. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13789. msm_routing_put_voice_stub_mixer),
  13790. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  13791. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13792. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13793. msm_routing_put_voice_mixer),
  13794. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13795. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13796. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13797. msm_routing_put_voice_mixer),
  13798. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13799. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13800. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13801. msm_routing_put_voice_mixer),
  13802. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13803. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13804. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13805. msm_routing_put_voice_mixer),
  13806. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13807. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13808. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13809. msm_routing_put_voice_mixer),
  13810. };
  13811. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  13812. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13814. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13815. msm_routing_put_voice_mixer),
  13816. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13818. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13819. msm_routing_put_voice_stub_mixer),
  13820. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13822. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13823. msm_routing_put_voice_stub_mixer),
  13824. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  13825. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13826. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13827. msm_routing_put_voice_mixer),
  13828. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13829. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13830. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13831. msm_routing_put_voice_mixer),
  13832. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13833. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13834. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13835. msm_routing_put_voice_mixer),
  13836. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13837. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13838. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13839. msm_routing_put_voice_mixer),
  13840. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13841. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13842. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13843. msm_routing_put_voice_mixer),
  13844. };
  13845. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  13846. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13847. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13848. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13849. msm_routing_put_voice_mixer),
  13850. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13851. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13852. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13853. msm_routing_put_voice_stub_mixer),
  13854. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13855. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13856. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13857. msm_routing_put_voice_stub_mixer),
  13858. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  13859. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13860. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13861. msm_routing_put_voice_mixer),
  13862. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13863. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13864. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13865. msm_routing_put_voice_mixer),
  13866. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13867. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13868. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13869. msm_routing_put_voice_mixer),
  13870. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13872. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13873. msm_routing_put_voice_mixer),
  13874. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13875. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13876. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13877. msm_routing_put_voice_mixer),
  13878. };
  13879. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  13880. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13881. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13882. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13883. msm_routing_put_voice_mixer),
  13884. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13885. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13886. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13887. msm_routing_put_voice_stub_mixer),
  13888. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13889. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13890. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13891. msm_routing_put_voice_stub_mixer),
  13892. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  13893. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13894. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13895. msm_routing_put_voice_mixer),
  13896. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13897. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13898. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13899. msm_routing_put_voice_mixer),
  13900. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13901. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13902. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13903. msm_routing_put_voice_mixer),
  13904. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13905. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13906. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13907. msm_routing_put_voice_mixer),
  13908. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13909. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13910. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13911. msm_routing_put_voice_mixer),
  13912. };
  13913. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  13914. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13915. MSM_BACKEND_DAI_EXTPROC_RX,
  13916. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13917. msm_routing_put_voice_mixer),
  13918. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13919. MSM_BACKEND_DAI_EXTPROC_RX,
  13920. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13921. msm_routing_put_voice_mixer),
  13922. };
  13923. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  13924. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13925. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13926. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13927. msm_routing_put_voice_mixer),
  13928. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13929. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  13930. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13931. msm_routing_put_voice_mixer),
  13932. };
  13933. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  13934. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13935. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13936. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13937. msm_routing_put_voice_mixer),
  13938. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13939. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  13940. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13941. msm_routing_put_voice_mixer),
  13942. };
  13943. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  13944. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  13945. MSM_BACKEND_DAI_PRI_I2S_TX,
  13946. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13947. msm_routing_put_voice_mixer),
  13948. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  13949. MSM_BACKEND_DAI_MI2S_TX,
  13950. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13951. msm_routing_put_voice_mixer),
  13952. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  13953. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13954. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13955. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  13956. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13957. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13958. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  13959. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  13960. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13961. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  13963. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13964. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13965. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13966. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13967. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13968. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13969. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13970. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13971. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13972. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13973. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13974. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13975. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13976. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  13977. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13978. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13979. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  13981. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13982. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  13983. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  13984. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13985. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  13986. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  13987. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13988. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  13989. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13990. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13991. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  13992. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  13993. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  13994. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  13995. MSM_BACKEND_DAI_USB_TX,
  13996. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13997. msm_routing_put_voice_mixer),
  13998. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  14000. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14001. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  14003. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14004. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  14005. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  14006. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14007. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  14008. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  14009. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14010. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  14011. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  14012. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14013. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  14015. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14016. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  14017. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  14018. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14019. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  14020. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  14021. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14022. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  14023. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  14024. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14025. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  14027. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14028. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  14029. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14030. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14031. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  14032. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14033. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14034. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  14035. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  14036. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14037. };
  14038. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  14039. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  14040. MSM_BACKEND_DAI_PRI_I2S_TX,
  14041. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14042. msm_routing_put_voice_mixer),
  14043. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  14044. MSM_BACKEND_DAI_MI2S_TX,
  14045. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14046. msm_routing_put_voice_mixer),
  14047. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  14048. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14049. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14050. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  14051. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14052. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14053. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14055. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14056. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14057. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14058. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14059. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14060. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14061. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14062. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14063. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14064. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14065. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14066. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14067. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14068. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14069. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14070. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14071. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14072. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14073. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14074. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  14075. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14076. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14077. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14079. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14080. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  14081. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14082. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14083. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  14084. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14085. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14086. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  14087. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14088. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14089. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14091. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14092. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  14093. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  14094. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14095. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  14097. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14098. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  14099. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  14100. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14101. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  14103. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14104. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  14105. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  14106. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14107. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  14108. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  14109. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14110. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  14111. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  14112. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14113. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  14115. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14116. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  14117. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  14118. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14119. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  14120. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14121. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14122. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  14123. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14124. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14125. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  14126. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  14127. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14128. };
  14129. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  14130. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  14131. MSM_BACKEND_DAI_PRI_I2S_TX,
  14132. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14133. msm_routing_put_voice_mixer),
  14134. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  14135. MSM_BACKEND_DAI_MI2S_TX,
  14136. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14137. msm_routing_put_voice_mixer),
  14138. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  14139. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14140. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14141. msm_routing_put_voice_mixer),
  14142. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  14143. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14144. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14145. msm_routing_put_voice_mixer),
  14146. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  14147. MSM_BACKEND_DAI_AFE_PCM_TX,
  14148. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14149. msm_routing_put_voice_mixer),
  14150. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14151. MSM_BACKEND_DAI_AUXPCM_TX,
  14152. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14153. msm_routing_put_voice_mixer),
  14154. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14155. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14156. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14157. msm_routing_put_voice_mixer),
  14158. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14159. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14160. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14161. msm_routing_put_voice_mixer),
  14162. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14163. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14164. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14165. msm_routing_put_voice_mixer),
  14166. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14168. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14169. msm_routing_put_voice_mixer),
  14170. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14171. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14172. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14173. msm_routing_put_voice_mixer),
  14174. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  14175. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14176. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14177. msm_routing_put_voice_mixer),
  14178. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  14179. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14180. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14181. msm_routing_put_voice_mixer),
  14182. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  14183. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14184. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14185. msm_routing_put_voice_mixer),
  14186. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  14187. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14188. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14189. msm_routing_put_voice_mixer),
  14190. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  14191. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14192. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14193. msm_routing_put_voice_mixer),
  14194. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  14195. MSM_BACKEND_DAI_USB_TX,
  14196. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14197. msm_routing_put_voice_mixer),
  14198. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  14199. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  14200. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14201. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  14203. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14204. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  14205. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  14206. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14207. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  14208. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  14209. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14210. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  14211. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  14212. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14213. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  14215. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14216. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  14217. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  14218. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14219. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  14220. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  14221. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14222. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  14223. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  14224. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14225. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14226. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14227. msm_routing_put_voice_mixer),
  14228. };
  14229. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  14230. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  14231. MSM_BACKEND_DAI_EXTPROC_TX,
  14232. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14233. msm_routing_put_voice_stub_mixer),
  14234. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14235. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14236. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14237. msm_routing_put_voice_stub_mixer),
  14238. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14239. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14240. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14241. msm_routing_put_voice_stub_mixer),
  14242. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  14243. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  14244. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14245. msm_routing_put_voice_stub_mixer),
  14246. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14247. MSM_BACKEND_DAI_MI2S_TX,
  14248. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14249. msm_routing_put_voice_stub_mixer),
  14250. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14251. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14252. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14253. msm_routing_put_voice_stub_mixer),
  14254. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14255. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14256. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14257. msm_routing_put_voice_stub_mixer),
  14258. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14259. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14260. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14261. msm_routing_put_voice_stub_mixer),
  14262. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14263. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14264. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14265. msm_routing_put_voice_stub_mixer),
  14266. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14267. MSM_BACKEND_DAI_AUXPCM_TX,
  14268. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14269. msm_routing_put_voice_stub_mixer),
  14270. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14271. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14272. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14273. msm_routing_put_voice_stub_mixer),
  14274. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14275. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14276. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14277. msm_routing_put_voice_stub_mixer),
  14278. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14279. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14280. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14281. msm_routing_put_voice_stub_mixer),
  14282. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14283. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14284. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14285. msm_routing_put_voice_stub_mixer),
  14286. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14287. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14288. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14289. msm_routing_put_voice_stub_mixer),
  14290. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14291. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14292. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14293. msm_routing_put_voice_stub_mixer),
  14294. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  14295. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14296. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14297. msm_routing_put_voice_stub_mixer),
  14298. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14299. MSM_BACKEND_DAI_AFE_PCM_TX,
  14300. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14301. msm_routing_put_voice_stub_mixer),
  14302. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14303. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14304. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14305. msm_routing_put_voice_stub_mixer),
  14306. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14307. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14308. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14309. msm_routing_put_voice_stub_mixer),
  14310. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14311. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  14312. 1, 0, msm_routing_get_voice_stub_mixer,
  14313. msm_routing_put_voice_stub_mixer),
  14314. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14315. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  14316. 1, 0, msm_routing_get_voice_stub_mixer,
  14317. msm_routing_put_voice_stub_mixer),
  14318. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14319. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  14320. 1, 0, msm_routing_get_voice_stub_mixer,
  14321. msm_routing_put_voice_stub_mixer),
  14322. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14323. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  14324. 1, 0, msm_routing_get_voice_stub_mixer,
  14325. msm_routing_put_voice_stub_mixer),
  14326. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14327. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  14328. 1, 0, msm_routing_get_voice_stub_mixer,
  14329. msm_routing_put_voice_stub_mixer),
  14330. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14331. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  14332. 1, 0, msm_routing_get_voice_stub_mixer,
  14333. msm_routing_put_voice_stub_mixer),
  14334. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14335. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  14336. 1, 0, msm_routing_get_voice_stub_mixer,
  14337. msm_routing_put_voice_stub_mixer),
  14338. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14339. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  14340. 1, 0, msm_routing_get_voice_stub_mixer,
  14341. msm_routing_put_voice_stub_mixer),
  14342. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14343. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  14344. 1, 0, msm_routing_get_voice_stub_mixer,
  14345. msm_routing_put_voice_stub_mixer),
  14346. };
  14347. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  14348. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  14349. MSM_BACKEND_DAI_EXTPROC_TX,
  14350. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14351. msm_routing_put_voice_stub_mixer),
  14352. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14353. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14354. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14355. msm_routing_put_voice_stub_mixer),
  14356. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  14357. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  14358. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14359. msm_routing_put_voice_stub_mixer),
  14360. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14361. MSM_BACKEND_DAI_AUXPCM_TX,
  14362. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14363. msm_routing_put_voice_stub_mixer),
  14364. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14365. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14366. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14367. msm_routing_put_voice_stub_mixer),
  14368. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14369. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14370. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14371. msm_routing_put_voice_stub_mixer),
  14372. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14373. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14374. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14375. msm_routing_put_voice_stub_mixer),
  14376. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14377. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14378. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14379. msm_routing_put_voice_stub_mixer),
  14380. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14381. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14382. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14383. msm_routing_put_voice_stub_mixer),
  14384. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14385. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14386. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14387. msm_routing_put_voice_stub_mixer),
  14388. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  14389. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14390. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14391. msm_routing_put_voice_stub_mixer),
  14392. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14393. MSM_BACKEND_DAI_AFE_PCM_TX,
  14394. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14395. msm_routing_put_voice_stub_mixer),
  14396. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14397. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14398. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14399. msm_routing_put_voice_stub_mixer),
  14400. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14401. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14402. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14403. msm_routing_put_voice_stub_mixer),
  14404. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14405. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14406. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14407. msm_routing_put_voice_stub_mixer),
  14408. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14409. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14410. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14411. msm_routing_put_voice_stub_mixer),
  14412. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14413. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14414. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14415. msm_routing_put_voice_stub_mixer),
  14416. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14417. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  14418. 1, 0, msm_routing_get_voice_stub_mixer,
  14419. msm_routing_put_voice_stub_mixer),
  14420. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14421. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  14422. 1, 0, msm_routing_get_voice_stub_mixer,
  14423. msm_routing_put_voice_stub_mixer),
  14424. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14425. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  14426. 1, 0, msm_routing_get_voice_stub_mixer,
  14427. msm_routing_put_voice_stub_mixer),
  14428. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14429. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  14430. 1, 0, msm_routing_get_voice_stub_mixer,
  14431. msm_routing_put_voice_stub_mixer),
  14432. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14433. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  14434. 1, 0, msm_routing_get_voice_stub_mixer,
  14435. msm_routing_put_voice_stub_mixer),
  14436. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14437. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  14438. 1, 0, msm_routing_get_voice_stub_mixer,
  14439. msm_routing_put_voice_stub_mixer),
  14440. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14441. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  14442. 1, 0, msm_routing_get_voice_stub_mixer,
  14443. msm_routing_put_voice_stub_mixer),
  14444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  14446. 1, 0, msm_routing_get_voice_stub_mixer,
  14447. msm_routing_put_voice_stub_mixer),
  14448. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14449. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  14450. 1, 0, msm_routing_get_voice_stub_mixer,
  14451. msm_routing_put_voice_stub_mixer),
  14452. };
  14453. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  14454. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  14455. MSM_BACKEND_DAI_EXTPROC_TX,
  14456. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14457. msm_routing_put_voice_stub_mixer),
  14458. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14459. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14460. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14461. msm_routing_put_voice_stub_mixer),
  14462. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  14463. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  14464. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14465. msm_routing_put_voice_stub_mixer),
  14466. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14467. MSM_BACKEND_DAI_AUXPCM_TX,
  14468. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14469. msm_routing_put_voice_stub_mixer),
  14470. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14471. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14472. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14473. msm_routing_put_voice_stub_mixer),
  14474. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14475. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14476. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14477. msm_routing_put_voice_stub_mixer),
  14478. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14479. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14480. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14481. msm_routing_put_voice_stub_mixer),
  14482. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14483. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14484. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14485. msm_routing_put_voice_stub_mixer),
  14486. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14487. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14488. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14489. msm_routing_put_voice_stub_mixer),
  14490. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14491. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14492. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14493. msm_routing_put_voice_stub_mixer),
  14494. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  14495. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14496. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14497. msm_routing_put_voice_stub_mixer),
  14498. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14499. MSM_BACKEND_DAI_AFE_PCM_TX,
  14500. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14501. msm_routing_put_voice_stub_mixer),
  14502. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14503. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14504. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14505. msm_routing_put_voice_stub_mixer),
  14506. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14507. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14508. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14509. msm_routing_put_voice_stub_mixer),
  14510. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14511. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14512. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14513. msm_routing_put_voice_stub_mixer),
  14514. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14515. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14516. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14517. msm_routing_put_voice_stub_mixer),
  14518. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14519. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  14520. 1, 0, msm_routing_get_voice_stub_mixer,
  14521. msm_routing_put_voice_stub_mixer),
  14522. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14523. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  14524. 1, 0, msm_routing_get_voice_stub_mixer,
  14525. msm_routing_put_voice_stub_mixer),
  14526. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14527. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  14528. 1, 0, msm_routing_get_voice_stub_mixer,
  14529. msm_routing_put_voice_stub_mixer),
  14530. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14531. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  14532. 1, 0, msm_routing_get_voice_stub_mixer,
  14533. msm_routing_put_voice_stub_mixer),
  14534. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14535. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  14536. 1, 0, msm_routing_get_voice_stub_mixer,
  14537. msm_routing_put_voice_stub_mixer),
  14538. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14539. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  14540. 1, 0, msm_routing_get_voice_stub_mixer,
  14541. msm_routing_put_voice_stub_mixer),
  14542. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14543. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  14544. 1, 0, msm_routing_get_voice_stub_mixer,
  14545. msm_routing_put_voice_stub_mixer),
  14546. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14547. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  14548. 1, 0, msm_routing_get_voice_stub_mixer,
  14549. msm_routing_put_voice_stub_mixer),
  14550. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14551. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  14552. 1, 0, msm_routing_get_voice_stub_mixer,
  14553. msm_routing_put_voice_stub_mixer),
  14554. };
  14555. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  14556. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  14557. MSM_BACKEND_DAI_PRI_I2S_TX,
  14558. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14559. msm_routing_put_voice_mixer),
  14560. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  14561. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14562. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14563. msm_routing_put_voice_mixer),
  14564. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  14565. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14566. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  14567. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14568. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  14569. MSM_BACKEND_DAI_AFE_PCM_TX,
  14570. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14571. msm_routing_put_voice_mixer),
  14572. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14573. MSM_BACKEND_DAI_AUXPCM_TX,
  14574. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14575. msm_routing_put_voice_mixer),
  14576. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14577. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14578. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14579. msm_routing_put_voice_mixer),
  14580. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14581. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14582. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14583. msm_routing_put_voice_mixer),
  14584. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14585. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14586. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14587. msm_routing_put_voice_mixer),
  14588. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14589. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14590. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14591. msm_routing_put_voice_mixer),
  14592. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14593. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14594. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14595. msm_routing_put_voice_mixer),
  14596. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  14597. MSM_BACKEND_DAI_MI2S_TX,
  14598. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14599. msm_routing_put_voice_mixer),
  14600. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  14601. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14602. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14603. msm_routing_put_voice_mixer),
  14604. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  14605. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14606. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14607. msm_routing_put_voice_mixer),
  14608. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  14609. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14610. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14611. msm_routing_put_voice_mixer),
  14612. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  14613. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14614. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14615. msm_routing_put_voice_mixer),
  14616. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  14617. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14618. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14619. msm_routing_put_voice_mixer),
  14620. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  14621. MSM_BACKEND_DAI_USB_TX,
  14622. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14623. msm_routing_put_voice_mixer),
  14624. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  14625. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  14626. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14627. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  14628. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  14629. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14630. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  14631. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  14632. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14633. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  14635. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14636. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  14637. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  14638. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14639. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  14640. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  14641. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14642. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  14643. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  14644. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14645. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  14646. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  14647. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14648. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  14650. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14651. };
  14652. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  14653. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14655. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14656. msm_routing_put_port_mixer),
  14657. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14658. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14659. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14660. msm_routing_put_port_mixer),
  14661. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14662. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14663. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14664. msm_routing_put_port_mixer),
  14665. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14667. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14668. msm_routing_put_port_mixer),
  14669. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14671. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14672. msm_routing_put_port_mixer),
  14673. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14675. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14676. msm_routing_put_port_mixer),
  14677. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14678. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14679. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14680. msm_routing_put_port_mixer),
  14681. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14682. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14683. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14684. msm_routing_put_port_mixer),
  14685. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14686. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14687. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14688. msm_routing_put_port_mixer),
  14689. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14690. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14691. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  14692. msm_routing_put_port_mixer),
  14693. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14695. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14696. msm_routing_put_port_mixer),
  14697. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14698. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14699. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14700. msm_routing_put_port_mixer),
  14701. };
  14702. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  14703. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14704. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14705. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14706. msm_routing_put_port_mixer),
  14707. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14708. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14709. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14710. msm_routing_put_port_mixer),
  14711. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14712. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14713. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14714. msm_routing_put_port_mixer),
  14715. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14716. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14717. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14718. msm_routing_put_port_mixer),
  14719. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14720. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14721. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14722. msm_routing_put_port_mixer),
  14723. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14725. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14726. msm_routing_put_port_mixer),
  14727. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14728. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14729. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14730. msm_routing_put_port_mixer),
  14731. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14732. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14733. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14734. msm_routing_put_port_mixer),
  14735. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14737. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14738. msm_routing_put_port_mixer),
  14739. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14740. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14741. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  14742. msm_routing_put_port_mixer),
  14743. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14744. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14745. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14746. msm_routing_put_port_mixer),
  14747. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14748. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14749. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14750. msm_routing_put_port_mixer),
  14751. };
  14752. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  14753. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14754. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14755. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  14756. msm_routing_put_port_mixer),
  14757. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14758. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14759. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  14760. msm_routing_put_port_mixer),
  14761. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14763. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14764. msm_routing_put_port_mixer),
  14765. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14767. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14768. msm_routing_put_port_mixer),
  14769. };
  14770. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  14771. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14773. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  14774. msm_routing_put_port_mixer),
  14775. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14777. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14778. msm_routing_put_port_mixer),
  14779. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14780. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14781. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14782. msm_routing_put_port_mixer),
  14783. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14785. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14786. msm_routing_put_port_mixer),
  14787. };
  14788. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  14789. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14790. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14791. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14792. msm_routing_put_port_mixer),
  14793. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14794. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14795. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14796. msm_routing_put_port_mixer),
  14797. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14798. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14799. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  14800. msm_routing_put_port_mixer),
  14801. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14802. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14803. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  14804. msm_routing_put_port_mixer),
  14805. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14807. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14808. msm_routing_put_port_mixer),
  14809. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14811. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14812. msm_routing_put_port_mixer),
  14813. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14814. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14815. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14816. msm_routing_put_port_mixer),
  14817. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14819. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14820. msm_routing_put_port_mixer),
  14821. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14822. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14823. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14824. msm_routing_put_port_mixer),
  14825. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14826. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14827. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14828. msm_routing_put_port_mixer),
  14829. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14830. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14831. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14832. msm_routing_put_port_mixer),
  14833. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14834. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14835. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14836. msm_routing_put_port_mixer),
  14837. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14838. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14839. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14840. msm_routing_put_port_mixer),
  14841. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14842. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14843. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14844. msm_routing_put_port_mixer),
  14845. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14846. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14847. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14848. msm_routing_put_port_mixer),
  14849. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14850. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14851. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14852. msm_routing_put_port_mixer),
  14853. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14855. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14856. msm_routing_put_port_mixer),
  14857. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14859. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14860. msm_routing_put_port_mixer),
  14861. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14862. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14863. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14864. msm_routing_put_port_mixer),
  14865. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14867. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14868. msm_routing_put_port_mixer),
  14869. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14871. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14872. msm_routing_put_port_mixer),
  14873. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14875. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14876. msm_routing_put_port_mixer),
  14877. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14879. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14880. msm_routing_put_port_mixer),
  14881. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  14882. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14883. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14884. msm_routing_put_port_mixer),
  14885. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  14886. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14887. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14888. msm_routing_put_port_mixer),
  14889. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14890. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14891. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14892. msm_routing_put_port_mixer),
  14893. };
  14894. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  14895. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14896. MSM_BACKEND_DAI_AUXPCM_RX,
  14897. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14898. msm_routing_put_port_mixer),
  14899. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14900. MSM_BACKEND_DAI_AUXPCM_RX,
  14901. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14902. msm_routing_put_port_mixer),
  14903. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14904. MSM_BACKEND_DAI_AUXPCM_RX,
  14905. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  14906. msm_routing_put_port_mixer),
  14907. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14908. MSM_BACKEND_DAI_AUXPCM_RX,
  14909. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14910. msm_routing_put_port_mixer),
  14911. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14912. MSM_BACKEND_DAI_AUXPCM_RX,
  14913. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  14914. msm_routing_put_port_mixer),
  14915. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14916. MSM_BACKEND_DAI_AUXPCM_RX,
  14917. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14918. msm_routing_put_port_mixer),
  14919. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14920. MSM_BACKEND_DAI_AUXPCM_RX,
  14921. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  14922. msm_routing_put_port_mixer),
  14923. };
  14924. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  14925. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14926. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14927. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14928. msm_routing_put_port_mixer),
  14929. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14931. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14932. msm_routing_put_port_mixer),
  14933. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14934. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14935. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14936. msm_routing_put_port_mixer),
  14937. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14938. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  14939. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14940. msm_routing_put_port_mixer),
  14941. };
  14942. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  14943. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14945. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14946. msm_routing_put_port_mixer),
  14947. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14949. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14950. msm_routing_put_port_mixer),
  14951. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  14953. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14954. msm_routing_put_port_mixer),
  14955. };
  14956. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  14957. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14958. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14959. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14960. msm_routing_put_port_mixer),
  14961. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14962. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14963. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14964. msm_routing_put_port_mixer),
  14965. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14966. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  14967. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14968. msm_routing_put_port_mixer),
  14969. };
  14970. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  14971. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14972. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14973. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14974. msm_routing_put_port_mixer),
  14975. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14976. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14977. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14978. msm_routing_put_port_mixer),
  14979. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  14981. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14982. msm_routing_put_port_mixer),
  14983. };
  14984. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  14985. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14986. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14987. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14988. msm_routing_put_port_mixer),
  14989. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14990. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14991. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14992. msm_routing_put_port_mixer),
  14993. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14994. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  14995. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14996. msm_routing_put_port_mixer),
  14997. };
  14998. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  14999. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15001. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15002. msm_routing_put_port_mixer),
  15003. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15005. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  15006. msm_routing_put_port_mixer),
  15007. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15009. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15010. msm_routing_put_port_mixer),
  15011. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15012. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15013. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15014. msm_routing_put_port_mixer),
  15015. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15016. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15017. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15018. msm_routing_put_port_mixer),
  15019. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15020. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15021. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15022. msm_routing_put_port_mixer),
  15023. };
  15024. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  15025. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  15026. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15027. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  15028. msm_routing_put_port_mixer),
  15029. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15030. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15031. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15032. msm_routing_put_port_mixer),
  15033. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  15034. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15035. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  15036. msm_routing_put_port_mixer),
  15037. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  15038. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15039. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  15040. msm_routing_put_port_mixer),
  15041. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  15042. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15043. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  15044. msm_routing_put_port_mixer),
  15045. };
  15046. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  15047. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15048. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15049. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15050. msm_routing_put_port_mixer),
  15051. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15052. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15053. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15054. msm_routing_put_port_mixer),
  15055. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15056. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15057. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15058. msm_routing_put_port_mixer),
  15059. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15060. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15061. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  15062. msm_routing_put_port_mixer),
  15063. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15064. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15065. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15066. msm_routing_put_port_mixer),
  15067. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15068. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15069. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15070. msm_routing_put_port_mixer),
  15071. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15073. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15074. msm_routing_put_port_mixer),
  15075. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15076. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15077. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15078. msm_routing_put_port_mixer),
  15079. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15080. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15081. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15082. msm_routing_put_port_mixer),
  15083. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15085. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15086. msm_routing_put_port_mixer),
  15087. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15089. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15090. msm_routing_put_port_mixer),
  15091. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15092. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15093. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15094. msm_routing_put_port_mixer),
  15095. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15096. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15097. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  15098. msm_routing_put_port_mixer),
  15099. };
  15100. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  15101. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15103. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15104. msm_routing_put_port_mixer),
  15105. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15106. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15107. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15108. msm_routing_put_port_mixer),
  15109. };
  15110. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  15111. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15112. MSM_BACKEND_DAI_AFE_PCM_RX,
  15113. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15114. msm_routing_put_port_mixer),
  15115. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15116. MSM_BACKEND_DAI_AFE_PCM_RX,
  15117. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15118. msm_routing_put_port_mixer),
  15119. };
  15120. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  15121. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_HDMI_RX,
  15123. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15124. msm_routing_put_port_mixer),
  15125. };
  15126. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  15127. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15129. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15130. msm_routing_put_port_mixer),
  15131. };
  15132. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  15133. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15134. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15135. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15136. msm_routing_put_port_mixer),
  15137. };
  15138. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  15139. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15140. MSM_BACKEND_DAI_SEC_I2S_RX,
  15141. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15142. msm_routing_put_port_mixer),
  15143. };
  15144. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  15145. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15146. MSM_BACKEND_DAI_MI2S_RX,
  15147. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15148. msm_routing_put_port_mixer),
  15149. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15150. MSM_BACKEND_DAI_MI2S_RX,
  15151. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15152. msm_routing_put_port_mixer),
  15153. };
  15154. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  15155. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15156. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15157. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15158. msm_routing_put_port_mixer),
  15159. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15160. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15161. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15162. msm_routing_put_port_mixer),
  15163. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15165. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15166. msm_routing_put_port_mixer),
  15167. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15168. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15169. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15170. msm_routing_put_port_mixer),
  15171. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15172. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15173. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15174. msm_routing_put_port_mixer),
  15175. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15176. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15177. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15178. msm_routing_put_port_mixer),
  15179. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15180. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15181. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15182. msm_routing_put_port_mixer),
  15183. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15184. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15185. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15186. msm_routing_put_port_mixer),
  15187. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15188. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15189. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15190. msm_routing_put_port_mixer),
  15191. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15192. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15193. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15194. msm_routing_put_port_mixer),
  15195. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15196. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15197. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15198. msm_routing_put_port_mixer),
  15199. };
  15200. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  15201. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  15202. MSM_BACKEND_DAI_USB_RX,
  15203. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  15204. msm_routing_put_port_mixer),
  15205. };
  15206. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  15207. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15208. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15209. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15210. msm_routing_put_port_mixer),
  15211. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15213. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15214. msm_routing_put_port_mixer),
  15215. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15216. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15217. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15218. msm_routing_put_port_mixer),
  15219. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15220. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15221. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15222. msm_routing_put_port_mixer),
  15223. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15224. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15225. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15226. msm_routing_put_port_mixer),
  15227. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15228. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15229. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15230. msm_routing_put_port_mixer),
  15231. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15232. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15233. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15234. msm_routing_put_port_mixer),
  15235. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15236. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15237. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15238. msm_routing_put_port_mixer),
  15239. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15240. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15241. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15242. msm_routing_put_port_mixer),
  15243. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15244. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15245. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15246. msm_routing_put_port_mixer),
  15247. };
  15248. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  15249. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15250. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15251. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15252. msm_routing_put_port_mixer),
  15253. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15254. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15255. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15256. msm_routing_put_port_mixer),
  15257. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15258. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15259. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15260. msm_routing_put_port_mixer),
  15261. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15262. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15263. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15264. msm_routing_put_port_mixer),
  15265. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15267. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15268. msm_routing_put_port_mixer),
  15269. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15270. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15271. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15272. msm_routing_put_port_mixer),
  15273. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15274. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15275. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15276. msm_routing_put_port_mixer),
  15277. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15278. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15279. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15280. msm_routing_put_port_mixer),
  15281. };
  15282. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  15283. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15284. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15285. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15286. msm_routing_put_port_mixer),
  15287. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15288. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15289. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15290. msm_routing_put_port_mixer),
  15291. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15292. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15293. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15294. msm_routing_put_port_mixer),
  15295. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15296. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15297. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15298. msm_routing_put_port_mixer),
  15299. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15300. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15301. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15302. msm_routing_put_port_mixer),
  15303. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15304. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15305. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15306. msm_routing_put_port_mixer),
  15307. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15308. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15309. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15310. msm_routing_put_port_mixer),
  15311. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15313. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15314. msm_routing_put_port_mixer),
  15315. };
  15316. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  15317. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15319. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15320. msm_routing_get_port_mixer,
  15321. msm_routing_put_port_mixer),
  15322. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15323. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15324. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15325. msm_routing_get_port_mixer,
  15326. msm_routing_put_port_mixer),
  15327. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15328. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15329. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15330. msm_routing_get_port_mixer,
  15331. msm_routing_put_port_mixer),
  15332. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15334. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15335. msm_routing_get_port_mixer,
  15336. msm_routing_put_port_mixer),
  15337. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15338. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15339. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15340. msm_routing_get_port_mixer,
  15341. msm_routing_put_port_mixer),
  15342. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15343. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15344. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15345. msm_routing_get_port_mixer,
  15346. msm_routing_put_port_mixer),
  15347. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15348. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15349. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15350. msm_routing_get_port_mixer,
  15351. msm_routing_put_port_mixer),
  15352. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15353. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15354. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15355. msm_routing_get_port_mixer,
  15356. msm_routing_put_port_mixer),
  15357. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15358. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15359. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15360. msm_routing_get_port_mixer,
  15361. msm_routing_put_port_mixer),
  15362. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15363. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15364. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15365. msm_routing_get_port_mixer,
  15366. msm_routing_put_port_mixer),
  15367. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15368. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15369. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15370. msm_routing_get_port_mixer,
  15371. msm_routing_put_port_mixer),
  15372. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15374. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15375. msm_routing_get_port_mixer,
  15376. msm_routing_put_port_mixer),
  15377. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15378. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15379. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15380. msm_routing_get_port_mixer,
  15381. msm_routing_put_port_mixer),
  15382. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15383. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15384. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15385. msm_routing_get_port_mixer,
  15386. msm_routing_put_port_mixer),
  15387. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15388. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15389. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15390. msm_routing_get_port_mixer,
  15391. msm_routing_put_port_mixer),
  15392. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15393. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15394. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15395. msm_routing_get_port_mixer,
  15396. msm_routing_put_port_mixer),
  15397. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15398. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15399. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15400. msm_routing_get_port_mixer,
  15401. msm_routing_put_port_mixer),
  15402. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15404. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15405. msm_routing_get_port_mixer,
  15406. msm_routing_put_port_mixer),
  15407. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15408. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15409. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15410. msm_routing_get_port_mixer,
  15411. msm_routing_put_port_mixer),
  15412. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15413. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15414. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15415. msm_routing_get_port_mixer,
  15416. msm_routing_put_port_mixer),
  15417. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15418. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15419. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15420. msm_routing_get_port_mixer,
  15421. msm_routing_put_port_mixer),
  15422. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15423. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15424. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15425. msm_routing_get_port_mixer,
  15426. msm_routing_put_port_mixer),
  15427. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15428. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15429. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15430. msm_routing_get_port_mixer,
  15431. msm_routing_put_port_mixer),
  15432. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15434. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15435. msm_routing_get_port_mixer,
  15436. msm_routing_put_port_mixer),
  15437. };
  15438. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  15439. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15440. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15441. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15442. msm_routing_get_port_mixer,
  15443. msm_routing_put_port_mixer),
  15444. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15446. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15447. msm_routing_get_port_mixer,
  15448. msm_routing_put_port_mixer),
  15449. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15450. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15451. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15452. msm_routing_get_port_mixer,
  15453. msm_routing_put_port_mixer),
  15454. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15455. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15456. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15457. msm_routing_get_port_mixer,
  15458. msm_routing_put_port_mixer),
  15459. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15460. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15461. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15462. msm_routing_get_port_mixer,
  15463. msm_routing_put_port_mixer),
  15464. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15466. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15467. msm_routing_get_port_mixer,
  15468. msm_routing_put_port_mixer),
  15469. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15470. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15471. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15472. msm_routing_get_port_mixer,
  15473. msm_routing_put_port_mixer),
  15474. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15475. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15476. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15477. msm_routing_get_port_mixer,
  15478. msm_routing_put_port_mixer),
  15479. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15480. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15481. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15482. msm_routing_get_port_mixer,
  15483. msm_routing_put_port_mixer),
  15484. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15486. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15487. msm_routing_get_port_mixer,
  15488. msm_routing_put_port_mixer),
  15489. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15490. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15491. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15492. msm_routing_get_port_mixer,
  15493. msm_routing_put_port_mixer),
  15494. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15496. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15497. msm_routing_get_port_mixer,
  15498. msm_routing_put_port_mixer),
  15499. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15500. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15501. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15502. msm_routing_get_port_mixer,
  15503. msm_routing_put_port_mixer),
  15504. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15505. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15506. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15507. msm_routing_get_port_mixer,
  15508. msm_routing_put_port_mixer),
  15509. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15510. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15511. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15512. msm_routing_get_port_mixer,
  15513. msm_routing_put_port_mixer),
  15514. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15515. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15516. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15517. msm_routing_get_port_mixer,
  15518. msm_routing_put_port_mixer),
  15519. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15520. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15521. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15522. msm_routing_get_port_mixer,
  15523. msm_routing_put_port_mixer),
  15524. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15525. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15526. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15527. msm_routing_get_port_mixer,
  15528. msm_routing_put_port_mixer),
  15529. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15530. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15531. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15532. msm_routing_get_port_mixer,
  15533. msm_routing_put_port_mixer),
  15534. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15535. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15536. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15537. msm_routing_get_port_mixer,
  15538. msm_routing_put_port_mixer),
  15539. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15540. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15541. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15542. msm_routing_get_port_mixer,
  15543. msm_routing_put_port_mixer),
  15544. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15545. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15546. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15547. msm_routing_get_port_mixer,
  15548. msm_routing_put_port_mixer),
  15549. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15550. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15551. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15552. msm_routing_get_port_mixer,
  15553. msm_routing_put_port_mixer),
  15554. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15555. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15556. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15557. msm_routing_get_port_mixer,
  15558. msm_routing_put_port_mixer),
  15559. };
  15560. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  15561. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15562. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15563. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15564. msm_routing_get_port_mixer,
  15565. msm_routing_put_port_mixer),
  15566. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15568. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15569. msm_routing_get_port_mixer,
  15570. msm_routing_put_port_mixer),
  15571. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15572. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15573. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15574. msm_routing_get_port_mixer,
  15575. msm_routing_put_port_mixer),
  15576. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15577. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15578. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15579. msm_routing_get_port_mixer,
  15580. msm_routing_put_port_mixer),
  15581. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15582. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15583. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15584. msm_routing_get_port_mixer,
  15585. msm_routing_put_port_mixer),
  15586. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15587. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15588. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15589. msm_routing_get_port_mixer,
  15590. msm_routing_put_port_mixer),
  15591. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15592. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15593. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15594. msm_routing_get_port_mixer,
  15595. msm_routing_put_port_mixer),
  15596. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15598. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15599. msm_routing_get_port_mixer,
  15600. msm_routing_put_port_mixer),
  15601. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15602. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15603. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15604. msm_routing_get_port_mixer,
  15605. msm_routing_put_port_mixer),
  15606. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15608. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15609. msm_routing_get_port_mixer,
  15610. msm_routing_put_port_mixer),
  15611. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15612. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15613. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15614. msm_routing_get_port_mixer,
  15615. msm_routing_put_port_mixer),
  15616. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15617. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15618. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15619. msm_routing_get_port_mixer,
  15620. msm_routing_put_port_mixer),
  15621. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15622. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15623. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15624. msm_routing_get_port_mixer,
  15625. msm_routing_put_port_mixer),
  15626. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15627. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15628. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15629. msm_routing_get_port_mixer,
  15630. msm_routing_put_port_mixer),
  15631. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15632. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15633. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15634. msm_routing_get_port_mixer,
  15635. msm_routing_put_port_mixer),
  15636. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15637. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15638. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15639. msm_routing_get_port_mixer,
  15640. msm_routing_put_port_mixer),
  15641. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15642. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15643. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15644. msm_routing_get_port_mixer,
  15645. msm_routing_put_port_mixer),
  15646. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15647. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15648. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15649. msm_routing_get_port_mixer,
  15650. msm_routing_put_port_mixer),
  15651. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15652. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15653. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15654. msm_routing_get_port_mixer,
  15655. msm_routing_put_port_mixer),
  15656. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15657. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15658. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15659. msm_routing_get_port_mixer,
  15660. msm_routing_put_port_mixer),
  15661. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15662. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15663. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15664. msm_routing_get_port_mixer,
  15665. msm_routing_put_port_mixer),
  15666. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15667. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15668. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15669. msm_routing_get_port_mixer,
  15670. msm_routing_put_port_mixer),
  15671. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15673. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15674. msm_routing_get_port_mixer,
  15675. msm_routing_put_port_mixer),
  15676. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15677. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15678. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15679. msm_routing_get_port_mixer,
  15680. msm_routing_put_port_mixer),
  15681. };
  15682. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  15683. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15685. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15686. msm_routing_get_port_mixer,
  15687. msm_routing_put_port_mixer),
  15688. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15689. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15690. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15691. msm_routing_get_port_mixer,
  15692. msm_routing_put_port_mixer),
  15693. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15694. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15695. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15696. msm_routing_get_port_mixer,
  15697. msm_routing_put_port_mixer),
  15698. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15700. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15701. msm_routing_get_port_mixer,
  15702. msm_routing_put_port_mixer),
  15703. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15704. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15705. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15706. msm_routing_get_port_mixer,
  15707. msm_routing_put_port_mixer),
  15708. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15709. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15710. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15711. msm_routing_get_port_mixer,
  15712. msm_routing_put_port_mixer),
  15713. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15714. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15715. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15716. msm_routing_get_port_mixer,
  15717. msm_routing_put_port_mixer),
  15718. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15719. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15720. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15721. msm_routing_get_port_mixer,
  15722. msm_routing_put_port_mixer),
  15723. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15724. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15725. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15726. msm_routing_get_port_mixer,
  15727. msm_routing_put_port_mixer),
  15728. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15729. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15730. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15731. msm_routing_get_port_mixer,
  15732. msm_routing_put_port_mixer),
  15733. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15734. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15735. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15736. msm_routing_get_port_mixer,
  15737. msm_routing_put_port_mixer),
  15738. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15739. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15740. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15741. msm_routing_get_port_mixer,
  15742. msm_routing_put_port_mixer),
  15743. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15744. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15745. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15746. msm_routing_get_port_mixer,
  15747. msm_routing_put_port_mixer),
  15748. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15749. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15750. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15751. msm_routing_get_port_mixer,
  15752. msm_routing_put_port_mixer),
  15753. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15754. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15755. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15756. msm_routing_get_port_mixer,
  15757. msm_routing_put_port_mixer),
  15758. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15759. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15760. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15761. msm_routing_get_port_mixer,
  15762. msm_routing_put_port_mixer),
  15763. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15764. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15765. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15766. msm_routing_get_port_mixer,
  15767. msm_routing_put_port_mixer),
  15768. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15769. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15770. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15771. msm_routing_get_port_mixer,
  15772. msm_routing_put_port_mixer),
  15773. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15774. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15775. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15776. msm_routing_get_port_mixer,
  15777. msm_routing_put_port_mixer),
  15778. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15779. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15780. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15781. msm_routing_get_port_mixer,
  15782. msm_routing_put_port_mixer),
  15783. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15784. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15785. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15786. msm_routing_get_port_mixer,
  15787. msm_routing_put_port_mixer),
  15788. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15789. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15790. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15791. msm_routing_get_port_mixer,
  15792. msm_routing_put_port_mixer),
  15793. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15794. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15795. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15796. msm_routing_get_port_mixer,
  15797. msm_routing_put_port_mixer),
  15798. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15799. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15800. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15801. msm_routing_get_port_mixer,
  15802. msm_routing_put_port_mixer),
  15803. };
  15804. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  15805. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15806. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15807. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15808. msm_routing_get_port_mixer,
  15809. msm_routing_put_port_mixer),
  15810. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15811. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15812. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15813. msm_routing_get_port_mixer,
  15814. msm_routing_put_port_mixer),
  15815. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15816. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15817. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15818. msm_routing_get_port_mixer,
  15819. msm_routing_put_port_mixer),
  15820. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15821. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15822. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15823. msm_routing_get_port_mixer,
  15824. msm_routing_put_port_mixer),
  15825. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15826. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15827. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15828. msm_routing_get_port_mixer,
  15829. msm_routing_put_port_mixer),
  15830. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15831. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15832. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15833. msm_routing_get_port_mixer,
  15834. msm_routing_put_port_mixer),
  15835. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15836. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15837. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15838. msm_routing_get_port_mixer,
  15839. msm_routing_put_port_mixer),
  15840. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15841. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15842. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15843. msm_routing_get_port_mixer,
  15844. msm_routing_put_port_mixer),
  15845. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15846. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15847. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  15848. msm_routing_get_port_mixer,
  15849. msm_routing_put_port_mixer),
  15850. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15851. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15852. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  15853. msm_routing_get_port_mixer,
  15854. msm_routing_put_port_mixer),
  15855. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15856. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15857. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  15858. msm_routing_get_port_mixer,
  15859. msm_routing_put_port_mixer),
  15860. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15861. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15862. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  15863. msm_routing_get_port_mixer,
  15864. msm_routing_put_port_mixer),
  15865. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15866. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15867. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15868. msm_routing_get_port_mixer,
  15869. msm_routing_put_port_mixer),
  15870. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15871. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15872. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15873. msm_routing_get_port_mixer,
  15874. msm_routing_put_port_mixer),
  15875. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15876. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15877. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15878. msm_routing_get_port_mixer,
  15879. msm_routing_put_port_mixer),
  15880. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15881. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15882. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15883. msm_routing_get_port_mixer,
  15884. msm_routing_put_port_mixer),
  15885. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15886. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15887. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15888. msm_routing_get_port_mixer,
  15889. msm_routing_put_port_mixer),
  15890. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15892. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15893. msm_routing_get_port_mixer,
  15894. msm_routing_put_port_mixer),
  15895. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15896. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15897. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15898. msm_routing_get_port_mixer,
  15899. msm_routing_put_port_mixer),
  15900. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15901. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15902. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15903. msm_routing_get_port_mixer,
  15904. msm_routing_put_port_mixer),
  15905. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15906. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15907. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15908. msm_routing_get_port_mixer,
  15909. msm_routing_put_port_mixer),
  15910. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15911. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15912. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15913. msm_routing_get_port_mixer,
  15914. msm_routing_put_port_mixer),
  15915. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15916. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15917. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15918. msm_routing_get_port_mixer,
  15919. msm_routing_put_port_mixer),
  15920. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15921. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15922. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15923. msm_routing_get_port_mixer,
  15924. msm_routing_put_port_mixer),
  15925. };
  15926. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  15927. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15928. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15929. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15930. msm_routing_get_port_mixer,
  15931. msm_routing_put_port_mixer),
  15932. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15933. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15934. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15935. msm_routing_get_port_mixer,
  15936. msm_routing_put_port_mixer),
  15937. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15938. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15939. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15940. msm_routing_get_port_mixer,
  15941. msm_routing_put_port_mixer),
  15942. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15943. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15944. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15945. msm_routing_get_port_mixer,
  15946. msm_routing_put_port_mixer),
  15947. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15948. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15949. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15950. msm_routing_get_port_mixer,
  15951. msm_routing_put_port_mixer),
  15952. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15953. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15954. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15955. msm_routing_get_port_mixer,
  15956. msm_routing_put_port_mixer),
  15957. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15958. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15959. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15960. msm_routing_get_port_mixer,
  15961. msm_routing_put_port_mixer),
  15962. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15963. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15964. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15965. msm_routing_get_port_mixer,
  15966. msm_routing_put_port_mixer),
  15967. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15968. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15969. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  15970. msm_routing_get_port_mixer,
  15971. msm_routing_put_port_mixer),
  15972. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15973. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15974. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  15975. msm_routing_get_port_mixer,
  15976. msm_routing_put_port_mixer),
  15977. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15978. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15979. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  15980. msm_routing_get_port_mixer,
  15981. msm_routing_put_port_mixer),
  15982. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15983. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15984. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  15985. msm_routing_get_port_mixer,
  15986. msm_routing_put_port_mixer),
  15987. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15988. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15989. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15990. msm_routing_get_port_mixer,
  15991. msm_routing_put_port_mixer),
  15992. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15993. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15994. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15995. msm_routing_get_port_mixer,
  15996. msm_routing_put_port_mixer),
  15997. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15998. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  15999. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16000. msm_routing_get_port_mixer,
  16001. msm_routing_put_port_mixer),
  16002. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16003. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16004. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16005. msm_routing_get_port_mixer,
  16006. msm_routing_put_port_mixer),
  16007. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16008. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16009. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16010. msm_routing_get_port_mixer,
  16011. msm_routing_put_port_mixer),
  16012. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16013. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16014. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16015. msm_routing_get_port_mixer,
  16016. msm_routing_put_port_mixer),
  16017. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16018. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16019. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16020. msm_routing_get_port_mixer,
  16021. msm_routing_put_port_mixer),
  16022. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16024. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16025. msm_routing_get_port_mixer,
  16026. msm_routing_put_port_mixer),
  16027. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16028. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16029. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16030. msm_routing_get_port_mixer,
  16031. msm_routing_put_port_mixer),
  16032. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16034. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16035. msm_routing_get_port_mixer,
  16036. msm_routing_put_port_mixer),
  16037. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16038. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16039. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16040. msm_routing_get_port_mixer,
  16041. msm_routing_put_port_mixer),
  16042. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16043. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16044. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16045. msm_routing_get_port_mixer,
  16046. msm_routing_put_port_mixer),
  16047. };
  16048. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  16049. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16050. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16051. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16052. msm_routing_get_port_mixer,
  16053. msm_routing_put_port_mixer),
  16054. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16055. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16056. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16057. msm_routing_get_port_mixer,
  16058. msm_routing_put_port_mixer),
  16059. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16060. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16061. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16062. msm_routing_get_port_mixer,
  16063. msm_routing_put_port_mixer),
  16064. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16065. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16066. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16067. msm_routing_get_port_mixer,
  16068. msm_routing_put_port_mixer),
  16069. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16070. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16071. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16072. msm_routing_get_port_mixer,
  16073. msm_routing_put_port_mixer),
  16074. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16075. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16076. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16077. msm_routing_get_port_mixer,
  16078. msm_routing_put_port_mixer),
  16079. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16080. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16081. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16082. msm_routing_get_port_mixer,
  16083. msm_routing_put_port_mixer),
  16084. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16085. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16086. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16087. msm_routing_get_port_mixer,
  16088. msm_routing_put_port_mixer),
  16089. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16090. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16091. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  16092. msm_routing_get_port_mixer,
  16093. msm_routing_put_port_mixer),
  16094. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16095. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16096. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  16097. msm_routing_get_port_mixer,
  16098. msm_routing_put_port_mixer),
  16099. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16100. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16101. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  16102. msm_routing_get_port_mixer,
  16103. msm_routing_put_port_mixer),
  16104. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16105. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16106. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  16107. msm_routing_get_port_mixer,
  16108. msm_routing_put_port_mixer),
  16109. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16110. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16111. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16112. msm_routing_get_port_mixer,
  16113. msm_routing_put_port_mixer),
  16114. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16115. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16116. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16117. msm_routing_get_port_mixer,
  16118. msm_routing_put_port_mixer),
  16119. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16120. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16121. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16122. msm_routing_get_port_mixer,
  16123. msm_routing_put_port_mixer),
  16124. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16125. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16126. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16127. msm_routing_get_port_mixer,
  16128. msm_routing_put_port_mixer),
  16129. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16130. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16131. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16132. msm_routing_get_port_mixer,
  16133. msm_routing_put_port_mixer),
  16134. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16135. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16136. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16137. msm_routing_get_port_mixer,
  16138. msm_routing_put_port_mixer),
  16139. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16140. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16141. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16142. msm_routing_get_port_mixer,
  16143. msm_routing_put_port_mixer),
  16144. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16145. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16146. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16147. msm_routing_get_port_mixer,
  16148. msm_routing_put_port_mixer),
  16149. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16150. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16151. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16152. msm_routing_get_port_mixer,
  16153. msm_routing_put_port_mixer),
  16154. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16156. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16157. msm_routing_get_port_mixer,
  16158. msm_routing_put_port_mixer),
  16159. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16160. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16161. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16162. msm_routing_get_port_mixer,
  16163. msm_routing_put_port_mixer),
  16164. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16165. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16166. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16167. msm_routing_get_port_mixer,
  16168. msm_routing_put_port_mixer),
  16169. };
  16170. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  16171. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16172. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16173. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16174. msm_routing_get_port_mixer,
  16175. msm_routing_put_port_mixer),
  16176. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16177. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16178. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16179. msm_routing_get_port_mixer,
  16180. msm_routing_put_port_mixer),
  16181. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16182. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16183. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16184. msm_routing_get_port_mixer,
  16185. msm_routing_put_port_mixer),
  16186. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16187. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16188. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16189. msm_routing_get_port_mixer,
  16190. msm_routing_put_port_mixer),
  16191. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16192. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16193. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16194. msm_routing_get_port_mixer,
  16195. msm_routing_put_port_mixer),
  16196. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16197. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16198. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16199. msm_routing_get_port_mixer,
  16200. msm_routing_put_port_mixer),
  16201. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16202. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16203. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16204. msm_routing_get_port_mixer,
  16205. msm_routing_put_port_mixer),
  16206. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16207. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16208. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16209. msm_routing_get_port_mixer,
  16210. msm_routing_put_port_mixer),
  16211. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16212. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16213. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  16214. msm_routing_get_port_mixer,
  16215. msm_routing_put_port_mixer),
  16216. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16217. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16218. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  16219. msm_routing_get_port_mixer,
  16220. msm_routing_put_port_mixer),
  16221. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16222. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16223. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  16224. msm_routing_get_port_mixer,
  16225. msm_routing_put_port_mixer),
  16226. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16227. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16228. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  16229. msm_routing_get_port_mixer,
  16230. msm_routing_put_port_mixer),
  16231. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16232. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16233. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16234. msm_routing_get_port_mixer,
  16235. msm_routing_put_port_mixer),
  16236. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16237. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16238. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16239. msm_routing_get_port_mixer,
  16240. msm_routing_put_port_mixer),
  16241. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16242. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16243. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16244. msm_routing_get_port_mixer,
  16245. msm_routing_put_port_mixer),
  16246. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16247. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16248. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16249. msm_routing_get_port_mixer,
  16250. msm_routing_put_port_mixer),
  16251. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16252. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16253. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16254. msm_routing_get_port_mixer,
  16255. msm_routing_put_port_mixer),
  16256. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16258. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16259. msm_routing_get_port_mixer,
  16260. msm_routing_put_port_mixer),
  16261. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16262. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16263. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16264. msm_routing_get_port_mixer,
  16265. msm_routing_put_port_mixer),
  16266. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16267. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16268. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16269. msm_routing_get_port_mixer,
  16270. msm_routing_put_port_mixer),
  16271. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16272. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16273. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16274. msm_routing_get_port_mixer,
  16275. msm_routing_put_port_mixer),
  16276. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16277. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16278. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16279. msm_routing_get_port_mixer,
  16280. msm_routing_put_port_mixer),
  16281. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16282. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16283. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16284. msm_routing_get_port_mixer,
  16285. msm_routing_put_port_mixer),
  16286. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16287. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16288. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16289. msm_routing_get_port_mixer,
  16290. msm_routing_put_port_mixer),
  16291. };
  16292. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  16293. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  16294. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  16295. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  16296. msm_routing_get_port_mixer,
  16297. msm_routing_put_port_mixer),
  16298. };
  16299. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  16300. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16301. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16302. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16303. msm_routing_get_port_mixer,
  16304. msm_routing_put_port_mixer),
  16305. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16306. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16307. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16308. msm_routing_get_port_mixer,
  16309. msm_routing_put_port_mixer),
  16310. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16311. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16312. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16313. msm_routing_get_port_mixer,
  16314. msm_routing_put_port_mixer),
  16315. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16316. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16317. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16318. msm_routing_get_port_mixer,
  16319. msm_routing_put_port_mixer),
  16320. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16321. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16322. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16323. msm_routing_get_port_mixer,
  16324. msm_routing_put_port_mixer),
  16325. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16326. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16327. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16328. msm_routing_get_port_mixer,
  16329. msm_routing_put_port_mixer),
  16330. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16331. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16332. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16333. msm_routing_get_port_mixer,
  16334. msm_routing_put_port_mixer),
  16335. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16336. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16337. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16338. msm_routing_get_port_mixer,
  16339. msm_routing_put_port_mixer),
  16340. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16341. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16342. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16343. msm_routing_get_port_mixer,
  16344. msm_routing_put_port_mixer),
  16345. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16346. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16347. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16348. msm_routing_get_port_mixer,
  16349. msm_routing_put_port_mixer),
  16350. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16351. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16352. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16353. msm_routing_get_port_mixer,
  16354. msm_routing_put_port_mixer),
  16355. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16356. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16357. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16358. msm_routing_get_port_mixer,
  16359. msm_routing_put_port_mixer),
  16360. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16361. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16362. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16363. msm_routing_get_port_mixer,
  16364. msm_routing_put_port_mixer),
  16365. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16366. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16367. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16368. msm_routing_get_port_mixer,
  16369. msm_routing_put_port_mixer),
  16370. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16371. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16372. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16373. msm_routing_get_port_mixer,
  16374. msm_routing_put_port_mixer),
  16375. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16376. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16377. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16378. msm_routing_get_port_mixer,
  16379. msm_routing_put_port_mixer),
  16380. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16381. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16382. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16383. msm_routing_get_port_mixer,
  16384. msm_routing_put_port_mixer),
  16385. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16386. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16387. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16388. msm_routing_get_port_mixer,
  16389. msm_routing_put_port_mixer),
  16390. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16391. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16392. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16393. msm_routing_get_port_mixer,
  16394. msm_routing_put_port_mixer),
  16395. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16396. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16397. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16398. msm_routing_get_port_mixer,
  16399. msm_routing_put_port_mixer),
  16400. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16401. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16402. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16403. msm_routing_get_port_mixer,
  16404. msm_routing_put_port_mixer),
  16405. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16406. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16407. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16408. msm_routing_get_port_mixer,
  16409. msm_routing_put_port_mixer),
  16410. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16411. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16412. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16413. msm_routing_get_port_mixer,
  16414. msm_routing_put_port_mixer),
  16415. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16416. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16417. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16418. msm_routing_get_port_mixer,
  16419. msm_routing_put_port_mixer),
  16420. };
  16421. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  16422. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16423. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16424. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16425. msm_routing_get_port_mixer,
  16426. msm_routing_put_port_mixer),
  16427. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16428. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16429. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16430. msm_routing_get_port_mixer,
  16431. msm_routing_put_port_mixer),
  16432. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16433. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16434. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16435. msm_routing_get_port_mixer,
  16436. msm_routing_put_port_mixer),
  16437. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16438. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16439. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16440. msm_routing_get_port_mixer,
  16441. msm_routing_put_port_mixer),
  16442. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16443. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16444. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16445. msm_routing_get_port_mixer,
  16446. msm_routing_put_port_mixer),
  16447. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16448. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16449. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16450. msm_routing_get_port_mixer,
  16451. msm_routing_put_port_mixer),
  16452. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16453. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16454. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16455. msm_routing_get_port_mixer,
  16456. msm_routing_put_port_mixer),
  16457. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16458. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16459. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16460. msm_routing_get_port_mixer,
  16461. msm_routing_put_port_mixer),
  16462. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16463. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16464. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16465. msm_routing_get_port_mixer,
  16466. msm_routing_put_port_mixer),
  16467. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16468. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16469. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16470. msm_routing_get_port_mixer,
  16471. msm_routing_put_port_mixer),
  16472. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16473. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16474. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16475. msm_routing_get_port_mixer,
  16476. msm_routing_put_port_mixer),
  16477. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16478. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16479. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16480. msm_routing_get_port_mixer,
  16481. msm_routing_put_port_mixer),
  16482. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16483. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16484. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16485. msm_routing_get_port_mixer,
  16486. msm_routing_put_port_mixer),
  16487. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16488. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16489. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16490. msm_routing_get_port_mixer,
  16491. msm_routing_put_port_mixer),
  16492. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16493. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16494. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16495. msm_routing_get_port_mixer,
  16496. msm_routing_put_port_mixer),
  16497. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16498. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16499. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16500. msm_routing_get_port_mixer,
  16501. msm_routing_put_port_mixer),
  16502. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16503. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16504. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16505. msm_routing_get_port_mixer,
  16506. msm_routing_put_port_mixer),
  16507. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16508. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16509. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16510. msm_routing_get_port_mixer,
  16511. msm_routing_put_port_mixer),
  16512. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16513. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16514. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16515. msm_routing_get_port_mixer,
  16516. msm_routing_put_port_mixer),
  16517. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16518. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16519. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16520. msm_routing_get_port_mixer,
  16521. msm_routing_put_port_mixer),
  16522. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16523. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16524. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16525. msm_routing_get_port_mixer,
  16526. msm_routing_put_port_mixer),
  16527. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16528. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16529. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16530. msm_routing_get_port_mixer,
  16531. msm_routing_put_port_mixer),
  16532. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16533. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16534. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16535. msm_routing_get_port_mixer,
  16536. msm_routing_put_port_mixer),
  16537. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16538. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16539. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16540. msm_routing_get_port_mixer,
  16541. msm_routing_put_port_mixer),
  16542. };
  16543. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  16544. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16545. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16546. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16547. msm_routing_get_port_mixer,
  16548. msm_routing_put_port_mixer),
  16549. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16550. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16551. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16552. msm_routing_get_port_mixer,
  16553. msm_routing_put_port_mixer),
  16554. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16555. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16556. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16557. msm_routing_get_port_mixer,
  16558. msm_routing_put_port_mixer),
  16559. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16560. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16561. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16562. msm_routing_get_port_mixer,
  16563. msm_routing_put_port_mixer),
  16564. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16565. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16566. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16567. msm_routing_get_port_mixer,
  16568. msm_routing_put_port_mixer),
  16569. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16570. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16571. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16572. msm_routing_get_port_mixer,
  16573. msm_routing_put_port_mixer),
  16574. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16575. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16576. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16577. msm_routing_get_port_mixer,
  16578. msm_routing_put_port_mixer),
  16579. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16580. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16581. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16582. msm_routing_get_port_mixer,
  16583. msm_routing_put_port_mixer),
  16584. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16585. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16586. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16587. msm_routing_get_port_mixer,
  16588. msm_routing_put_port_mixer),
  16589. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16590. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16591. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16592. msm_routing_get_port_mixer,
  16593. msm_routing_put_port_mixer),
  16594. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16595. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16596. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16597. msm_routing_get_port_mixer,
  16598. msm_routing_put_port_mixer),
  16599. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16600. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16601. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16602. msm_routing_get_port_mixer,
  16603. msm_routing_put_port_mixer),
  16604. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16605. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16606. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16607. msm_routing_get_port_mixer,
  16608. msm_routing_put_port_mixer),
  16609. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16610. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16611. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16612. msm_routing_get_port_mixer,
  16613. msm_routing_put_port_mixer),
  16614. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16615. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16616. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16617. msm_routing_get_port_mixer,
  16618. msm_routing_put_port_mixer),
  16619. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16620. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16621. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16622. msm_routing_get_port_mixer,
  16623. msm_routing_put_port_mixer),
  16624. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16625. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16626. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16627. msm_routing_get_port_mixer,
  16628. msm_routing_put_port_mixer),
  16629. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16630. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16631. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16632. msm_routing_get_port_mixer,
  16633. msm_routing_put_port_mixer),
  16634. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16635. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16636. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16637. msm_routing_get_port_mixer,
  16638. msm_routing_put_port_mixer),
  16639. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16640. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16641. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16642. msm_routing_get_port_mixer,
  16643. msm_routing_put_port_mixer),
  16644. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16645. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16646. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16647. msm_routing_get_port_mixer,
  16648. msm_routing_put_port_mixer),
  16649. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16650. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16651. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16652. msm_routing_get_port_mixer,
  16653. msm_routing_put_port_mixer),
  16654. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16655. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16656. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16657. msm_routing_get_port_mixer,
  16658. msm_routing_put_port_mixer),
  16659. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16660. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16661. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16662. msm_routing_get_port_mixer,
  16663. msm_routing_put_port_mixer),
  16664. };
  16665. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  16666. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16667. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16668. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16669. msm_routing_get_port_mixer,
  16670. msm_routing_put_port_mixer),
  16671. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16672. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16673. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16674. msm_routing_get_port_mixer,
  16675. msm_routing_put_port_mixer),
  16676. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16677. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16678. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16679. msm_routing_get_port_mixer,
  16680. msm_routing_put_port_mixer),
  16681. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16682. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16683. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16684. msm_routing_get_port_mixer,
  16685. msm_routing_put_port_mixer),
  16686. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16687. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16688. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16689. msm_routing_get_port_mixer,
  16690. msm_routing_put_port_mixer),
  16691. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16692. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16693. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16694. msm_routing_get_port_mixer,
  16695. msm_routing_put_port_mixer),
  16696. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16697. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16698. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16699. msm_routing_get_port_mixer,
  16700. msm_routing_put_port_mixer),
  16701. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16702. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16703. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16704. msm_routing_get_port_mixer,
  16705. msm_routing_put_port_mixer),
  16706. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16707. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16708. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16709. msm_routing_get_port_mixer,
  16710. msm_routing_put_port_mixer),
  16711. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16712. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16713. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16714. msm_routing_get_port_mixer,
  16715. msm_routing_put_port_mixer),
  16716. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16717. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16718. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16719. msm_routing_get_port_mixer,
  16720. msm_routing_put_port_mixer),
  16721. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16722. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16723. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16724. msm_routing_get_port_mixer,
  16725. msm_routing_put_port_mixer),
  16726. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16727. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16728. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16729. msm_routing_get_port_mixer,
  16730. msm_routing_put_port_mixer),
  16731. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16732. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16733. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16734. msm_routing_get_port_mixer,
  16735. msm_routing_put_port_mixer),
  16736. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16737. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16738. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16739. msm_routing_get_port_mixer,
  16740. msm_routing_put_port_mixer),
  16741. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16742. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16743. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16744. msm_routing_get_port_mixer,
  16745. msm_routing_put_port_mixer),
  16746. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16747. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16748. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16749. msm_routing_get_port_mixer,
  16750. msm_routing_put_port_mixer),
  16751. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16752. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16753. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16754. msm_routing_get_port_mixer,
  16755. msm_routing_put_port_mixer),
  16756. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16757. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16758. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16759. msm_routing_get_port_mixer,
  16760. msm_routing_put_port_mixer),
  16761. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16762. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16763. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16764. msm_routing_get_port_mixer,
  16765. msm_routing_put_port_mixer),
  16766. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16767. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16768. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16769. msm_routing_get_port_mixer,
  16770. msm_routing_put_port_mixer),
  16771. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16772. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16773. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16774. msm_routing_get_port_mixer,
  16775. msm_routing_put_port_mixer),
  16776. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16777. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16778. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16779. msm_routing_get_port_mixer,
  16780. msm_routing_put_port_mixer),
  16781. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16782. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16783. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16784. msm_routing_get_port_mixer,
  16785. msm_routing_put_port_mixer),
  16786. };
  16787. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  16788. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16789. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16790. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16791. msm_routing_get_port_mixer,
  16792. msm_routing_put_port_mixer),
  16793. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16794. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16795. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16796. msm_routing_get_port_mixer,
  16797. msm_routing_put_port_mixer),
  16798. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16799. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16800. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  16801. msm_routing_get_port_mixer,
  16802. msm_routing_put_port_mixer),
  16803. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16804. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16805. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16806. msm_routing_get_port_mixer,
  16807. msm_routing_put_port_mixer),
  16808. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16809. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16810. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16811. msm_routing_get_port_mixer,
  16812. msm_routing_put_port_mixer),
  16813. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16814. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16815. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16816. msm_routing_get_port_mixer,
  16817. msm_routing_put_port_mixer),
  16818. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16819. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16820. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16821. msm_routing_get_port_mixer,
  16822. msm_routing_put_port_mixer),
  16823. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16824. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16825. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16826. msm_routing_get_port_mixer,
  16827. msm_routing_put_port_mixer),
  16828. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16829. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16830. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16831. msm_routing_get_port_mixer,
  16832. msm_routing_put_port_mixer),
  16833. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16834. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16835. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16836. msm_routing_get_port_mixer,
  16837. msm_routing_put_port_mixer),
  16838. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16839. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16840. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16841. msm_routing_get_port_mixer,
  16842. msm_routing_put_port_mixer),
  16843. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16844. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16845. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16846. msm_routing_get_port_mixer,
  16847. msm_routing_put_port_mixer),
  16848. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16849. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16850. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16851. msm_routing_get_port_mixer,
  16852. msm_routing_put_port_mixer),
  16853. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16854. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16855. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16856. msm_routing_get_port_mixer,
  16857. msm_routing_put_port_mixer),
  16858. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16859. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16860. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16861. msm_routing_get_port_mixer,
  16862. msm_routing_put_port_mixer),
  16863. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16864. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16865. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16866. msm_routing_get_port_mixer,
  16867. msm_routing_put_port_mixer),
  16868. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16869. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16870. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16871. msm_routing_get_port_mixer,
  16872. msm_routing_put_port_mixer),
  16873. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16874. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16875. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16876. msm_routing_get_port_mixer,
  16877. msm_routing_put_port_mixer),
  16878. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16879. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16880. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16881. msm_routing_get_port_mixer,
  16882. msm_routing_put_port_mixer),
  16883. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16884. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16885. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16886. msm_routing_get_port_mixer,
  16887. msm_routing_put_port_mixer),
  16888. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16889. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16890. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16891. msm_routing_get_port_mixer,
  16892. msm_routing_put_port_mixer),
  16893. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16894. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16895. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16896. msm_routing_get_port_mixer,
  16897. msm_routing_put_port_mixer),
  16898. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16899. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16900. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16901. msm_routing_get_port_mixer,
  16902. msm_routing_put_port_mixer),
  16903. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16904. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16905. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16906. msm_routing_get_port_mixer,
  16907. msm_routing_put_port_mixer),
  16908. };
  16909. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  16910. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16911. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16912. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16913. msm_routing_get_port_mixer,
  16914. msm_routing_put_port_mixer),
  16915. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16916. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16917. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16918. msm_routing_get_port_mixer,
  16919. msm_routing_put_port_mixer),
  16920. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16921. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16922. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  16923. msm_routing_get_port_mixer,
  16924. msm_routing_put_port_mixer),
  16925. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16926. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16927. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16928. msm_routing_get_port_mixer,
  16929. msm_routing_put_port_mixer),
  16930. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16931. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16932. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16933. msm_routing_get_port_mixer,
  16934. msm_routing_put_port_mixer),
  16935. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16936. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16937. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16938. msm_routing_get_port_mixer,
  16939. msm_routing_put_port_mixer),
  16940. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16941. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16942. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16943. msm_routing_get_port_mixer,
  16944. msm_routing_put_port_mixer),
  16945. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16946. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16947. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16948. msm_routing_get_port_mixer,
  16949. msm_routing_put_port_mixer),
  16950. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16951. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16952. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16953. msm_routing_get_port_mixer,
  16954. msm_routing_put_port_mixer),
  16955. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16956. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16957. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16958. msm_routing_get_port_mixer,
  16959. msm_routing_put_port_mixer),
  16960. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16961. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16962. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16963. msm_routing_get_port_mixer,
  16964. msm_routing_put_port_mixer),
  16965. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16966. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16967. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16968. msm_routing_get_port_mixer,
  16969. msm_routing_put_port_mixer),
  16970. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16971. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16972. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16973. msm_routing_get_port_mixer,
  16974. msm_routing_put_port_mixer),
  16975. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16976. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16977. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16978. msm_routing_get_port_mixer,
  16979. msm_routing_put_port_mixer),
  16980. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16981. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16982. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16983. msm_routing_get_port_mixer,
  16984. msm_routing_put_port_mixer),
  16985. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16986. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16987. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16988. msm_routing_get_port_mixer,
  16989. msm_routing_put_port_mixer),
  16990. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16991. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16992. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16993. msm_routing_get_port_mixer,
  16994. msm_routing_put_port_mixer),
  16995. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16996. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  16997. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16998. msm_routing_get_port_mixer,
  16999. msm_routing_put_port_mixer),
  17000. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17001. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17002. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17003. msm_routing_get_port_mixer,
  17004. msm_routing_put_port_mixer),
  17005. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17006. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17007. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17008. msm_routing_get_port_mixer,
  17009. msm_routing_put_port_mixer),
  17010. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17011. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17012. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17013. msm_routing_get_port_mixer,
  17014. msm_routing_put_port_mixer),
  17015. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17016. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17017. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17018. msm_routing_get_port_mixer,
  17019. msm_routing_put_port_mixer),
  17020. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17021. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17022. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17023. msm_routing_get_port_mixer,
  17024. msm_routing_put_port_mixer),
  17025. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17026. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17027. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17028. msm_routing_get_port_mixer,
  17029. msm_routing_put_port_mixer),
  17030. };
  17031. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  17032. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17033. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17034. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17035. msm_routing_get_port_mixer,
  17036. msm_routing_put_port_mixer),
  17037. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17038. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17039. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17040. msm_routing_get_port_mixer,
  17041. msm_routing_put_port_mixer),
  17042. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17043. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17044. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17045. msm_routing_get_port_mixer,
  17046. msm_routing_put_port_mixer),
  17047. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17048. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17049. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17050. msm_routing_get_port_mixer,
  17051. msm_routing_put_port_mixer),
  17052. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17053. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17054. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17055. msm_routing_get_port_mixer,
  17056. msm_routing_put_port_mixer),
  17057. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17058. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17059. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17060. msm_routing_get_port_mixer,
  17061. msm_routing_put_port_mixer),
  17062. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17063. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17064. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17065. msm_routing_get_port_mixer,
  17066. msm_routing_put_port_mixer),
  17067. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17068. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17069. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17070. msm_routing_get_port_mixer,
  17071. msm_routing_put_port_mixer),
  17072. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17073. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17074. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17075. msm_routing_get_port_mixer,
  17076. msm_routing_put_port_mixer),
  17077. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17078. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17079. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17080. msm_routing_get_port_mixer,
  17081. msm_routing_put_port_mixer),
  17082. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17083. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17084. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17085. msm_routing_get_port_mixer,
  17086. msm_routing_put_port_mixer),
  17087. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17088. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17089. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17090. msm_routing_get_port_mixer,
  17091. msm_routing_put_port_mixer),
  17092. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17093. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17094. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17095. msm_routing_get_port_mixer,
  17096. msm_routing_put_port_mixer),
  17097. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17098. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17099. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17100. msm_routing_get_port_mixer,
  17101. msm_routing_put_port_mixer),
  17102. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17103. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17104. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17105. msm_routing_get_port_mixer,
  17106. msm_routing_put_port_mixer),
  17107. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17108. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17109. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17110. msm_routing_get_port_mixer,
  17111. msm_routing_put_port_mixer),
  17112. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17113. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17114. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17115. msm_routing_get_port_mixer,
  17116. msm_routing_put_port_mixer),
  17117. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17118. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17119. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17120. msm_routing_get_port_mixer,
  17121. msm_routing_put_port_mixer),
  17122. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17123. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17124. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17125. msm_routing_get_port_mixer,
  17126. msm_routing_put_port_mixer),
  17127. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17128. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17129. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17130. msm_routing_get_port_mixer,
  17131. msm_routing_put_port_mixer),
  17132. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17133. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17134. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17135. msm_routing_get_port_mixer,
  17136. msm_routing_put_port_mixer),
  17137. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17138. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17139. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17140. msm_routing_get_port_mixer,
  17141. msm_routing_put_port_mixer),
  17142. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17143. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17144. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17145. msm_routing_get_port_mixer,
  17146. msm_routing_put_port_mixer),
  17147. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17148. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17149. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17150. msm_routing_get_port_mixer,
  17151. msm_routing_put_port_mixer),
  17152. };
  17153. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  17154. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17155. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17156. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17157. msm_routing_get_port_mixer,
  17158. msm_routing_put_port_mixer),
  17159. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17160. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17161. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17162. msm_routing_get_port_mixer,
  17163. msm_routing_put_port_mixer),
  17164. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17165. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17166. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17167. msm_routing_get_port_mixer,
  17168. msm_routing_put_port_mixer),
  17169. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17170. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17171. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17172. msm_routing_get_port_mixer,
  17173. msm_routing_put_port_mixer),
  17174. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17175. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17176. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17177. msm_routing_get_port_mixer,
  17178. msm_routing_put_port_mixer),
  17179. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17180. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17181. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17182. msm_routing_get_port_mixer,
  17183. msm_routing_put_port_mixer),
  17184. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17185. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17186. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17187. msm_routing_get_port_mixer,
  17188. msm_routing_put_port_mixer),
  17189. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17190. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17191. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17192. msm_routing_get_port_mixer,
  17193. msm_routing_put_port_mixer),
  17194. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17195. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17196. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17197. msm_routing_get_port_mixer,
  17198. msm_routing_put_port_mixer),
  17199. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17200. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17201. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17202. msm_routing_get_port_mixer,
  17203. msm_routing_put_port_mixer),
  17204. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17205. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17206. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17207. msm_routing_get_port_mixer,
  17208. msm_routing_put_port_mixer),
  17209. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17210. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17211. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17212. msm_routing_get_port_mixer,
  17213. msm_routing_put_port_mixer),
  17214. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17215. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17216. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17217. msm_routing_get_port_mixer,
  17218. msm_routing_put_port_mixer),
  17219. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17220. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17221. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17222. msm_routing_get_port_mixer,
  17223. msm_routing_put_port_mixer),
  17224. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17225. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17226. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17227. msm_routing_get_port_mixer,
  17228. msm_routing_put_port_mixer),
  17229. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17230. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17231. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17232. msm_routing_get_port_mixer,
  17233. msm_routing_put_port_mixer),
  17234. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17235. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17236. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17237. msm_routing_get_port_mixer,
  17238. msm_routing_put_port_mixer),
  17239. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17240. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17241. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17242. msm_routing_get_port_mixer,
  17243. msm_routing_put_port_mixer),
  17244. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17245. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17246. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17247. msm_routing_get_port_mixer,
  17248. msm_routing_put_port_mixer),
  17249. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17250. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17251. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17252. msm_routing_get_port_mixer,
  17253. msm_routing_put_port_mixer),
  17254. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17255. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17256. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17257. msm_routing_get_port_mixer,
  17258. msm_routing_put_port_mixer),
  17259. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17260. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17261. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17262. msm_routing_get_port_mixer,
  17263. msm_routing_put_port_mixer),
  17264. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17265. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17266. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17267. msm_routing_get_port_mixer,
  17268. msm_routing_put_port_mixer),
  17269. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17270. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17271. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17272. msm_routing_get_port_mixer,
  17273. msm_routing_put_port_mixer),
  17274. };
  17275. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  17276. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  17277. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  17278. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  17279. msm_routing_get_port_mixer,
  17280. msm_routing_put_port_mixer),
  17281. };
  17282. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  17283. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17284. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17285. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17286. msm_routing_get_port_mixer,
  17287. msm_routing_put_port_mixer),
  17288. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17289. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17290. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17291. msm_routing_get_port_mixer,
  17292. msm_routing_put_port_mixer),
  17293. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17294. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17295. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17296. msm_routing_get_port_mixer,
  17297. msm_routing_put_port_mixer),
  17298. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17299. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17300. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17301. msm_routing_get_port_mixer,
  17302. msm_routing_put_port_mixer),
  17303. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17304. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17305. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17306. msm_routing_get_port_mixer,
  17307. msm_routing_put_port_mixer),
  17308. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17309. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17310. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17311. msm_routing_get_port_mixer,
  17312. msm_routing_put_port_mixer),
  17313. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17314. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17315. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17316. msm_routing_get_port_mixer,
  17317. msm_routing_put_port_mixer),
  17318. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17319. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17320. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17321. msm_routing_get_port_mixer,
  17322. msm_routing_put_port_mixer),
  17323. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17324. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17325. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17326. msm_routing_get_port_mixer,
  17327. msm_routing_put_port_mixer),
  17328. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17329. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17330. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17331. msm_routing_get_port_mixer,
  17332. msm_routing_put_port_mixer),
  17333. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17334. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17335. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17336. msm_routing_get_port_mixer,
  17337. msm_routing_put_port_mixer),
  17338. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17339. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17340. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17341. msm_routing_get_port_mixer,
  17342. msm_routing_put_port_mixer),
  17343. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17344. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17345. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17346. msm_routing_get_port_mixer,
  17347. msm_routing_put_port_mixer),
  17348. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17349. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17350. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17351. msm_routing_get_port_mixer,
  17352. msm_routing_put_port_mixer),
  17353. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17354. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17355. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17356. msm_routing_get_port_mixer,
  17357. msm_routing_put_port_mixer),
  17358. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17359. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17360. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17361. msm_routing_get_port_mixer,
  17362. msm_routing_put_port_mixer),
  17363. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17364. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17365. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17366. msm_routing_get_port_mixer,
  17367. msm_routing_put_port_mixer),
  17368. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17369. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17370. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17371. msm_routing_get_port_mixer,
  17372. msm_routing_put_port_mixer),
  17373. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17374. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17375. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17376. msm_routing_get_port_mixer,
  17377. msm_routing_put_port_mixer),
  17378. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17379. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17380. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17381. msm_routing_get_port_mixer,
  17382. msm_routing_put_port_mixer),
  17383. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17384. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17385. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17386. msm_routing_get_port_mixer,
  17387. msm_routing_put_port_mixer),
  17388. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17389. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17390. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17391. msm_routing_get_port_mixer,
  17392. msm_routing_put_port_mixer),
  17393. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17394. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17395. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17396. msm_routing_get_port_mixer,
  17397. msm_routing_put_port_mixer),
  17398. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17399. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17400. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17401. msm_routing_get_port_mixer,
  17402. msm_routing_put_port_mixer),
  17403. };
  17404. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  17405. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17406. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17407. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17408. msm_routing_get_port_mixer,
  17409. msm_routing_put_port_mixer),
  17410. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17411. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17412. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17413. msm_routing_get_port_mixer,
  17414. msm_routing_put_port_mixer),
  17415. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17416. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17417. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17418. msm_routing_get_port_mixer,
  17419. msm_routing_put_port_mixer),
  17420. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17421. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17422. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17423. msm_routing_get_port_mixer,
  17424. msm_routing_put_port_mixer),
  17425. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17426. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17427. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17428. msm_routing_get_port_mixer,
  17429. msm_routing_put_port_mixer),
  17430. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17431. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17432. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17433. msm_routing_get_port_mixer,
  17434. msm_routing_put_port_mixer),
  17435. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17436. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17437. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17438. msm_routing_get_port_mixer,
  17439. msm_routing_put_port_mixer),
  17440. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17441. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17442. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17443. msm_routing_get_port_mixer,
  17444. msm_routing_put_port_mixer),
  17445. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17446. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17447. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17448. msm_routing_get_port_mixer,
  17449. msm_routing_put_port_mixer),
  17450. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17451. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17452. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17453. msm_routing_get_port_mixer,
  17454. msm_routing_put_port_mixer),
  17455. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17456. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17457. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17458. msm_routing_get_port_mixer,
  17459. msm_routing_put_port_mixer),
  17460. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17461. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17462. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17463. msm_routing_get_port_mixer,
  17464. msm_routing_put_port_mixer),
  17465. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17466. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17467. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17468. msm_routing_get_port_mixer,
  17469. msm_routing_put_port_mixer),
  17470. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17471. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17472. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17473. msm_routing_get_port_mixer,
  17474. msm_routing_put_port_mixer),
  17475. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17476. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17477. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17478. msm_routing_get_port_mixer,
  17479. msm_routing_put_port_mixer),
  17480. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17481. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17482. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17483. msm_routing_get_port_mixer,
  17484. msm_routing_put_port_mixer),
  17485. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17486. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17487. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17488. msm_routing_get_port_mixer,
  17489. msm_routing_put_port_mixer),
  17490. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17491. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17492. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17493. msm_routing_get_port_mixer,
  17494. msm_routing_put_port_mixer),
  17495. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17496. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17497. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17498. msm_routing_get_port_mixer,
  17499. msm_routing_put_port_mixer),
  17500. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17501. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17502. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17503. msm_routing_get_port_mixer,
  17504. msm_routing_put_port_mixer),
  17505. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17506. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17507. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17508. msm_routing_get_port_mixer,
  17509. msm_routing_put_port_mixer),
  17510. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17511. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17512. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17513. msm_routing_get_port_mixer,
  17514. msm_routing_put_port_mixer),
  17515. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17516. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17517. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17518. msm_routing_get_port_mixer,
  17519. msm_routing_put_port_mixer),
  17520. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17521. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17522. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17523. msm_routing_get_port_mixer,
  17524. msm_routing_put_port_mixer),
  17525. };
  17526. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  17527. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17528. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17529. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17530. msm_routing_get_port_mixer,
  17531. msm_routing_put_port_mixer),
  17532. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17533. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17534. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17535. msm_routing_get_port_mixer,
  17536. msm_routing_put_port_mixer),
  17537. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17538. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17539. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17540. msm_routing_get_port_mixer,
  17541. msm_routing_put_port_mixer),
  17542. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17543. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17544. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17545. msm_routing_get_port_mixer,
  17546. msm_routing_put_port_mixer),
  17547. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17548. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17549. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17550. msm_routing_get_port_mixer,
  17551. msm_routing_put_port_mixer),
  17552. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17553. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17554. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17555. msm_routing_get_port_mixer,
  17556. msm_routing_put_port_mixer),
  17557. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17559. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17560. msm_routing_get_port_mixer,
  17561. msm_routing_put_port_mixer),
  17562. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17563. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17564. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17565. msm_routing_get_port_mixer,
  17566. msm_routing_put_port_mixer),
  17567. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17568. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17569. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17570. msm_routing_get_port_mixer,
  17571. msm_routing_put_port_mixer),
  17572. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17573. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17574. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17575. msm_routing_get_port_mixer,
  17576. msm_routing_put_port_mixer),
  17577. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17578. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17579. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17580. msm_routing_get_port_mixer,
  17581. msm_routing_put_port_mixer),
  17582. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17583. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17584. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17585. msm_routing_get_port_mixer,
  17586. msm_routing_put_port_mixer),
  17587. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17588. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17589. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17590. msm_routing_get_port_mixer,
  17591. msm_routing_put_port_mixer),
  17592. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17593. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17594. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17595. msm_routing_get_port_mixer,
  17596. msm_routing_put_port_mixer),
  17597. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17598. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17599. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17600. msm_routing_get_port_mixer,
  17601. msm_routing_put_port_mixer),
  17602. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17603. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17604. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17605. msm_routing_get_port_mixer,
  17606. msm_routing_put_port_mixer),
  17607. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17608. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17609. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17610. msm_routing_get_port_mixer,
  17611. msm_routing_put_port_mixer),
  17612. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17613. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17614. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17615. msm_routing_get_port_mixer,
  17616. msm_routing_put_port_mixer),
  17617. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17618. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17619. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17620. msm_routing_get_port_mixer,
  17621. msm_routing_put_port_mixer),
  17622. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17623. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17624. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17625. msm_routing_get_port_mixer,
  17626. msm_routing_put_port_mixer),
  17627. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17628. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17629. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17630. msm_routing_get_port_mixer,
  17631. msm_routing_put_port_mixer),
  17632. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17633. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17634. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17635. msm_routing_get_port_mixer,
  17636. msm_routing_put_port_mixer),
  17637. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17638. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17639. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17640. msm_routing_get_port_mixer,
  17641. msm_routing_put_port_mixer),
  17642. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17643. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17644. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17645. msm_routing_get_port_mixer,
  17646. msm_routing_put_port_mixer),
  17647. };
  17648. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  17649. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17650. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17651. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17652. msm_routing_get_port_mixer,
  17653. msm_routing_put_port_mixer),
  17654. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17655. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17656. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17657. msm_routing_get_port_mixer,
  17658. msm_routing_put_port_mixer),
  17659. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17660. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17661. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17662. msm_routing_get_port_mixer,
  17663. msm_routing_put_port_mixer),
  17664. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17665. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17666. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17667. msm_routing_get_port_mixer,
  17668. msm_routing_put_port_mixer),
  17669. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17670. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17671. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17672. msm_routing_get_port_mixer,
  17673. msm_routing_put_port_mixer),
  17674. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17675. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17676. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17677. msm_routing_get_port_mixer,
  17678. msm_routing_put_port_mixer),
  17679. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17680. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17681. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17682. msm_routing_get_port_mixer,
  17683. msm_routing_put_port_mixer),
  17684. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17685. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17686. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17687. msm_routing_get_port_mixer,
  17688. msm_routing_put_port_mixer),
  17689. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17690. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17691. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17692. msm_routing_get_port_mixer,
  17693. msm_routing_put_port_mixer),
  17694. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17695. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17696. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17697. msm_routing_get_port_mixer,
  17698. msm_routing_put_port_mixer),
  17699. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17700. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17701. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17702. msm_routing_get_port_mixer,
  17703. msm_routing_put_port_mixer),
  17704. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17705. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17706. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17707. msm_routing_get_port_mixer,
  17708. msm_routing_put_port_mixer),
  17709. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17710. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17711. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17712. msm_routing_get_port_mixer,
  17713. msm_routing_put_port_mixer),
  17714. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17715. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17716. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17717. msm_routing_get_port_mixer,
  17718. msm_routing_put_port_mixer),
  17719. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17720. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17721. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17722. msm_routing_get_port_mixer,
  17723. msm_routing_put_port_mixer),
  17724. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17725. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17726. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17727. msm_routing_get_port_mixer,
  17728. msm_routing_put_port_mixer),
  17729. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17730. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17731. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17732. msm_routing_get_port_mixer,
  17733. msm_routing_put_port_mixer),
  17734. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17735. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17736. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17737. msm_routing_get_port_mixer,
  17738. msm_routing_put_port_mixer),
  17739. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17740. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17741. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17742. msm_routing_get_port_mixer,
  17743. msm_routing_put_port_mixer),
  17744. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17745. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17746. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17747. msm_routing_get_port_mixer,
  17748. msm_routing_put_port_mixer),
  17749. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17750. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17751. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17752. msm_routing_get_port_mixer,
  17753. msm_routing_put_port_mixer),
  17754. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17755. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17756. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17757. msm_routing_get_port_mixer,
  17758. msm_routing_put_port_mixer),
  17759. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17760. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17761. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17762. msm_routing_get_port_mixer,
  17763. msm_routing_put_port_mixer),
  17764. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17765. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17766. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17767. msm_routing_get_port_mixer,
  17768. msm_routing_put_port_mixer),
  17769. };
  17770. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  17771. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17772. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17773. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17774. msm_routing_get_port_mixer,
  17775. msm_routing_put_port_mixer),
  17776. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17777. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17778. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17779. msm_routing_get_port_mixer,
  17780. msm_routing_put_port_mixer),
  17781. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17782. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17783. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17784. msm_routing_get_port_mixer,
  17785. msm_routing_put_port_mixer),
  17786. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17787. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17788. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17789. msm_routing_get_port_mixer,
  17790. msm_routing_put_port_mixer),
  17791. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17792. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17793. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17794. msm_routing_get_port_mixer,
  17795. msm_routing_put_port_mixer),
  17796. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17797. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17798. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17799. msm_routing_get_port_mixer,
  17800. msm_routing_put_port_mixer),
  17801. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17802. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17803. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17804. msm_routing_get_port_mixer,
  17805. msm_routing_put_port_mixer),
  17806. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17807. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17808. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17809. msm_routing_get_port_mixer,
  17810. msm_routing_put_port_mixer),
  17811. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17812. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17813. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17814. msm_routing_get_port_mixer,
  17815. msm_routing_put_port_mixer),
  17816. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17817. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17818. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17819. msm_routing_get_port_mixer,
  17820. msm_routing_put_port_mixer),
  17821. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17822. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17823. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17824. msm_routing_get_port_mixer,
  17825. msm_routing_put_port_mixer),
  17826. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17827. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17828. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17829. msm_routing_get_port_mixer,
  17830. msm_routing_put_port_mixer),
  17831. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17832. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17833. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17834. msm_routing_get_port_mixer,
  17835. msm_routing_put_port_mixer),
  17836. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17837. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17838. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17839. msm_routing_get_port_mixer,
  17840. msm_routing_put_port_mixer),
  17841. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17842. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17843. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17844. msm_routing_get_port_mixer,
  17845. msm_routing_put_port_mixer),
  17846. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17847. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17848. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17849. msm_routing_get_port_mixer,
  17850. msm_routing_put_port_mixer),
  17851. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17852. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17853. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17854. msm_routing_get_port_mixer,
  17855. msm_routing_put_port_mixer),
  17856. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17857. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17858. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17859. msm_routing_get_port_mixer,
  17860. msm_routing_put_port_mixer),
  17861. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17862. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17863. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17864. msm_routing_get_port_mixer,
  17865. msm_routing_put_port_mixer),
  17866. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17867. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17868. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17869. msm_routing_get_port_mixer,
  17870. msm_routing_put_port_mixer),
  17871. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17872. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17873. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17874. msm_routing_get_port_mixer,
  17875. msm_routing_put_port_mixer),
  17876. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17877. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17878. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17879. msm_routing_get_port_mixer,
  17880. msm_routing_put_port_mixer),
  17881. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17882. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17883. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17884. msm_routing_get_port_mixer,
  17885. msm_routing_put_port_mixer),
  17886. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17887. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17888. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17889. msm_routing_get_port_mixer,
  17890. msm_routing_put_port_mixer),
  17891. };
  17892. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  17893. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17894. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17895. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17896. msm_routing_get_port_mixer,
  17897. msm_routing_put_port_mixer),
  17898. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17899. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17900. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17901. msm_routing_get_port_mixer,
  17902. msm_routing_put_port_mixer),
  17903. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17904. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17905. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17906. msm_routing_get_port_mixer,
  17907. msm_routing_put_port_mixer),
  17908. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17909. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17910. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17911. msm_routing_get_port_mixer,
  17912. msm_routing_put_port_mixer),
  17913. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17914. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17915. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17916. msm_routing_get_port_mixer,
  17917. msm_routing_put_port_mixer),
  17918. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17919. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17920. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17921. msm_routing_get_port_mixer,
  17922. msm_routing_put_port_mixer),
  17923. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17924. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17925. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17926. msm_routing_get_port_mixer,
  17927. msm_routing_put_port_mixer),
  17928. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17929. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17930. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17931. msm_routing_get_port_mixer,
  17932. msm_routing_put_port_mixer),
  17933. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17934. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17935. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17936. msm_routing_get_port_mixer,
  17937. msm_routing_put_port_mixer),
  17938. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17939. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17940. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17941. msm_routing_get_port_mixer,
  17942. msm_routing_put_port_mixer),
  17943. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17944. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17945. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17946. msm_routing_get_port_mixer,
  17947. msm_routing_put_port_mixer),
  17948. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17949. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17950. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17951. msm_routing_get_port_mixer,
  17952. msm_routing_put_port_mixer),
  17953. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17954. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17955. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17956. msm_routing_get_port_mixer,
  17957. msm_routing_put_port_mixer),
  17958. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17959. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17960. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17961. msm_routing_get_port_mixer,
  17962. msm_routing_put_port_mixer),
  17963. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17964. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17965. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17966. msm_routing_get_port_mixer,
  17967. msm_routing_put_port_mixer),
  17968. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17969. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17970. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17971. msm_routing_get_port_mixer,
  17972. msm_routing_put_port_mixer),
  17973. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17974. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17975. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17976. msm_routing_get_port_mixer,
  17977. msm_routing_put_port_mixer),
  17978. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17979. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17980. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17981. msm_routing_get_port_mixer,
  17982. msm_routing_put_port_mixer),
  17983. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17984. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17985. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17986. msm_routing_get_port_mixer,
  17987. msm_routing_put_port_mixer),
  17988. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17989. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17990. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17991. msm_routing_get_port_mixer,
  17992. msm_routing_put_port_mixer),
  17993. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17994. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  17995. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17996. msm_routing_get_port_mixer,
  17997. msm_routing_put_port_mixer),
  17998. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17999. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18000. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18001. msm_routing_get_port_mixer,
  18002. msm_routing_put_port_mixer),
  18003. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18004. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18005. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18006. msm_routing_get_port_mixer,
  18007. msm_routing_put_port_mixer),
  18008. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18009. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18010. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18011. msm_routing_get_port_mixer,
  18012. msm_routing_put_port_mixer),
  18013. };
  18014. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  18015. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18016. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18017. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18018. msm_routing_get_port_mixer,
  18019. msm_routing_put_port_mixer),
  18020. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18021. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18022. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18023. msm_routing_get_port_mixer,
  18024. msm_routing_put_port_mixer),
  18025. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18026. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18027. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18028. msm_routing_get_port_mixer,
  18029. msm_routing_put_port_mixer),
  18030. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18031. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18032. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18033. msm_routing_get_port_mixer,
  18034. msm_routing_put_port_mixer),
  18035. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18036. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18037. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18038. msm_routing_get_port_mixer,
  18039. msm_routing_put_port_mixer),
  18040. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18041. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18042. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18043. msm_routing_get_port_mixer,
  18044. msm_routing_put_port_mixer),
  18045. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18046. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18047. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18048. msm_routing_get_port_mixer,
  18049. msm_routing_put_port_mixer),
  18050. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18051. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18052. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18053. msm_routing_get_port_mixer,
  18054. msm_routing_put_port_mixer),
  18055. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18056. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18057. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18058. msm_routing_get_port_mixer,
  18059. msm_routing_put_port_mixer),
  18060. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18061. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18062. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18063. msm_routing_get_port_mixer,
  18064. msm_routing_put_port_mixer),
  18065. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18066. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18067. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18068. msm_routing_get_port_mixer,
  18069. msm_routing_put_port_mixer),
  18070. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18071. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18072. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18073. msm_routing_get_port_mixer,
  18074. msm_routing_put_port_mixer),
  18075. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18076. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18077. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18078. msm_routing_get_port_mixer,
  18079. msm_routing_put_port_mixer),
  18080. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18081. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18082. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18083. msm_routing_get_port_mixer,
  18084. msm_routing_put_port_mixer),
  18085. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18086. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18087. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18088. msm_routing_get_port_mixer,
  18089. msm_routing_put_port_mixer),
  18090. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18091. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18092. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18093. msm_routing_get_port_mixer,
  18094. msm_routing_put_port_mixer),
  18095. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18096. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18097. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18098. msm_routing_get_port_mixer,
  18099. msm_routing_put_port_mixer),
  18100. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18101. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18102. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18103. msm_routing_get_port_mixer,
  18104. msm_routing_put_port_mixer),
  18105. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18106. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18107. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18108. msm_routing_get_port_mixer,
  18109. msm_routing_put_port_mixer),
  18110. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18111. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18112. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18113. msm_routing_get_port_mixer,
  18114. msm_routing_put_port_mixer),
  18115. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18116. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18117. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18118. msm_routing_get_port_mixer,
  18119. msm_routing_put_port_mixer),
  18120. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18121. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18122. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18123. msm_routing_get_port_mixer,
  18124. msm_routing_put_port_mixer),
  18125. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18126. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18127. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18128. msm_routing_get_port_mixer,
  18129. msm_routing_put_port_mixer),
  18130. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18131. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18132. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18133. msm_routing_get_port_mixer,
  18134. msm_routing_put_port_mixer),
  18135. };
  18136. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  18137. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18138. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18139. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18140. msm_routing_get_port_mixer,
  18141. msm_routing_put_port_mixer),
  18142. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18143. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18144. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18145. msm_routing_get_port_mixer,
  18146. msm_routing_put_port_mixer),
  18147. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18148. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18149. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18150. msm_routing_get_port_mixer,
  18151. msm_routing_put_port_mixer),
  18152. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18153. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18154. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18155. msm_routing_get_port_mixer,
  18156. msm_routing_put_port_mixer),
  18157. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18158. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18159. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18160. msm_routing_get_port_mixer,
  18161. msm_routing_put_port_mixer),
  18162. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18163. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18164. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18165. msm_routing_get_port_mixer,
  18166. msm_routing_put_port_mixer),
  18167. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18168. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18169. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18170. msm_routing_get_port_mixer,
  18171. msm_routing_put_port_mixer),
  18172. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18173. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18174. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18175. msm_routing_get_port_mixer,
  18176. msm_routing_put_port_mixer),
  18177. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18178. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18179. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18180. msm_routing_get_port_mixer,
  18181. msm_routing_put_port_mixer),
  18182. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18183. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18184. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18185. msm_routing_get_port_mixer,
  18186. msm_routing_put_port_mixer),
  18187. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18188. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18189. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18190. msm_routing_get_port_mixer,
  18191. msm_routing_put_port_mixer),
  18192. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18193. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18194. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18195. msm_routing_get_port_mixer,
  18196. msm_routing_put_port_mixer),
  18197. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18198. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18199. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18200. msm_routing_get_port_mixer,
  18201. msm_routing_put_port_mixer),
  18202. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18203. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18204. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18205. msm_routing_get_port_mixer,
  18206. msm_routing_put_port_mixer),
  18207. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18208. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18209. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18210. msm_routing_get_port_mixer,
  18211. msm_routing_put_port_mixer),
  18212. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18213. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18214. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18215. msm_routing_get_port_mixer,
  18216. msm_routing_put_port_mixer),
  18217. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18218. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18219. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18220. msm_routing_get_port_mixer,
  18221. msm_routing_put_port_mixer),
  18222. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18223. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18224. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18225. msm_routing_get_port_mixer,
  18226. msm_routing_put_port_mixer),
  18227. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18228. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18229. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18230. msm_routing_get_port_mixer,
  18231. msm_routing_put_port_mixer),
  18232. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18233. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18234. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18235. msm_routing_get_port_mixer,
  18236. msm_routing_put_port_mixer),
  18237. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18238. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18239. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18240. msm_routing_get_port_mixer,
  18241. msm_routing_put_port_mixer),
  18242. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18243. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18244. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18245. msm_routing_get_port_mixer,
  18246. msm_routing_put_port_mixer),
  18247. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18248. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18249. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18250. msm_routing_get_port_mixer,
  18251. msm_routing_put_port_mixer),
  18252. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18253. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18254. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18255. msm_routing_get_port_mixer,
  18256. msm_routing_put_port_mixer),
  18257. };
  18258. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  18259. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18260. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18261. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18262. msm_routing_put_port_mixer),
  18263. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18264. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18265. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18266. msm_routing_put_port_mixer),
  18267. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18268. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18269. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18270. msm_routing_put_port_mixer),
  18271. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18272. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18273. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18274. msm_routing_put_port_mixer),
  18275. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18276. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18277. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18278. msm_routing_put_port_mixer),
  18279. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18280. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18281. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18282. msm_routing_put_port_mixer),
  18283. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18284. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18285. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18286. msm_routing_put_port_mixer),
  18287. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18288. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18289. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18290. msm_routing_put_port_mixer),
  18291. };
  18292. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  18293. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18294. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18295. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18296. msm_routing_put_port_mixer),
  18297. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18298. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18299. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18300. msm_routing_put_port_mixer),
  18301. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18302. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18303. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18304. msm_routing_put_port_mixer),
  18305. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18306. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18307. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18308. msm_routing_put_port_mixer),
  18309. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18310. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18311. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18312. msm_routing_put_port_mixer),
  18313. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18314. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18315. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18316. msm_routing_put_port_mixer),
  18317. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18318. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18319. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18320. msm_routing_put_port_mixer),
  18321. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18322. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18323. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18324. msm_routing_put_port_mixer),
  18325. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18326. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18327. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18328. msm_routing_put_port_mixer),
  18329. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18330. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18331. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18332. msm_routing_put_port_mixer),
  18333. };
  18334. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  18335. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18336. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18337. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18338. msm_routing_put_listen_mixer),
  18339. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18340. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18341. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18342. msm_routing_put_listen_mixer),
  18343. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18344. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18345. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18346. msm_routing_put_listen_mixer),
  18347. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18348. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18349. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18350. msm_routing_put_listen_mixer),
  18351. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18352. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18353. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18354. msm_routing_put_listen_mixer),
  18355. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18356. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18357. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18358. msm_routing_put_listen_mixer),
  18359. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18360. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18361. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18362. msm_routing_put_listen_mixer),
  18363. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18364. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18365. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18366. msm_routing_put_listen_mixer),
  18367. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18368. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18369. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18370. msm_routing_put_listen_mixer),
  18371. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18372. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18373. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18374. msm_routing_put_listen_mixer),
  18375. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18376. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18377. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18378. msm_routing_put_listen_mixer),
  18379. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18380. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18381. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18382. msm_routing_put_listen_mixer),
  18383. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18384. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18385. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18386. msm_routing_put_listen_mixer),
  18387. };
  18388. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  18389. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18390. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18391. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18392. msm_routing_put_listen_mixer),
  18393. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  18394. SND_SOC_NOPM,
  18395. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18396. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18397. msm_routing_put_listen_mixer),
  18398. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18399. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18400. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18401. msm_routing_put_listen_mixer),
  18402. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18403. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18404. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18405. msm_routing_put_listen_mixer),
  18406. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18407. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18408. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18409. msm_routing_put_listen_mixer),
  18410. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18411. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18412. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18413. msm_routing_put_listen_mixer),
  18414. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18415. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18416. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18417. msm_routing_put_listen_mixer),
  18418. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18419. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18420. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18421. msm_routing_put_listen_mixer),
  18422. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18423. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18424. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18425. msm_routing_put_listen_mixer),
  18426. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18427. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18428. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18429. msm_routing_put_listen_mixer),
  18430. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18431. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18432. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18433. msm_routing_put_listen_mixer),
  18434. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18435. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18436. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18437. msm_routing_put_listen_mixer),
  18438. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18439. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18440. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18441. msm_routing_put_listen_mixer),
  18442. };
  18443. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  18444. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18445. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18446. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18447. msm_routing_put_listen_mixer),
  18448. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18449. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18450. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18451. msm_routing_put_listen_mixer),
  18452. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18453. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18454. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18455. msm_routing_put_listen_mixer),
  18456. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18457. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18458. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18459. msm_routing_put_listen_mixer),
  18460. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18461. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18462. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18463. msm_routing_put_listen_mixer),
  18464. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18465. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18466. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18467. msm_routing_put_listen_mixer),
  18468. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18469. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18470. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18471. msm_routing_put_listen_mixer),
  18472. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18473. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18474. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18475. msm_routing_put_listen_mixer),
  18476. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18477. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18478. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18479. msm_routing_put_listen_mixer),
  18480. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18481. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18482. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18483. msm_routing_put_listen_mixer),
  18484. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18485. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18486. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18487. msm_routing_put_listen_mixer),
  18488. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18489. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18490. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18491. msm_routing_put_listen_mixer),
  18492. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18493. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18494. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18495. msm_routing_put_listen_mixer),
  18496. };
  18497. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  18498. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18499. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18500. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18501. msm_routing_put_listen_mixer),
  18502. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18503. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18504. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18505. msm_routing_put_listen_mixer),
  18506. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18507. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18508. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18509. msm_routing_put_listen_mixer),
  18510. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18511. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18512. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18513. msm_routing_put_listen_mixer),
  18514. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18515. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18516. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18517. msm_routing_put_listen_mixer),
  18518. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18519. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18520. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18521. msm_routing_put_listen_mixer),
  18522. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18523. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18524. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18525. msm_routing_put_listen_mixer),
  18526. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18527. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18528. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18529. msm_routing_put_listen_mixer),
  18530. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18531. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18532. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18533. msm_routing_put_listen_mixer),
  18534. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18535. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18536. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18537. msm_routing_put_listen_mixer),
  18538. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18539. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18540. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18541. msm_routing_put_listen_mixer),
  18542. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18543. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18544. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18545. msm_routing_put_listen_mixer),
  18546. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18547. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18548. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18549. msm_routing_put_listen_mixer),
  18550. };
  18551. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  18552. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18553. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18554. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18555. msm_routing_put_listen_mixer),
  18556. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18557. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18558. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18559. msm_routing_put_listen_mixer),
  18560. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18561. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18562. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18563. msm_routing_put_listen_mixer),
  18564. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18565. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18566. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18567. msm_routing_put_listen_mixer),
  18568. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18569. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18570. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18571. msm_routing_put_listen_mixer),
  18572. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18573. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18574. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18575. msm_routing_put_listen_mixer),
  18576. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18577. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18578. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18579. msm_routing_put_listen_mixer),
  18580. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18581. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18582. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18583. msm_routing_put_listen_mixer),
  18584. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18585. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18586. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18587. msm_routing_put_listen_mixer),
  18588. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18589. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18590. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18591. msm_routing_put_listen_mixer),
  18592. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18593. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18594. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18595. msm_routing_put_listen_mixer),
  18596. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18597. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18598. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18599. msm_routing_put_listen_mixer),
  18600. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18601. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18602. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18603. msm_routing_put_listen_mixer),
  18604. };
  18605. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  18606. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18607. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18608. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18609. msm_routing_put_listen_mixer),
  18610. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18611. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18612. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18613. msm_routing_put_listen_mixer),
  18614. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18615. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18616. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18617. msm_routing_put_listen_mixer),
  18618. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18619. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18620. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18621. msm_routing_put_listen_mixer),
  18622. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18623. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18624. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18625. msm_routing_put_listen_mixer),
  18626. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18627. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18628. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18629. msm_routing_put_listen_mixer),
  18630. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18631. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18632. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18633. msm_routing_put_listen_mixer),
  18634. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18635. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18636. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18637. msm_routing_put_listen_mixer),
  18638. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18639. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18640. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18641. msm_routing_put_listen_mixer),
  18642. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18643. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18644. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18645. msm_routing_put_listen_mixer),
  18646. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18647. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18648. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18649. msm_routing_put_listen_mixer),
  18650. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18651. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18652. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18653. msm_routing_put_listen_mixer),
  18654. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18655. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18656. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18657. msm_routing_put_listen_mixer),
  18658. };
  18659. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  18660. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18661. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18662. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18663. msm_routing_put_listen_mixer),
  18664. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18665. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18666. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18667. msm_routing_put_listen_mixer),
  18668. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18669. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18670. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18671. msm_routing_put_listen_mixer),
  18672. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18673. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18674. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18675. msm_routing_put_listen_mixer),
  18676. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18677. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18678. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18679. msm_routing_put_listen_mixer),
  18680. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18681. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18682. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18683. msm_routing_put_listen_mixer),
  18684. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18685. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18686. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18687. msm_routing_put_listen_mixer),
  18688. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18689. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18690. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18691. msm_routing_put_listen_mixer),
  18692. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18693. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18694. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18695. msm_routing_put_listen_mixer),
  18696. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18697. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18698. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18699. msm_routing_put_listen_mixer),
  18700. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18701. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18702. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18703. msm_routing_put_listen_mixer),
  18704. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18705. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18706. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18707. msm_routing_put_listen_mixer),
  18708. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18709. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18710. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18711. msm_routing_put_listen_mixer),
  18712. };
  18713. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  18714. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18715. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18716. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18717. msm_routing_put_listen_mixer),
  18718. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18719. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18720. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18721. msm_routing_put_listen_mixer),
  18722. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18723. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18724. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18725. msm_routing_put_listen_mixer),
  18726. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18727. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18728. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18729. msm_routing_put_listen_mixer),
  18730. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18731. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18732. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18733. msm_routing_put_listen_mixer),
  18734. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18735. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18736. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18737. msm_routing_put_listen_mixer),
  18738. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18739. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18740. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18741. msm_routing_put_listen_mixer),
  18742. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18743. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18744. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18745. msm_routing_put_listen_mixer),
  18746. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18747. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18748. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18749. msm_routing_put_listen_mixer),
  18750. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18751. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18752. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18753. msm_routing_put_listen_mixer),
  18754. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18755. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18756. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18757. msm_routing_put_listen_mixer),
  18758. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18759. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18760. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18761. msm_routing_put_listen_mixer),
  18762. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18763. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18764. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18765. msm_routing_put_listen_mixer),
  18766. };
  18767. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  18768. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18769. 0, 1, 0, msm_routing_get_switch_mixer,
  18770. msm_routing_put_switch_mixer);
  18771. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  18772. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18773. 0, 1, 0, msm_routing_get_switch_mixer,
  18774. msm_routing_put_switch_mixer);
  18775. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  18776. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18777. 0, 1, 0, msm_routing_get_switch_mixer,
  18778. msm_routing_put_switch_mixer);
  18779. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  18780. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18781. 0, 1, 0, msm_routing_get_switch_mixer,
  18782. msm_routing_put_switch_mixer);
  18783. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  18784. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18785. 0, 1, 0, msm_routing_get_switch_mixer,
  18786. msm_routing_put_switch_mixer);
  18787. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  18788. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18789. 0, 1, 0, msm_routing_get_switch_mixer,
  18790. msm_routing_put_switch_mixer);
  18791. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  18792. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18793. 0, 1, 0, msm_routing_get_switch_mixer,
  18794. msm_routing_put_switch_mixer);
  18795. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  18796. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18797. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  18798. msm_routing_put_fm_pcmrx_switch_mixer);
  18799. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  18800. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18801. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  18802. msm_routing_put_int0_mi2s_switch_mixer);
  18803. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  18804. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18805. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  18806. msm_routing_put_int4_mi2s_switch_mixer);
  18807. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  18808. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18809. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  18810. msm_routing_put_pri_mi2s_switch_mixer);
  18811. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  18812. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18813. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  18814. msm_routing_put_sec_mi2s_switch_mixer);
  18815. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  18816. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18817. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  18818. msm_routing_put_tert_mi2s_switch_mixer);
  18819. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  18820. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18821. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  18822. msm_routing_put_quat_mi2s_switch_mixer);
  18823. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  18824. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18825. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  18826. msm_routing_put_quin_mi2s_switch_mixer);
  18827. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  18828. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18829. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  18830. msm_routing_put_sen_mi2s_switch_mixer);
  18831. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  18832. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18833. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  18834. msm_routing_put_hfp_switch_mixer);
  18835. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  18836. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18837. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  18838. msm_routing_put_hfp_switch_mixer);
  18839. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  18840. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18841. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  18842. msm_routing_put_hfp_switch_mixer);
  18843. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  18844. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18845. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  18846. msm_routing_put_hfp_switch_mixer);
  18847. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  18848. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18849. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  18850. msm_routing_put_usb_switch_mixer);
  18851. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  18852. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18853. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  18854. msm_routing_a2dp_switch_mixer_put);
  18855. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  18856. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18857. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  18858. msm_routing_sco_switch_mixer_put);
  18859. static const struct soc_enum lsm_port_enum =
  18860. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  18861. static const char * const lsm_func_text[] = {
  18862. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  18863. };
  18864. static const struct soc_enum lsm_func_enum =
  18865. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  18866. static const struct snd_kcontrol_new lsm_controls[] = {
  18867. /* kcontrol of lsm_function */
  18868. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18869. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18870. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18871. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18872. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18873. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18874. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18875. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18876. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18877. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18878. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18879. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18880. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18881. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18882. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18883. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18884. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18885. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18886. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18887. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18888. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18889. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18890. /* kcontrol of lsm_port */
  18891. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  18892. msm_routing_lsm_port_get,
  18893. msm_routing_lsm_port_put),
  18894. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  18895. msm_routing_lsm_port_get,
  18896. msm_routing_lsm_port_put),
  18897. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  18898. msm_routing_lsm_port_get,
  18899. msm_routing_lsm_port_put),
  18900. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  18901. msm_routing_lsm_port_get,
  18902. msm_routing_lsm_port_put),
  18903. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  18904. msm_routing_lsm_port_get,
  18905. msm_routing_lsm_port_put),
  18906. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  18907. msm_routing_lsm_port_get,
  18908. msm_routing_lsm_port_put),
  18909. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  18910. msm_routing_lsm_port_get,
  18911. msm_routing_lsm_port_put),
  18912. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  18913. msm_routing_lsm_port_get,
  18914. msm_routing_lsm_port_put),
  18915. };
  18916. static const char * const aanc_slim_0_rx_text[] = {
  18917. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  18918. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  18919. };
  18920. static const struct soc_enum aanc_slim_0_rx_enum =
  18921. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  18922. aanc_slim_0_rx_text);
  18923. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  18924. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  18925. msm_routing_slim_0_rx_aanc_mux_get,
  18926. msm_routing_slim_0_rx_aanc_mux_put)
  18927. };
  18928. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  18929. struct snd_ctl_elem_value *ucontrol)
  18930. {
  18931. ucontrol->value.integer.value[0] = aanc_level;
  18932. return 0;
  18933. }
  18934. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  18935. struct snd_ctl_elem_value *ucontrol)
  18936. {
  18937. int ret = 0;
  18938. mutex_lock(&routing_lock);
  18939. aanc_level = ucontrol->value.integer.value[0];
  18940. pr_debug("%s: value: %ld\n",
  18941. __func__, ucontrol->value.integer.value[0]);
  18942. ret = afe_set_aanc_noise_level(aanc_level);
  18943. mutex_unlock(&routing_lock);
  18944. return ret;
  18945. }
  18946. static const struct snd_kcontrol_new aanc_noise_level[] = {
  18947. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  18948. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  18949. };
  18950. static int msm_routing_get_stereo_to_custom_stereo_control(
  18951. struct snd_kcontrol *kcontrol,
  18952. struct snd_ctl_elem_value *ucontrol)
  18953. {
  18954. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  18955. return 0;
  18956. }
  18957. static int msm_routing_put_stereo_to_custom_stereo_control(
  18958. struct snd_kcontrol *kcontrol,
  18959. struct snd_ctl_elem_value *ucontrol)
  18960. {
  18961. int flag = 0, i = 0, rc = 0, idx = 0;
  18962. int be_index = 0, port_id, topo_id;
  18963. unsigned int session_id = 0;
  18964. uint16_t op_FL_ip_FL_weight = 0;
  18965. uint16_t op_FL_ip_FR_weight = 0;
  18966. uint16_t op_FR_ip_FL_weight = 0;
  18967. uint16_t op_FR_ip_FR_weight = 0;
  18968. flag = ucontrol->value.integer.value[0];
  18969. pr_debug("%s E flag %d\n", __func__, flag);
  18970. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  18971. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  18972. __func__, is_custom_stereo_on, flag);
  18973. return 0;
  18974. }
  18975. is_custom_stereo_on = flag ? true : false;
  18976. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  18977. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  18978. port_id = msm_bedais[be_index].port_id;
  18979. if (!msm_bedais[be_index].active)
  18980. continue;
  18981. if ((port_id != SLIMBUS_0_RX) &&
  18982. (port_id != RT_PROXY_PORT_001_RX) &&
  18983. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  18984. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  18985. continue;
  18986. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  18987. MSM_FRONTEND_DAI_MM_SIZE) {
  18988. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  18989. LEGACY_PCM_MODE)
  18990. goto skip_send_custom_stereo;
  18991. session_id =
  18992. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  18993. if (is_custom_stereo_on) {
  18994. op_FL_ip_FL_weight =
  18995. Q14_GAIN_ZERO_POINT_FIVE;
  18996. op_FL_ip_FR_weight =
  18997. Q14_GAIN_ZERO_POINT_FIVE;
  18998. op_FR_ip_FL_weight =
  18999. Q14_GAIN_ZERO_POINT_FIVE;
  19000. op_FR_ip_FR_weight =
  19001. Q14_GAIN_ZERO_POINT_FIVE;
  19002. } else {
  19003. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  19004. op_FL_ip_FR_weight = 0;
  19005. op_FR_ip_FL_weight = 0;
  19006. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  19007. }
  19008. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19009. unsigned long copp =
  19010. session_copp_map[i]
  19011. [SESSION_TYPE_RX][be_index];
  19012. if (!test_bit(idx, &copp))
  19013. goto skip_send_custom_stereo;
  19014. topo_id = adm_get_topology_for_port_copp_idx(
  19015. msm_bedais[be_index].port_id, idx);
  19016. if (topo_id < 0)
  19017. pr_debug("%s:Err:custom stereo topo %d",
  19018. __func__, topo_id);
  19019. pr_debug("idx %d\n", idx);
  19020. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  19021. rc = msm_ds2_dap_set_custom_stereo_onoff
  19022. (msm_bedais[be_index].port_id,
  19023. idx, is_custom_stereo_on);
  19024. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  19025. rc = dolby_dap_set_custom_stereo_onoff(
  19026. msm_bedais[be_index].port_id,
  19027. idx, is_custom_stereo_on);
  19028. else
  19029. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  19030. (msm_bedais[be_index].port_id,
  19031. idx, session_id,
  19032. op_FL_ip_FL_weight,
  19033. op_FL_ip_FR_weight,
  19034. op_FR_ip_FL_weight,
  19035. op_FR_ip_FR_weight);
  19036. if (rc < 0)
  19037. skip_send_custom_stereo:
  19038. pr_err("%s: err setting custom stereo\n",
  19039. __func__);
  19040. }
  19041. }
  19042. }
  19043. return 0;
  19044. }
  19045. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  19046. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  19047. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  19048. msm_routing_put_stereo_to_custom_stereo_control),
  19049. };
  19050. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  19051. struct snd_ctl_elem_value *ucontrol)
  19052. {
  19053. return 0;
  19054. }
  19055. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  19056. struct snd_ctl_elem_value *ucontrol)
  19057. {
  19058. int i = 0, j;
  19059. int num_app_types = ucontrol->value.integer.value[i++];
  19060. pr_debug("%s\n", __func__);
  19061. memset(app_type_cfg, 0, MAX_APP_TYPES*
  19062. sizeof(struct msm_pcm_routing_app_type_data));
  19063. if (num_app_types > MAX_APP_TYPES) {
  19064. pr_err("%s: number of app types exceed the max supported\n",
  19065. __func__);
  19066. return -EINVAL;
  19067. }
  19068. for (j = 0; j < num_app_types; j++) {
  19069. app_type_cfg[j].app_type =
  19070. ucontrol->value.integer.value[i++];
  19071. app_type_cfg[j].sample_rate =
  19072. ucontrol->value.integer.value[i++];
  19073. app_type_cfg[j].bit_width =
  19074. ucontrol->value.integer.value[i++];
  19075. }
  19076. return 0;
  19077. }
  19078. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  19079. struct snd_ctl_elem_value *ucontrol)
  19080. {
  19081. int j, fe_id, be_id, port_type;
  19082. int ret = 0;
  19083. unsigned long copp;
  19084. struct msm_pcm_routing_bdai_data *bedai;
  19085. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  19086. SESSION_TYPE_RX;
  19087. int app_type = ucontrol->value.integer.value[1];
  19088. int gain = (ucontrol->value.integer.value[2] +
  19089. ucontrol->value.integer.value[3])/2;
  19090. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  19091. MSM_AFE_PORT_TYPE_TX;
  19092. mutex_lock(&routing_lock);
  19093. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  19094. if (is_be_dai_extproc(be_id))
  19095. continue;
  19096. bedai = &msm_bedais[be_id];
  19097. if (afe_get_port_type(bedai->port_id) != port_type)
  19098. continue;
  19099. if (!bedai->active)
  19100. continue;
  19101. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  19102. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  19103. continue;
  19104. if (app_type !=
  19105. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  19106. continue;
  19107. copp = session_copp_map[fe_id][dir][be_id];
  19108. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  19109. if (!test_bit(j, &copp))
  19110. continue;
  19111. ret |= adm_set_volume(bedai->port_id, j, gain);
  19112. }
  19113. }
  19114. }
  19115. mutex_unlock(&routing_lock);
  19116. return ret ? -EINVAL : 0;
  19117. }
  19118. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  19119. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  19120. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  19121. msm_routing_put_app_type_cfg_control),
  19122. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  19123. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  19124. };
  19125. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  19126. struct snd_ctl_elem_value *ucontrol)
  19127. {
  19128. int copp_idx, fe_id, be_id, port_type;
  19129. int ret = 0;
  19130. unsigned long copp;
  19131. struct msm_pcm_routing_bdai_data *bedai;
  19132. u8 *packed_params = NULL;
  19133. struct param_hdr_v3 param_hdr;
  19134. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  19135. sizeof(uint32_t));
  19136. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  19137. SESSION_TYPE_RX;
  19138. int app_type = ucontrol->value.integer.value[1];
  19139. int module_id = ucontrol->value.integer.value[2];
  19140. int instance_id = ucontrol->value.integer.value[3];
  19141. int param_id = ucontrol->value.integer.value[4];
  19142. int param_value = ucontrol->value.integer.value[5];
  19143. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  19144. MSM_AFE_PORT_TYPE_TX;
  19145. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  19146. __func__, app_type, module_id,
  19147. instance_id, param_id, param_value);
  19148. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  19149. if (!packed_params)
  19150. return -ENOMEM;
  19151. memset(&param_hdr, 0, sizeof(param_hdr));
  19152. param_hdr.module_id = module_id;
  19153. param_hdr.instance_id = instance_id;
  19154. param_hdr.param_id = param_id;
  19155. param_hdr.param_size = sizeof(uint32_t);
  19156. packed_param_size = 0;
  19157. mutex_lock(&routing_lock);
  19158. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  19159. if (is_be_dai_extproc(be_id))
  19160. continue;
  19161. bedai = &msm_bedais[be_id];
  19162. if (afe_get_port_type(bedai->port_id) != port_type)
  19163. continue;
  19164. if (!bedai->active)
  19165. continue;
  19166. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  19167. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  19168. continue;
  19169. if (app_type !=
  19170. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  19171. continue;
  19172. copp = session_copp_map[fe_id][dir][be_id];
  19173. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  19174. copp_idx++) {
  19175. if (!test_bit(copp_idx, &copp))
  19176. continue;
  19177. ret = q6common_pack_pp_params(packed_params,
  19178. &param_hdr,
  19179. (u8 *) &param_value,
  19180. &packed_param_size);
  19181. if (ret) {
  19182. pr_err("%s: Failed to pack params, error %d\n",
  19183. __func__, ret);
  19184. goto done;
  19185. }
  19186. ret = adm_set_pp_params(bedai->port_id,
  19187. copp_idx, NULL,
  19188. packed_params,
  19189. packed_param_size);
  19190. if (ret) {
  19191. pr_err("%s: Setting param failed with err=%d\n",
  19192. __func__, ret);
  19193. ret = -EINVAL;
  19194. goto done;
  19195. }
  19196. }
  19197. }
  19198. }
  19199. done:
  19200. mutex_unlock(&routing_lock);
  19201. kfree(packed_params);
  19202. return ret;
  19203. }
  19204. static const struct snd_kcontrol_new module_cfg_controls[] = {
  19205. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  19206. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  19207. };
  19208. static int msm_routing_get_lsm_app_type_cfg_control(
  19209. struct snd_kcontrol *kcontrol,
  19210. struct snd_ctl_elem_value *ucontrol)
  19211. {
  19212. int shift = ((struct soc_multi_mixer_control *)
  19213. kcontrol->private_value)->shift;
  19214. int i = 0, j = 0;
  19215. ucontrol->value.integer.value[i] = num_app_cfg_types;
  19216. for (j = 0; j < num_app_cfg_types; ++j) {
  19217. ucontrol->value.integer.value[++i] =
  19218. lsm_app_type_cfg[j].app_type;
  19219. ucontrol->value.integer.value[++i] =
  19220. lsm_app_type_cfg[j].sample_rate;
  19221. ucontrol->value.integer.value[++i] =
  19222. lsm_app_type_cfg[j].bit_width;
  19223. if (shift == 1)
  19224. ucontrol->value.integer.value[++i] =
  19225. lsm_app_type_cfg[j].num_out_channels;
  19226. }
  19227. return 0;
  19228. }
  19229. static int msm_routing_put_lsm_app_type_cfg_control(
  19230. struct snd_kcontrol *kcontrol,
  19231. struct snd_ctl_elem_value *ucontrol)
  19232. {
  19233. int shift = ((struct soc_multi_mixer_control *)
  19234. kcontrol->private_value)->shift;
  19235. int i = 0, j;
  19236. num_app_cfg_types = ucontrol->value.integer.value[i++];
  19237. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  19238. sizeof(struct msm_pcm_routing_app_type_data));
  19239. if (num_app_cfg_types > MAX_APP_TYPES) {
  19240. pr_err("%s: number of app types exceed the max supported\n",
  19241. __func__);
  19242. return -EINVAL;
  19243. }
  19244. for (j = 0; j < num_app_cfg_types; j++) {
  19245. lsm_app_type_cfg[j].app_type =
  19246. ucontrol->value.integer.value[i++];
  19247. lsm_app_type_cfg[j].sample_rate =
  19248. ucontrol->value.integer.value[i++];
  19249. lsm_app_type_cfg[j].bit_width =
  19250. ucontrol->value.integer.value[i++];
  19251. /* Shift of 1 indicates this is V2 mixer control */
  19252. if (shift == 1)
  19253. lsm_app_type_cfg[j].num_out_channels =
  19254. ucontrol->value.integer.value[i++];
  19255. }
  19256. return 0;
  19257. }
  19258. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  19259. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  19260. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  19261. msm_routing_put_lsm_app_type_cfg_control),
  19262. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  19263. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  19264. msm_routing_put_lsm_app_type_cfg_control),
  19265. };
  19266. static int msm_routing_get_use_ds1_or_ds2_control(
  19267. struct snd_kcontrol *kcontrol,
  19268. struct snd_ctl_elem_value *ucontrol)
  19269. {
  19270. ucontrol->value.integer.value[0] = is_ds2_on;
  19271. return 0;
  19272. }
  19273. static int msm_routing_put_use_ds1_or_ds2_control(
  19274. struct snd_kcontrol *kcontrol,
  19275. struct snd_ctl_elem_value *ucontrol)
  19276. {
  19277. is_ds2_on = ucontrol->value.integer.value[0];
  19278. return 0;
  19279. }
  19280. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  19281. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  19282. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  19283. msm_routing_put_use_ds1_or_ds2_control),
  19284. };
  19285. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  19286. struct snd_ctl_elem_value *ucontrol) {
  19287. int rc = 0;
  19288. int be_idx = 0;
  19289. char *param_value;
  19290. int *update_param_value;
  19291. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  19292. struct param_hdr_v3 param_hdr;
  19293. param_value = kzalloc(param_size, GFP_KERNEL);
  19294. if (!param_value)
  19295. return -ENOMEM;
  19296. memset(&param_hdr, 0, sizeof(param_hdr));
  19297. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  19298. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  19299. break;
  19300. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  19301. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  19302. param_hdr.instance_id = INSTANCE_ID_0;
  19303. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  19304. param_hdr.param_size = param_size;
  19305. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  19306. NULL, &param_hdr, (u8 *) param_value);
  19307. if (rc) {
  19308. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  19309. kfree(param_value);
  19310. return -EINVAL;
  19311. }
  19312. update_param_value = (int *)param_value;
  19313. ucontrol->value.integer.value[0] = update_param_value[0];
  19314. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  19315. __func__, update_param_value[0]);
  19316. }
  19317. kfree(param_value);
  19318. return 0;
  19319. }
  19320. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  19321. struct snd_ctl_elem_value *ucontrol)
  19322. {
  19323. voc_session_id = ucontrol->value.integer.value[0];
  19324. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  19325. return 0;
  19326. }
  19327. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  19328. struct snd_ctl_elem_value *ucontrol)
  19329. {
  19330. ucontrol->value.integer.value[0] = voc_session_id;
  19331. return 0;
  19332. }
  19333. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  19334. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  19335. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  19336. msm_voc_session_id_put),
  19337. };
  19338. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  19339. struct snd_ctl_elem_info *uinfo)
  19340. {
  19341. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19342. uinfo->count = sizeof(struct sound_focus_param);
  19343. return 0;
  19344. }
  19345. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  19346. struct snd_ctl_elem_value *ucontrol)
  19347. {
  19348. int ret = 0;
  19349. struct sound_focus_param soundFocusData;
  19350. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  19351. sizeof(struct sound_focus_param));
  19352. ret = voc_set_sound_focus(soundFocusData);
  19353. if (ret) {
  19354. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  19355. __func__, ret);
  19356. ret = -EINVAL;
  19357. }
  19358. return ret;
  19359. }
  19360. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  19361. struct snd_ctl_elem_value *ucontrol)
  19362. {
  19363. int ret = 0;
  19364. struct sound_focus_param soundFocusData;
  19365. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  19366. ret = voc_get_sound_focus(&soundFocusData);
  19367. if (ret) {
  19368. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  19369. __func__, ret);
  19370. ret = -EINVAL;
  19371. goto done;
  19372. }
  19373. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  19374. sizeof(struct sound_focus_param));
  19375. done:
  19376. return ret;
  19377. }
  19378. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  19379. struct snd_ctl_elem_info *uinfo)
  19380. {
  19381. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19382. uinfo->count = sizeof(struct source_tracking_param);
  19383. return 0;
  19384. }
  19385. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  19386. struct snd_ctl_elem_value *ucontrol)
  19387. {
  19388. int ret = 0;
  19389. struct source_tracking_param sourceTrackingData;
  19390. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  19391. ret = voc_get_source_tracking(&sourceTrackingData);
  19392. if (ret) {
  19393. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  19394. __func__, ret);
  19395. ret = -EINVAL;
  19396. goto done;
  19397. }
  19398. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  19399. sizeof(struct source_tracking_param));
  19400. done:
  19401. return ret;
  19402. }
  19403. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  19404. int *copp_idx)
  19405. {
  19406. int i, idx, be_idx;
  19407. int ret = 0;
  19408. unsigned long copp;
  19409. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  19410. ret = q6audio_validate_port(port_id);
  19411. if (ret < 0) {
  19412. pr_err("%s: port validation failed id 0x%x ret %d\n",
  19413. __func__, port_id, ret);
  19414. ret = -EINVAL;
  19415. goto done;
  19416. }
  19417. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19418. if (msm_bedais[be_idx].port_id == port_id)
  19419. break;
  19420. }
  19421. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19422. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  19423. ret = -EINVAL;
  19424. goto done;
  19425. }
  19426. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  19427. MSM_FRONTEND_DAI_MAX) {
  19428. if (!(is_mm_lsm_fe_id(i) &&
  19429. route_check_fe_id_adm_support(i)))
  19430. continue;
  19431. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19432. copp = session_copp_map[i]
  19433. [session_type][be_idx];
  19434. if (test_bit(idx, &copp))
  19435. break;
  19436. }
  19437. if (idx >= MAX_COPPS_PER_PORT)
  19438. continue;
  19439. else
  19440. break;
  19441. }
  19442. if (i >= MSM_FRONTEND_DAI_MAX) {
  19443. pr_debug("%s: Invalid FE, exiting\n", __func__);
  19444. ret = -EINVAL;
  19445. goto done;
  19446. }
  19447. *copp_idx = idx;
  19448. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  19449. done:
  19450. return ret;
  19451. }
  19452. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  19453. const char *prefix, int *port_id)
  19454. {
  19455. int ret = 0;
  19456. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  19457. /*
  19458. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  19459. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  19460. * and compare the string with the backend name to derive the port id.
  19461. */
  19462. if (!strcmp(kcontrol->id.name + strlen(prefix),
  19463. "SLIMBUS_0")) {
  19464. *port_id = SLIMBUS_0_TX;
  19465. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19466. "TERT_MI2S")) {
  19467. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  19468. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19469. "INT3_MI2S")) {
  19470. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  19471. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19472. "VA_CDC_DMA_TX_0")) {
  19473. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  19474. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19475. "TX_CDC_DMA_TX_3")) {
  19476. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  19477. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19478. "QUIN_TDM_TX_0")) {
  19479. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  19480. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19481. "PRIMARY_TDM")) {
  19482. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  19483. } else {
  19484. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  19485. __func__, kcontrol->id.name);
  19486. ret = -EINVAL;
  19487. goto done;
  19488. }
  19489. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  19490. __func__, kcontrol->id.name, *port_id);
  19491. done:
  19492. return ret;
  19493. }
  19494. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  19495. struct snd_ctl_elem_value *ucontrol)
  19496. {
  19497. int ret = 0;
  19498. struct sound_focus_param soundFocusData;
  19499. int port_id, copp_idx;
  19500. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19501. "Sound Focus Audio Tx ", &port_id);
  19502. if (ret != 0) {
  19503. pr_err("%s: Error in deriving port id, err=%d\n",
  19504. __func__, ret);
  19505. ret = -EINVAL;
  19506. goto done;
  19507. }
  19508. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19509. &copp_idx);
  19510. if (ret) {
  19511. pr_err("%s: Could not get copp idx for port_id=%d\n",
  19512. __func__, port_id);
  19513. ret = -EINVAL;
  19514. goto done;
  19515. }
  19516. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  19517. sizeof(struct sound_focus_param));
  19518. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  19519. if (ret) {
  19520. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  19521. __func__, ret);
  19522. ret = -EINVAL;
  19523. goto done;
  19524. }
  19525. done:
  19526. return ret;
  19527. }
  19528. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  19529. struct snd_ctl_elem_value *ucontrol)
  19530. {
  19531. int ret = 0;
  19532. struct sound_focus_param soundFocusData;
  19533. int port_id, copp_idx;
  19534. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19535. "Sound Focus Audio Tx ", &port_id);
  19536. if (ret) {
  19537. pr_err("%s: Error in deriving port id, err=%d\n",
  19538. __func__, ret);
  19539. ret = -EINVAL;
  19540. goto done;
  19541. }
  19542. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19543. &copp_idx);
  19544. if (ret) {
  19545. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  19546. __func__, port_id);
  19547. ret = -EINVAL;
  19548. goto done;
  19549. }
  19550. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  19551. if (ret) {
  19552. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  19553. __func__, ret);
  19554. ret = -EINVAL;
  19555. goto done;
  19556. }
  19557. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  19558. sizeof(struct sound_focus_param));
  19559. done:
  19560. return ret;
  19561. }
  19562. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  19563. struct snd_ctl_elem_value *ucontrol)
  19564. {
  19565. int ret = 0;
  19566. struct source_tracking_param sourceTrackingData;
  19567. int port_id, copp_idx;
  19568. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19569. "Source Tracking Audio Tx ", &port_id);
  19570. if (ret) {
  19571. pr_err("%s: Error in deriving port id, err=%d\n",
  19572. __func__, ret);
  19573. ret = -EINVAL;
  19574. goto done;
  19575. }
  19576. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19577. &copp_idx);
  19578. if (ret) {
  19579. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  19580. __func__, port_id);
  19581. ret = -EINVAL;
  19582. goto done;
  19583. }
  19584. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  19585. if (ret) {
  19586. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  19587. __func__, ret);
  19588. ret = -EINVAL;
  19589. goto done;
  19590. }
  19591. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  19592. sizeof(struct source_tracking_param));
  19593. done:
  19594. return ret;
  19595. }
  19596. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  19597. struct snd_ctl_elem_info *uinfo)
  19598. {
  19599. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19600. uinfo->count = sizeof(struct doa_tracking_mon_param);
  19601. return 0;
  19602. }
  19603. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  19604. struct snd_ctl_elem_value *ucontrol)
  19605. {
  19606. int ret = 0;
  19607. struct doa_tracking_mon_param doa_tracking_data;
  19608. int port_id, copp_idx;
  19609. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  19610. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19611. "Doa Tracking Monitor Listen ", &port_id);
  19612. if (ret) {
  19613. pr_err("%s: Error in deriving port id, err=%d\n",
  19614. __func__, ret);
  19615. ret = -EINVAL;
  19616. goto done;
  19617. }
  19618. /*
  19619. * If copp id exists for given port id, query adm to get doa data.
  19620. * Else query afe for doa tracking params.
  19621. * This is to support in cases where LSM directly connects to
  19622. * AFE for FFNS.
  19623. */
  19624. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19625. &copp_idx);
  19626. if (!ret)
  19627. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  19628. &doa_tracking_data);
  19629. else
  19630. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  19631. if (ret) {
  19632. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  19633. __func__, ret);
  19634. ret = -EINVAL;
  19635. goto done;
  19636. }
  19637. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  19638. sizeof(struct doa_tracking_mon_param));
  19639. done:
  19640. return ret;
  19641. }
  19642. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  19643. {
  19644. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19645. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19646. .name = "Sound Focus Voice Tx SLIMBUS_0",
  19647. .info = msm_sound_focus_info,
  19648. .get = msm_voice_sound_focus_get,
  19649. .put = msm_voice_sound_focus_put,
  19650. },
  19651. {
  19652. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19653. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19654. .name = "Source Tracking Voice Tx SLIMBUS_0",
  19655. .info = msm_source_tracking_info,
  19656. .get = msm_voice_source_tracking_get,
  19657. },
  19658. {
  19659. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19660. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19661. .name = "Sound Focus Audio Tx SLIMBUS_0",
  19662. .info = msm_sound_focus_info,
  19663. .get = msm_audio_sound_focus_get,
  19664. .put = msm_audio_sound_focus_put,
  19665. },
  19666. {
  19667. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19668. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19669. .name = "Source Tracking Audio Tx SLIMBUS_0",
  19670. .info = msm_source_tracking_info,
  19671. .get = msm_audio_source_tracking_get,
  19672. },
  19673. {
  19674. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19675. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19676. .name = "Sound Focus Voice Tx TERT_MI2S",
  19677. .info = msm_sound_focus_info,
  19678. .get = msm_voice_sound_focus_get,
  19679. .put = msm_voice_sound_focus_put,
  19680. },
  19681. {
  19682. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19683. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19684. .name = "Source Tracking Voice Tx TERT_MI2S",
  19685. .info = msm_source_tracking_info,
  19686. .get = msm_voice_source_tracking_get,
  19687. },
  19688. {
  19689. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19690. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19691. .name = "Sound Focus Audio Tx TERT_MI2S",
  19692. .info = msm_sound_focus_info,
  19693. .get = msm_audio_sound_focus_get,
  19694. .put = msm_audio_sound_focus_put,
  19695. },
  19696. {
  19697. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19698. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19699. .name = "Source Tracking Audio Tx TERT_MI2S",
  19700. .info = msm_source_tracking_info,
  19701. .get = msm_audio_source_tracking_get,
  19702. },
  19703. {
  19704. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19705. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19706. .name = "Sound Focus Voice Tx INT3_MI2S",
  19707. .info = msm_sound_focus_info,
  19708. .get = msm_voice_sound_focus_get,
  19709. .put = msm_voice_sound_focus_put,
  19710. },
  19711. {
  19712. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19713. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19714. .name = "Source Tracking Voice Tx INT3_MI2S",
  19715. .info = msm_source_tracking_info,
  19716. .get = msm_voice_source_tracking_get,
  19717. },
  19718. {
  19719. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19720. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19721. .name = "Sound Focus Audio Tx INT3_MI2S",
  19722. .info = msm_sound_focus_info,
  19723. .get = msm_audio_sound_focus_get,
  19724. .put = msm_audio_sound_focus_put,
  19725. },
  19726. {
  19727. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19728. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19729. .name = "Source Tracking Audio Tx INT3_MI2S",
  19730. .info = msm_source_tracking_info,
  19731. .get = msm_audio_source_tracking_get,
  19732. },
  19733. {
  19734. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19735. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19736. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  19737. .info = msm_sound_focus_info,
  19738. .get = msm_voice_sound_focus_get,
  19739. .put = msm_voice_sound_focus_put,
  19740. },
  19741. {
  19742. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19743. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19744. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  19745. .info = msm_source_tracking_info,
  19746. .get = msm_voice_source_tracking_get,
  19747. },
  19748. {
  19749. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19750. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19751. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  19752. .info = msm_sound_focus_info,
  19753. .get = msm_audio_sound_focus_get,
  19754. .put = msm_audio_sound_focus_put,
  19755. },
  19756. {
  19757. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19758. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19759. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  19760. .info = msm_source_tracking_info,
  19761. .get = msm_audio_source_tracking_get,
  19762. },
  19763. {
  19764. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19765. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19766. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  19767. .info = msm_sound_focus_info,
  19768. .get = msm_voice_sound_focus_get,
  19769. .put = msm_voice_sound_focus_put,
  19770. },
  19771. {
  19772. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19773. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19774. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  19775. .info = msm_source_tracking_info,
  19776. .get = msm_voice_source_tracking_get,
  19777. },
  19778. {
  19779. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19780. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19781. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  19782. .info = msm_sound_focus_info,
  19783. .get = msm_audio_sound_focus_get,
  19784. .put = msm_audio_sound_focus_put,
  19785. },
  19786. {
  19787. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19788. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19789. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  19790. .info = msm_source_tracking_info,
  19791. .get = msm_audio_source_tracking_get,
  19792. },
  19793. {
  19794. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19795. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19796. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  19797. .info = msm_sound_focus_info,
  19798. .get = msm_voice_sound_focus_get,
  19799. .put = msm_voice_sound_focus_put,
  19800. },
  19801. {
  19802. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19803. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19804. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  19805. .info = msm_source_tracking_info,
  19806. .get = msm_voice_source_tracking_get,
  19807. },
  19808. {
  19809. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19810. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19811. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  19812. .info = msm_sound_focus_info,
  19813. .get = msm_audio_sound_focus_get,
  19814. .put = msm_audio_sound_focus_put,
  19815. },
  19816. {
  19817. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19818. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19819. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  19820. .info = msm_source_tracking_info,
  19821. .get = msm_audio_source_tracking_get,
  19822. },
  19823. {
  19824. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19825. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19826. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  19827. .info = msm_sound_focus_info,
  19828. .get = msm_audio_sound_focus_get,
  19829. .put = msm_audio_sound_focus_put,
  19830. },
  19831. {
  19832. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19833. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19834. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  19835. .info = msm_source_tracking_info,
  19836. .get = msm_audio_source_tracking_get,
  19837. },
  19838. {
  19839. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19840. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19841. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  19842. .info = msm_doa_tracking_mon_info,
  19843. .get = msm_doa_tracking_mon_get,
  19844. },
  19845. };
  19846. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  19847. struct snd_ctl_elem_value *ucontrol)
  19848. {
  19849. int ret = 0;
  19850. int item;
  19851. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  19852. pr_debug("%s item is %d\n", __func__,
  19853. ucontrol->value.enumerated.item[0]);
  19854. mutex_lock(&routing_lock);
  19855. item = ucontrol->value.enumerated.item[0];
  19856. if (item < e->items) {
  19857. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  19858. __func__, e->shift_l, e->values[item]);
  19859. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  19860. e->values[item] < MSM_BACKEND_DAI_MAX)
  19861. /* Enable feedback TX path */
  19862. ret = afe_spk_prot_feed_back_cfg(
  19863. msm_bedais[e->values[item]].port_id,
  19864. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  19865. else {
  19866. pr_debug("%s values are out of range item %d\n",
  19867. __func__, e->values[item]);
  19868. /* Disable feedback TX path */
  19869. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  19870. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  19871. else
  19872. ret = -EINVAL;
  19873. }
  19874. } else {
  19875. pr_err("%s item value is out of range item\n", __func__);
  19876. ret = -EINVAL;
  19877. }
  19878. mutex_unlock(&routing_lock);
  19879. return ret;
  19880. }
  19881. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  19882. struct snd_ctl_elem_value *ucontrol)
  19883. {
  19884. int ret = 0;
  19885. int item;
  19886. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  19887. pr_debug("%s item is %d\n", __func__,
  19888. ucontrol->value.enumerated.item[0]);
  19889. mutex_lock(&routing_lock);
  19890. item = ucontrol->value.enumerated.item[0];
  19891. if (item < e->items) {
  19892. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  19893. __func__, e->shift_l, e->values[item]);
  19894. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  19895. e->values[item] < MSM_BACKEND_DAI_MAX)
  19896. /* Enable feedback TX path */
  19897. ret = afe_spk_prot_feed_back_cfg(
  19898. msm_bedais[e->values[item]].port_id,
  19899. msm_bedais[e->shift_l].port_id,
  19900. 1, 1, 1);
  19901. else {
  19902. pr_debug("%s values are out of range item %d\n",
  19903. __func__, e->values[item]);
  19904. /* Disable feedback TX path */
  19905. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  19906. ret = afe_spk_prot_feed_back_cfg(0,
  19907. 0, 0, 0, 0);
  19908. else
  19909. ret = -EINVAL;
  19910. }
  19911. } else {
  19912. pr_err("%s item value is out of range item\n", __func__);
  19913. ret = -EINVAL;
  19914. }
  19915. mutex_unlock(&routing_lock);
  19916. return ret;
  19917. }
  19918. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  19919. struct snd_ctl_elem_value *ucontrol)
  19920. {
  19921. pr_debug("%s\n", __func__);
  19922. return 0;
  19923. }
  19924. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  19925. struct snd_ctl_elem_value *ucontrol)
  19926. {
  19927. pr_debug("%s\n", __func__);
  19928. ucontrol->value.enumerated.item[0] = 0;
  19929. return 0;
  19930. }
  19931. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  19932. "ZERO", "SLIM4_TX"
  19933. };
  19934. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  19935. "ZERO", "SLIM4_TX"
  19936. };
  19937. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  19938. "ZERO", "WSA_CDC_DMA_TX_0"
  19939. };
  19940. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  19941. "ZERO", "WSA_CDC_DMA_TX_0"
  19942. };
  19943. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  19944. "ZERO", "SENARY_TX"
  19945. };
  19946. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  19947. "ZERO", "INT5_MI2S_TX"
  19948. };
  19949. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  19950. "ZERO", "INT5_MI2S_TX"
  19951. };
  19952. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  19953. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  19954. };
  19955. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  19956. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  19957. };
  19958. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  19959. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  19960. };
  19961. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  19962. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  19963. };
  19964. static const int mi2s_rx_vi_fb_tx_value[] = {
  19965. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  19966. };
  19967. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  19968. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  19969. };
  19970. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  19971. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  19972. };
  19973. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  19974. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  19975. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  19976. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  19977. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  19978. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  19979. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  19980. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  19981. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  19982. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  19983. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  19984. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  19985. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  19986. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  19987. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  19988. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  19989. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  19990. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  19991. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  19992. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  19993. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  19994. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  19995. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  19996. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  19997. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  19998. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  19999. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  20000. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  20001. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  20002. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  20003. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  20004. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  20005. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  20006. spkr_prot_put_vi_lch_port);
  20007. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  20008. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  20009. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  20010. spkr_prot_put_vi_rch_port);
  20011. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  20012. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  20013. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  20014. spkr_prot_put_vi_lch_port);
  20015. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  20016. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  20017. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  20018. spkr_prot_put_vi_rch_port);
  20019. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  20020. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  20021. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  20022. spkr_prot_put_vi_lch_port);
  20023. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  20024. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  20025. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  20026. spkr_prot_put_vi_lch_port);
  20027. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  20028. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  20029. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  20030. spkr_prot_put_vi_rch_port);
  20031. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  20032. /* Frontend AIF */
  20033. /* Widget name equals to Front-End DAI name<Need confirmation>,
  20034. * Stream name must contains substring of front-end dai name
  20035. */
  20036. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  20037. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  20038. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  20039. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  20040. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  20041. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  20042. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  20043. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  20044. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  20045. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  20046. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  20047. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  20048. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  20049. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  20050. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  20051. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  20052. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  20053. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  20054. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  20055. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  20056. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  20057. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  20058. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  20059. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  20060. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  20061. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  20062. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  20063. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  20064. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  20065. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  20066. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  20067. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  20068. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  20069. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  20070. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  20071. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  20072. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  20073. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  20074. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  20075. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  20076. "VoiceMMode1 Playback", 0, 0, 0, 0),
  20077. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  20078. "VoiceMMode1 Capture", 0, 0, 0, 0),
  20079. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  20080. "VoiceMMode2 Playback", 0, 0, 0, 0),
  20081. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  20082. "VoiceMMode2 Capture", 0, 0, 0, 0),
  20083. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  20084. 0, 0, 0, 0),
  20085. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  20086. 0, 0, 0, 0),
  20087. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  20088. 0, 0, 0, 0),
  20089. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  20090. 0, 0, 0, 0),
  20091. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  20092. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  20093. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  20094. 0, 0, 0, 0),
  20095. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  20096. 0, 0, 0, 0),
  20097. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  20098. 0, 0, 0, 0),
  20099. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  20100. 0, 0, 0, 0),
  20101. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  20102. 0, 0, 0, 0),
  20103. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  20104. 0, 0, 0, 0),
  20105. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  20106. 0, 0, 0, 0),
  20107. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  20108. 0, 0, 0, 0),
  20109. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  20110. 0, 0, 0, 0),
  20111. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  20112. 0, 0, 0, 0),
  20113. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  20114. 0, 0, 0, 0),
  20115. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  20116. 0, 0, 0, 0),
  20117. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  20118. 0, 0, 0, 0),
  20119. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  20120. 0, 0, 0, 0),
  20121. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  20122. 0, 0, 0, 0),
  20123. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  20124. 0, 0, 0, 0),
  20125. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  20126. 0, 0, 0, 0),
  20127. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  20128. 0, 0, 0, 0),
  20129. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  20130. 0, 0, 0, 0),
  20131. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  20132. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  20133. 0, 0, 0, 0),
  20134. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  20135. "INT0 MI2S_RX Hostless Playback",
  20136. 0, 0, 0, 0),
  20137. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  20138. "INT4 MI2S_RX Hostless Playback",
  20139. 0, 0, 0, 0),
  20140. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  20141. "Primary MI2S_RX Hostless Playback",
  20142. 0, 0, 0, 0),
  20143. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  20144. "Secondary MI2S_RX Hostless Playback",
  20145. 0, 0, 0, 0),
  20146. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  20147. "Tertiary MI2S_RX Hostless Playback",
  20148. 0, 0, 0, 0),
  20149. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  20150. "Quaternary MI2S_RX Hostless Playback",
  20151. 0, 0, 0, 0),
  20152. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  20153. "Quinary MI2S_RX Hostless Playback",
  20154. 0, 0, 0, 0),
  20155. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  20156. "Senary MI2S_RX Hostless Playback",
  20157. 0, 0, 0, 0),
  20158. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  20159. 0, 0, 0, 0),
  20160. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  20161. 0, 0, 0, 0),
  20162. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  20163. 0, 0, 0, 0),
  20164. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  20165. 0, 0, 0, 0),
  20166. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  20167. 0, 0, 0, 0),
  20168. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  20169. "INT3 MI2S_TX Hostless Capture",
  20170. 0, 0, 0, 0),
  20171. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  20172. "Tertiary MI2S_TX Hostless Capture",
  20173. 0, 0, 0, 0),
  20174. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  20175. "Secondary MI2S_TX Hostless Capture",
  20176. 0, 0, 0, 0),
  20177. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  20178. "Primary MI2S_TX Hostless Capture",
  20179. 0, 0, 0, 0),
  20180. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  20181. 0, 0, 0, 0),
  20182. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  20183. 0, 0, 0, 0),
  20184. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  20185. "Quaternary MI2S_TX Hostless Capture",
  20186. 0, 0, 0, 0),
  20187. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  20188. "Quinary MI2S_TX Hostless Capture",
  20189. 0, 0, 0, 0),
  20190. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  20191. "Senary MI2S_TX Hostless Capture",
  20192. 0, 0, 0, 0),
  20193. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  20194. "Primary TDM0 Hostless Playback",
  20195. 0, 0, 0, 0),
  20196. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  20197. "Primary TDM0 Hostless Capture",
  20198. 0, 0, 0, 0),
  20199. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  20200. "Primary TDM1 Hostless Playback",
  20201. 0, 0, 0, 0),
  20202. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  20203. "Primary TDM1 Hostless Capture",
  20204. 0, 0, 0, 0),
  20205. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  20206. "Primary TDM2 Hostless Playback",
  20207. 0, 0, 0, 0),
  20208. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  20209. "Primary TDM2 Hostless Capture",
  20210. 0, 0, 0, 0),
  20211. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  20212. "Primary TDM3 Hostless Playback",
  20213. 0, 0, 0, 0),
  20214. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  20215. "Primary TDM3 Hostless Capture",
  20216. 0, 0, 0, 0),
  20217. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  20218. "Primary TDM4 Hostless Playback",
  20219. 0, 0, 0, 0),
  20220. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  20221. "Primary TDM4 Hostless Capture",
  20222. 0, 0, 0, 0),
  20223. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  20224. "Primary TDM5 Hostless Playback",
  20225. 0, 0, 0, 0),
  20226. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  20227. "Primary TDM5 Hostless Capture",
  20228. 0, 0, 0, 0),
  20229. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  20230. "Primary TDM6 Hostless Playback",
  20231. 0, 0, 0, 0),
  20232. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  20233. "Primary TDM6 Hostless Capture",
  20234. 0, 0, 0, 0),
  20235. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  20236. "Primary TDM7 Hostless Playback",
  20237. 0, 0, 0, 0),
  20238. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  20239. "Primary TDM7 Hostless Capture",
  20240. 0, 0, 0, 0),
  20241. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  20242. "Secondary TDM0 Hostless Playback",
  20243. 0, 0, 0, 0),
  20244. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  20245. "Secondary TDM0 Hostless Capture",
  20246. 0, 0, 0, 0),
  20247. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  20248. "Secondary TDM1 Hostless Playback",
  20249. 0, 0, 0, 0),
  20250. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  20251. "Secondary TDM1 Hostless Capture",
  20252. 0, 0, 0, 0),
  20253. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  20254. "Secondary TDM2 Hostless Playback",
  20255. 0, 0, 0, 0),
  20256. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  20257. "Secondary TDM2 Hostless Capture",
  20258. 0, 0, 0, 0),
  20259. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  20260. "Secondary TDM3 Hostless Playback",
  20261. 0, 0, 0, 0),
  20262. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  20263. "Secondary TDM3 Hostless Capture",
  20264. 0, 0, 0, 0),
  20265. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  20266. "Secondary TDM4 Hostless Playback",
  20267. 0, 0, 0, 0),
  20268. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  20269. "Secondary TDM4 Hostless Capture",
  20270. 0, 0, 0, 0),
  20271. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  20272. "Secondary TDM5 Hostless Playback",
  20273. 0, 0, 0, 0),
  20274. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  20275. "Secondary TDM5 Hostless Capture",
  20276. 0, 0, 0, 0),
  20277. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  20278. "Secondary TDM6 Hostless Playback",
  20279. 0, 0, 0, 0),
  20280. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  20281. "Secondary TDM6 Hostless Capture",
  20282. 0, 0, 0, 0),
  20283. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  20284. "Secondary TDM7 Hostless Playback",
  20285. 0, 0, 0, 0),
  20286. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  20287. "Secondary TDM7 Hostless Capture",
  20288. 0, 0, 0, 0),
  20289. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  20290. "Tertiary TDM0 Hostless Playback",
  20291. 0, 0, 0, 0),
  20292. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  20293. "Tertiary TDM0 Hostless Capture",
  20294. 0, 0, 0, 0),
  20295. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  20296. "Tertiary TDM1 Hostless Playback",
  20297. 0, 0, 0, 0),
  20298. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  20299. "Tertiary TDM1 Hostless Capture",
  20300. 0, 0, 0, 0),
  20301. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  20302. "Tertiary TDM2 Hostless Playback",
  20303. 0, 0, 0, 0),
  20304. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  20305. "Tertiary TDM2 Hostless Capture",
  20306. 0, 0, 0, 0),
  20307. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  20308. "Tertiary TDM3 Hostless Playback",
  20309. 0, 0, 0, 0),
  20310. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  20311. "Tertiary TDM3 Hostless Capture",
  20312. 0, 0, 0, 0),
  20313. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  20314. "Tertiary TDM4 Hostless Playback",
  20315. 0, 0, 0, 0),
  20316. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  20317. "Tertiary TDM4 Hostless Capture",
  20318. 0, 0, 0, 0),
  20319. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  20320. "Tertiary TDM5 Hostless Playback",
  20321. 0, 0, 0, 0),
  20322. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  20323. "Tertiary TDM5 Hostless Capture",
  20324. 0, 0, 0, 0),
  20325. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  20326. "Tertiary TDM6 Hostless Playback",
  20327. 0, 0, 0, 0),
  20328. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  20329. "Tertiary TDM6 Hostless Capture",
  20330. 0, 0, 0, 0),
  20331. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  20332. "Tertiary TDM7 Hostless Playback",
  20333. 0, 0, 0, 0),
  20334. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  20335. "Tertiary TDM7 Hostless Capture",
  20336. 0, 0, 0, 0),
  20337. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  20338. "Quaternary TDM0 Hostless Playback",
  20339. 0, 0, 0, 0),
  20340. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  20341. "Quaternary TDM0 Hostless Capture",
  20342. 0, 0, 0, 0),
  20343. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  20344. "Quaternary TDM1 Hostless Playback",
  20345. 0, 0, 0, 0),
  20346. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  20347. "Quaternary TDM1 Hostless Capture",
  20348. 0, 0, 0, 0),
  20349. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  20350. "Quaternary TDM2 Hostless Playback",
  20351. 0, 0, 0, 0),
  20352. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  20353. "Quaternary TDM2 Hostless Capture",
  20354. 0, 0, 0, 0),
  20355. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  20356. "Quaternary TDM3 Hostless Playback",
  20357. 0, 0, 0, 0),
  20358. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  20359. "Quaternary TDM3 Hostless Capture",
  20360. 0, 0, 0, 0),
  20361. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  20362. "Quaternary TDM4 Hostless Playback",
  20363. 0, 0, 0, 0),
  20364. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  20365. "Quaternary TDM4 Hostless Capture",
  20366. 0, 0, 0, 0),
  20367. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  20368. "Quaternary TDM5 Hostless Playback",
  20369. 0, 0, 0, 0),
  20370. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  20371. "Quaternary TDM5 Hostless Capture",
  20372. 0, 0, 0, 0),
  20373. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  20374. "Quaternary TDM6 Hostless Playback",
  20375. 0, 0, 0, 0),
  20376. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  20377. "Quaternary TDM6 Hostless Capture",
  20378. 0, 0, 0, 0),
  20379. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  20380. "Quaternary TDM7 Hostless Playback",
  20381. 0, 0, 0, 0),
  20382. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  20383. "Quaternary TDM7 Hostless Capture",
  20384. 0, 0, 0, 0),
  20385. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  20386. "Quinary TDM0 Hostless Playback",
  20387. 0, 0, 0, 0),
  20388. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  20389. "Quinary TDM0 Hostless Capture",
  20390. 0, 0, 0, 0),
  20391. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  20392. "Quinary TDM1 Hostless Playback",
  20393. 0, 0, 0, 0),
  20394. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  20395. "Quinary TDM1 Hostless Capture",
  20396. 0, 0, 0, 0),
  20397. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  20398. "Quinary TDM2 Hostless Playback",
  20399. 0, 0, 0, 0),
  20400. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  20401. "Quinary TDM2 Hostless Capture",
  20402. 0, 0, 0, 0),
  20403. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  20404. "Quinary TDM3 Hostless Playback",
  20405. 0, 0, 0, 0),
  20406. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  20407. "Quinary TDM3 Hostless Capture",
  20408. 0, 0, 0, 0),
  20409. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  20410. "Quinary TDM4 Hostless Playback",
  20411. 0, 0, 0, 0),
  20412. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  20413. "Quinary TDM4 Hostless Capture",
  20414. 0, 0, 0, 0),
  20415. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  20416. "Quinary TDM5 Hostless Playback",
  20417. 0, 0, 0, 0),
  20418. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  20419. "Quinary TDM5 Hostless Capture",
  20420. 0, 0, 0, 0),
  20421. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  20422. "Quinary TDM6 Hostless Playback",
  20423. 0, 0, 0, 0),
  20424. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  20425. "Quinary TDM6 Hostless Capture",
  20426. 0, 0, 0, 0),
  20427. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  20428. "Quinary TDM7 Hostless Playback",
  20429. 0, 0, 0, 0),
  20430. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  20431. "Quinary TDM7 Hostless Capture",
  20432. 0, 0, 0, 0),
  20433. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  20434. "Senary TDM0 Hostless Playback",
  20435. 0, 0, 0, 0),
  20436. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  20437. "Senary TDM0 Hostless Capture",
  20438. 0, 0, 0, 0),
  20439. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  20440. "Senary TDM1 Hostless Playback",
  20441. 0, 0, 0, 0),
  20442. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  20443. "Senary TDM1 Hostless Capture",
  20444. 0, 0, 0, 0),
  20445. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  20446. "Senary TDM2 Hostless Playback",
  20447. 0, 0, 0, 0),
  20448. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  20449. "Senary TDM2 Hostless Capture",
  20450. 0, 0, 0, 0),
  20451. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  20452. "Senary TDM3 Hostless Playback",
  20453. 0, 0, 0, 0),
  20454. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  20455. "Senary TDM3 Hostless Capture",
  20456. 0, 0, 0, 0),
  20457. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  20458. "Senary TDM4 Hostless Playback",
  20459. 0, 0, 0, 0),
  20460. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  20461. "Senary TDM4 Hostless Capture",
  20462. 0, 0, 0, 0),
  20463. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  20464. "Senary TDM5 Hostless Playback",
  20465. 0, 0, 0, 0),
  20466. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  20467. "Senary TDM5 Hostless Capture",
  20468. 0, 0, 0, 0),
  20469. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  20470. "Senary TDM6 Hostless Playback",
  20471. 0, 0, 0, 0),
  20472. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  20473. "Senary TDM6 Hostless Capture",
  20474. 0, 0, 0, 0),
  20475. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  20476. "Senary TDM7 Hostless Playback",
  20477. 0, 0, 0, 0),
  20478. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  20479. "Senary TDM7 Hostless Capture",
  20480. 0, 0, 0, 0),
  20481. /* LSM */
  20482. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  20483. 0, 0, 0, 0),
  20484. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  20485. 0, 0, 0, 0),
  20486. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  20487. 0, 0, 0, 0),
  20488. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  20489. 0, 0, 0, 0),
  20490. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  20491. 0, 0, 0, 0),
  20492. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  20493. 0, 0, 0, 0),
  20494. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  20495. 0, 0, 0, 0),
  20496. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  20497. 0, 0, 0, 0),
  20498. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  20499. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  20500. /* Backend AIF */
  20501. /* Stream name equals to backend dai link stream name */
  20502. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  20503. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  20504. 0, 0, 0, 0),
  20505. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  20506. 0, 0, 0, 0),
  20507. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  20508. 0, 0, 0, 0),
  20509. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  20510. 0, 0, 0, 0),
  20511. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  20512. 0, 0, 0, 0),
  20513. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  20514. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  20515. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  20516. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  20517. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  20518. 0, 0, 0, 0),
  20519. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  20520. 0, 0, 0, 0),
  20521. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  20522. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  20523. 0, 0, 0, 0),
  20524. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  20525. 0, 0, 0, 0),
  20526. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  20527. 0, 0, 0, 0),
  20528. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  20529. "Secondary MI2S Playback SD1",
  20530. 0, 0, 0, 0),
  20531. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  20532. 0, 0, 0, 0),
  20533. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  20534. 0, 0, 0, 0),
  20535. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  20536. 0, 0, 0, 0),
  20537. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  20538. 0, 0, 0, 0),
  20539. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  20540. 0, 0, 0, 0),
  20541. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  20542. 0, 0, 0, 0),
  20543. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  20544. 0, 0, 0, 0),
  20545. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  20546. 0, 0, 0, 0),
  20547. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  20548. 0, 0, 0, 0),
  20549. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  20550. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  20551. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  20552. 0, 0, 0, 0),
  20553. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  20554. 0, 0, 0, 0),
  20555. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  20556. 0, 0, 0, 0),
  20557. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  20558. 0, 0, 0, 0),
  20559. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  20560. 0, 0, 0, 0),
  20561. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  20562. 0, 0, 0, 0),
  20563. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  20564. 0, 0, 0, 0),
  20565. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  20566. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  20567. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  20568. 0, 0, 0, 0),
  20569. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  20570. 0, 0, 0, 0),
  20571. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  20572. 0, 0, 0, 0),
  20573. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  20574. 0, 0, 0, 0),
  20575. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  20576. 0, 0, 0, 0),
  20577. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  20578. 0, 0, 0, 0),
  20579. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  20580. 0, 0, 0, 0),
  20581. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  20582. 0, 0, 0, 0),
  20583. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  20584. 0, 0, 0, 0),
  20585. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  20586. 0, 0, 0, 0),
  20587. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  20588. 0, 0, 0, 0),
  20589. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  20590. 0, 0, 0, 0),
  20591. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  20592. 0, 0, 0, 0),
  20593. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  20594. 0, 0, 0, 0),
  20595. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  20596. 0, 0, 0, 0),
  20597. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  20598. 0, 0, 0, 0),
  20599. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  20600. 0, 0, 0, 0),
  20601. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  20602. 0, 0, 0, 0),
  20603. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  20604. 0, 0, 0, 0),
  20605. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  20606. 0, 0, 0, 0),
  20607. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  20608. 0, 0, 0, 0),
  20609. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  20610. 0, 0, 0, 0),
  20611. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  20612. 0, 0, 0, 0),
  20613. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  20614. 0, 0, 0, 0),
  20615. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  20616. 0, 0, 0, 0),
  20617. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  20618. 0, 0, 0, 0),
  20619. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  20620. 0, 0, 0, 0),
  20621. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  20622. 0, 0, 0, 0),
  20623. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  20624. 0, 0, 0, 0),
  20625. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  20626. 0, 0, 0, 0),
  20627. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  20628. 0, 0, 0, 0),
  20629. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  20630. 0, 0, 0, 0),
  20631. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  20632. 0, 0, 0, 0),
  20633. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  20634. 0, 0, 0, 0),
  20635. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  20636. 0, 0, 0, 0),
  20637. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  20638. 0, 0, 0, 0),
  20639. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  20640. 0, 0, 0, 0),
  20641. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  20642. 0, 0, 0, 0),
  20643. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  20644. 0, 0, 0, 0),
  20645. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  20646. 0, 0, 0, 0),
  20647. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  20648. 0, 0, 0, 0),
  20649. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  20650. 0, 0, 0, 0),
  20651. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  20652. 0, 0, 0, 0),
  20653. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  20654. 0, 0, 0, 0),
  20655. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  20656. 0, 0, 0, 0),
  20657. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  20658. 0, 0, 0, 0),
  20659. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  20660. 0, 0, 0, 0),
  20661. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  20662. 0, 0, 0, 0),
  20663. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  20664. 0, 0, 0, 0),
  20665. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  20666. 0, 0, 0, 0),
  20667. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  20668. 0, 0, 0, 0),
  20669. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  20670. 0, 0, 0, 0),
  20671. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  20672. 0, 0, 0, 0),
  20673. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  20674. 0, 0, 0, 0),
  20675. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  20676. 0, 0, 0, 0),
  20677. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  20678. 0, 0, 0, 0),
  20679. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  20680. 0, 0, 0, 0),
  20681. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  20682. 0, 0, 0, 0),
  20683. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  20684. 0, 0, 0, 0),
  20685. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  20686. 0, 0, 0, 0),
  20687. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  20688. 0, 0, 0, 0),
  20689. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  20690. 0, 0, 0, 0),
  20691. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  20692. 0, 0, 0, 0),
  20693. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  20694. 0, 0, 0, 0),
  20695. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  20696. 0, 0, 0, 0),
  20697. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  20698. 0, 0, 0, 0),
  20699. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  20700. 0, 0, 0, 0),
  20701. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  20702. 0, 0, 0, 0),
  20703. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  20704. 0, 0, 0, 0),
  20705. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  20706. 0, 0, 0, 0),
  20707. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  20708. 0, 0, 0, 0),
  20709. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  20710. 0, 0, 0, 0),
  20711. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  20712. 0, 0, 0, 0),
  20713. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  20714. 0, 0, 0, 0),
  20715. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  20716. 0, 0, 0, 0),
  20717. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  20718. 0, 0, 0, 0),
  20719. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  20720. 0, 0, 0, 0),
  20721. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  20722. 0, 0, 0, 0),
  20723. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  20724. 0, 0, 0, 0),
  20725. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  20726. 0, 0, 0, 0),
  20727. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  20728. 0, 0, 0, 0),
  20729. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  20730. 0, 0, 0, 0),
  20731. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  20732. 0, 0, 0, 0),
  20733. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  20734. 0, 0, 0, 0),
  20735. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  20736. 0, 0, 0, 0),
  20737. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  20738. 0, 0, 0, 0),
  20739. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  20740. 0, 0, 0, 0),
  20741. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  20742. 0, 0, 0, 0),
  20743. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  20744. 0, 0, 0, 0),
  20745. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  20746. 0, 0, 0, 0),
  20747. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  20748. 0, 0, 0, 0),
  20749. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  20750. 0, 0, 0, 0),
  20751. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  20752. 0, 0, 0, 0),
  20753. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  20754. 0, 0, 0, 0),
  20755. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  20756. 0, 0, 0, 0),
  20757. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  20758. 0, 0, 0, 0),
  20759. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  20760. 0, 0, 0, 0),
  20761. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  20762. 0, 0, 0, 0),
  20763. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  20764. 0, 0, 0, 0),
  20765. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  20766. 0, 0, 0, 0),
  20767. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  20768. 0, 0, 0, 0),
  20769. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  20770. 0, 0, 0, 0),
  20771. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  20772. 0, 0, 0, 0),
  20773. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  20774. 0, 0, 0, 0),
  20775. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  20776. 0, 0, 0, 0),
  20777. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  20778. 0, 0, 0, 0),
  20779. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  20780. 0, 0, 0, 0),
  20781. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  20782. 0, 0, 0, 0),
  20783. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  20784. 0, 0, 0, 0),
  20785. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  20786. 0, 0, 0, 0),
  20787. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  20788. 0, 0, 0, 0),
  20789. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  20790. 0, 0, 0, 0),
  20791. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  20792. 0, 0, 0, 0),
  20793. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  20794. 0, 0, 0, 0),
  20795. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  20796. 0, 0, 0, 0),
  20797. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  20798. 0, 0, 0, 0),
  20799. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  20800. 0, 0, 0, 0),
  20801. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  20802. 0, 0, 0, 0),
  20803. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  20804. 0, 0, 0, 0),
  20805. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  20806. 0, 0, 0, 0),
  20807. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  20808. 0, 0, 0, 0),
  20809. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  20810. 0, 0, 0, 0),
  20811. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  20812. 0, 0, 0, 0),
  20813. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  20814. 0, 0, 0, 0),
  20815. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  20816. 0, 0, 0, 0),
  20817. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  20818. 0, 0, 0, 0),
  20819. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  20820. 0, 0, 0, 0),
  20821. /* incall */
  20822. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  20823. 0, 0, 0, 0),
  20824. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  20825. 0, 0, 0, 0),
  20826. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  20827. 0, 0, 0, 0),
  20828. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  20829. 0, 0, 0, 0),
  20830. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  20831. 0, 0, 0, 0),
  20832. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  20833. 0, 0, 0, 0),
  20834. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  20835. 0, 0, 0, 0),
  20836. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  20837. 0, 0, 0, 0),
  20838. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  20839. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  20840. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  20841. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  20842. 0, 0, 0, 0),
  20843. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  20844. 0, 0, 0, 0),
  20845. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  20846. 0, 0, 0, 0),
  20847. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  20848. 0, 0, 0, 0),
  20849. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  20850. 0, 0, 0, 0),
  20851. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  20852. 0, 0, 0, 0),
  20853. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  20854. 0, 0, 0, 0),
  20855. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  20856. 0, 0, 0, 0),
  20857. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  20858. 0, 0, 0, 0),
  20859. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  20860. 0, 0, 0, 0),
  20861. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  20862. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  20863. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  20864. 0, 0, 0, 0),
  20865. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  20866. 0, 0, 0, 0),
  20867. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  20868. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  20869. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  20870. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  20871. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  20872. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  20873. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  20874. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  20875. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  20876. /* In- call recording */
  20877. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  20878. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  20879. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  20880. 0, 0, 0, 0),
  20881. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  20882. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  20883. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  20884. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  20885. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  20886. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  20887. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  20888. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  20889. /* Switch Definitions */
  20890. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  20891. &slim_fm_switch_mixer_controls),
  20892. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  20893. &slim1_fm_switch_mixer_controls),
  20894. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  20895. &slim3_fm_switch_mixer_controls),
  20896. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  20897. &slim4_fm_switch_mixer_controls),
  20898. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  20899. &slim6_fm_switch_mixer_controls),
  20900. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20901. &pcm_rx_switch_mixer_controls),
  20902. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20903. &int0_mi2s_rx_switch_mixer_controls),
  20904. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20905. &int4_mi2s_rx_switch_mixer_controls),
  20906. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20907. &pri_mi2s_rx_switch_mixer_controls),
  20908. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20909. &sec_mi2s_rx_switch_mixer_controls),
  20910. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20911. &tert_mi2s_rx_switch_mixer_controls),
  20912. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20913. &quat_mi2s_rx_switch_mixer_controls),
  20914. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20915. &quin_mi2s_rx_switch_mixer_controls),
  20916. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  20917. &sco_slim7_switch_mixer_controls),
  20918. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  20919. &sen_mi2s_rx_switch_mixer_controls),
  20920. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  20921. &hfp_pri_aux_switch_mixer_controls),
  20922. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  20923. &hfp_aux_switch_mixer_controls),
  20924. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  20925. &hfp_int_switch_mixer_controls),
  20926. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  20927. &hfp_slim7_switch_mixer_controls),
  20928. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  20929. &usb_switch_mixer_controls),
  20930. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  20931. &a2dp_slim7_switch_mixer_controls),
  20932. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  20933. &cdc_dma_wsa_switch_mixer_controls),
  20934. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  20935. &cdc_dma_rx_switch_mixer_controls),
  20936. /* Mixer definitions */
  20937. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20938. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  20939. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20940. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  20941. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20942. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  20943. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20944. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  20945. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20946. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  20947. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20948. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  20949. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20950. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  20951. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  20952. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  20953. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  20954. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  20955. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  20956. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  20957. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20958. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  20959. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20960. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  20961. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20962. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  20963. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20964. quaternary_mi2s_rx_mixer_controls,
  20965. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  20966. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20967. tertiary_mi2s_rx_mixer_controls,
  20968. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  20969. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20970. secondary_mi2s_rx_mixer_controls,
  20971. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  20972. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  20973. secondary_mi2s_rx2_mixer_controls,
  20974. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  20975. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20976. primary_mi2s_rx_mixer_controls,
  20977. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  20978. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20979. int0_mi2s_rx_mixer_controls,
  20980. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  20981. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20982. int4_mi2s_rx_mixer_controls,
  20983. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  20984. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20985. quinary_mi2s_rx_mixer_controls,
  20986. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  20987. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  20988. senary_mi2s_rx_mixer_controls,
  20989. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  20990. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  20991. pri_tdm_rx_0_mixer_controls,
  20992. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  20993. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  20994. pri_tdm_rx_1_mixer_controls,
  20995. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  20996. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  20997. pri_tdm_rx_2_mixer_controls,
  20998. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  20999. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21000. pri_tdm_rx_3_mixer_controls,
  21001. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  21002. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21003. pri_tdm_tx_0_mixer_controls,
  21004. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  21005. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21006. sec_tdm_rx_0_mixer_controls,
  21007. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  21008. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21009. sec_tdm_rx_1_mixer_controls,
  21010. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  21011. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21012. sec_tdm_rx_2_mixer_controls,
  21013. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  21014. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21015. sec_tdm_rx_3_mixer_controls,
  21016. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  21017. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21018. sec_tdm_tx_0_mixer_controls,
  21019. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  21020. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21021. tert_tdm_rx_0_mixer_controls,
  21022. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  21023. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21024. tert_tdm_tx_0_mixer_controls,
  21025. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  21026. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21027. tert_tdm_rx_1_mixer_controls,
  21028. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  21029. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21030. tert_tdm_rx_2_mixer_controls,
  21031. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  21032. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21033. tert_tdm_rx_3_mixer_controls,
  21034. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  21035. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21036. tert_tdm_rx_4_mixer_controls,
  21037. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  21038. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21039. quat_tdm_rx_0_mixer_controls,
  21040. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  21041. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21042. quat_tdm_tx_0_mixer_controls,
  21043. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  21044. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21045. quat_tdm_rx_1_mixer_controls,
  21046. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  21047. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21048. quat_tdm_rx_2_mixer_controls,
  21049. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  21050. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21051. quat_tdm_rx_3_mixer_controls,
  21052. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  21053. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21054. quin_tdm_rx_0_mixer_controls,
  21055. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  21056. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21057. quin_tdm_tx_0_mixer_controls,
  21058. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  21059. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21060. quin_tdm_rx_1_mixer_controls,
  21061. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  21062. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21063. quin_tdm_rx_2_mixer_controls,
  21064. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  21065. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21066. quin_tdm_rx_3_mixer_controls,
  21067. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  21068. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21069. sen_tdm_tx_0_mixer_controls,
  21070. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  21071. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21072. sen_tdm_rx_0_mixer_controls,
  21073. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  21074. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21075. sen_tdm_rx_1_mixer_controls,
  21076. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  21077. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21078. sen_tdm_rx_2_mixer_controls,
  21079. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  21080. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21081. sen_tdm_rx_3_mixer_controls,
  21082. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  21083. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21084. wsa_cdc_dma_rx_0_mixer_controls,
  21085. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  21086. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21087. wsa_cdc_dma_rx_1_mixer_controls,
  21088. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  21089. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21090. rx_cdc_dma_rx_0_mixer_controls,
  21091. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  21092. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21093. rx_cdc_dma_rx_1_mixer_controls,
  21094. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  21095. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21096. rx_cdc_dma_rx_2_mixer_controls,
  21097. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  21098. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21099. rx_cdc_dma_rx_3_mixer_controls,
  21100. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  21101. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21102. rx_cdc_dma_rx_4_mixer_controls,
  21103. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  21104. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21105. rx_cdc_dma_rx_5_mixer_controls,
  21106. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  21107. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21108. rx_cdc_dma_rx_6_mixer_controls,
  21109. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  21110. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21111. rx_cdc_dma_rx_7_mixer_controls,
  21112. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  21113. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  21114. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  21115. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  21116. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  21117. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  21118. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  21119. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  21120. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  21121. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  21122. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  21123. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  21124. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  21125. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  21126. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  21127. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  21128. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  21129. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  21130. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  21131. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  21132. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  21133. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  21134. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  21135. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  21136. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  21137. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  21138. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  21139. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  21140. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  21141. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  21142. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  21143. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  21144. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  21145. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  21146. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  21147. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  21148. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  21149. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21150. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  21151. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21152. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  21153. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21154. tert_auxpcm_rx_mixer_controls,
  21155. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  21156. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21157. quat_auxpcm_rx_mixer_controls,
  21158. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  21159. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21160. quin_auxpcm_rx_mixer_controls,
  21161. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  21162. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21163. sen_auxpcm_rx_mixer_controls,
  21164. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  21165. /* incall */
  21166. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  21167. incall_music_delivery_mixer_controls,
  21168. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  21169. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21170. incall_music2_delivery_mixer_controls,
  21171. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  21172. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21173. slimbus_4_rx_mixer_controls,
  21174. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  21175. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21176. slimbus_6_rx_mixer_controls,
  21177. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  21178. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21179. usb_audio_rx_mixer_controls,
  21180. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  21181. /* Voice Mixer */
  21182. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  21183. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  21184. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  21185. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  21186. SND_SOC_NOPM, 0, 0,
  21187. sec_i2s_rx_voice_mixer_controls,
  21188. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  21189. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  21190. SND_SOC_NOPM, 0, 0,
  21191. sec_mi2s_rx_voice_mixer_controls,
  21192. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  21193. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  21194. SND_SOC_NOPM, 0, 0,
  21195. slimbus_rx_voice_mixer_controls,
  21196. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  21197. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  21198. SND_SOC_NOPM, 0, 0,
  21199. bt_sco_rx_voice_mixer_controls,
  21200. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  21201. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  21202. SND_SOC_NOPM, 0, 0,
  21203. afe_pcm_rx_voice_mixer_controls,
  21204. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  21205. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  21206. SND_SOC_NOPM, 0, 0,
  21207. aux_pcm_rx_voice_mixer_controls,
  21208. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  21209. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  21210. SND_SOC_NOPM, 0, 0,
  21211. sec_aux_pcm_rx_voice_mixer_controls,
  21212. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  21213. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  21214. SND_SOC_NOPM, 0, 0,
  21215. tert_aux_pcm_rx_voice_mixer_controls,
  21216. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  21217. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  21218. SND_SOC_NOPM, 0, 0,
  21219. quat_aux_pcm_rx_voice_mixer_controls,
  21220. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  21221. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  21222. SND_SOC_NOPM, 0, 0,
  21223. quin_aux_pcm_rx_voice_mixer_controls,
  21224. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  21225. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  21226. SND_SOC_NOPM, 0, 0,
  21227. sen_aux_pcm_rx_voice_mixer_controls,
  21228. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  21229. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  21230. SND_SOC_NOPM, 0, 0,
  21231. hdmi_rx_voice_mixer_controls,
  21232. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  21233. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  21234. SND_SOC_NOPM, 0, 0,
  21235. mi2s_rx_voice_mixer_controls,
  21236. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  21237. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  21238. SND_SOC_NOPM, 0, 0,
  21239. pri_mi2s_rx_voice_mixer_controls,
  21240. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  21241. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  21242. SND_SOC_NOPM, 0, 0,
  21243. int0_mi2s_rx_voice_mixer_controls,
  21244. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  21245. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  21246. SND_SOC_NOPM, 0, 0,
  21247. int4_mi2s_rx_voice_mixer_controls,
  21248. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  21249. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  21250. SND_SOC_NOPM, 0, 0,
  21251. tert_mi2s_rx_voice_mixer_controls,
  21252. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  21253. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  21254. SND_SOC_NOPM, 0, 0,
  21255. quat_mi2s_rx_voice_mixer_controls,
  21256. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  21257. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  21258. SND_SOC_NOPM, 0, 0,
  21259. quin_mi2s_rx_voice_mixer_controls,
  21260. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  21261. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  21262. SND_SOC_NOPM, 0, 0,
  21263. pri_tdm_rx_0_voice_mixer_controls,
  21264. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  21265. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  21266. SND_SOC_NOPM, 0, 0,
  21267. pri_tdm_rx_1_voice_mixer_controls,
  21268. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  21269. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  21270. SND_SOC_NOPM, 0, 0,
  21271. pri_tdm_rx_2_voice_mixer_controls,
  21272. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  21273. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  21274. SND_SOC_NOPM, 0, 0,
  21275. pri_tdm_rx_3_voice_mixer_controls,
  21276. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  21277. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  21278. SND_SOC_NOPM, 0, 0,
  21279. sen_mi2s_rx_voice_mixer_controls,
  21280. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  21281. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  21282. SND_SOC_NOPM, 0, 0,
  21283. quat_tdm_rx_2_voice_mixer_controls,
  21284. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  21285. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  21286. SND_SOC_NOPM, 0, 0,
  21287. wsa_cdc_dma_rx_0_voice_mixer_controls,
  21288. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  21289. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  21290. SND_SOC_NOPM, 0, 0,
  21291. rx_cdc_dma_rx_0_voice_mixer_controls,
  21292. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  21293. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  21294. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  21295. ARRAY_SIZE(tx_voip_mixer_controls)),
  21296. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  21297. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  21298. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  21299. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  21300. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  21301. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  21302. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21303. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  21304. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21305. int_bt_a2dp_rx_mixer_controls,
  21306. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  21307. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21308. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  21309. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21310. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  21311. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  21312. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  21313. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  21314. tx_voice2_stub_mixer_controls,
  21315. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  21316. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  21317. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  21318. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  21319. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  21320. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  21321. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  21322. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  21323. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  21324. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  21325. SND_SOC_NOPM, 0, 0,
  21326. slimbus_6_rx_voice_mixer_controls,
  21327. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  21328. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  21329. slimbus_7_rx_voice_mixer_controls,
  21330. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  21331. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  21332. slimbus_8_rx_voice_mixer_controls,
  21333. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  21334. /* port mixer */
  21335. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  21336. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  21337. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  21338. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  21339. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  21340. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  21341. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  21342. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  21343. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  21344. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  21345. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  21346. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  21347. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  21348. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  21349. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  21350. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  21351. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  21352. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  21353. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  21354. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  21355. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  21356. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21357. sbus_1_rx_port_mixer_controls,
  21358. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  21359. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21360. bt_sco_rx_port_mixer_controls,
  21361. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  21362. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  21363. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  21364. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  21365. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  21366. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  21367. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  21368. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  21369. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  21370. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  21371. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  21372. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  21373. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  21374. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  21375. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  21376. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  21377. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  21378. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  21379. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  21380. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  21381. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  21382. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  21383. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21384. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  21385. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21386. primary_mi2s_rx_port_mixer_controls,
  21387. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  21388. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21389. sec_mi2s_rx_port_mixer_controls,
  21390. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  21391. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21392. tert_mi2s_rx_port_mixer_controls,
  21393. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  21394. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21395. quat_mi2s_rx_port_mixer_controls,
  21396. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  21397. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21398. quin_mi2s_rx_port_mixer_controls,
  21399. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  21400. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21401. sen_mi2s_rx_port_mixer_controls,
  21402. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  21403. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21404. pri_tdm_rx_0_port_mixer_controls,
  21405. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  21406. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21407. pri_tdm_rx_1_port_mixer_controls,
  21408. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  21409. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21410. pri_tdm_rx_2_port_mixer_controls,
  21411. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  21412. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21413. pri_tdm_rx_3_port_mixer_controls,
  21414. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  21415. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21416. sec_tdm_rx_0_port_mixer_controls,
  21417. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  21418. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21419. sec_tdm_rx_1_port_mixer_controls,
  21420. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  21421. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21422. sec_tdm_rx_2_port_mixer_controls,
  21423. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  21424. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21425. sec_tdm_rx_3_port_mixer_controls,
  21426. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  21427. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  21428. sec_tdm_rx_7_port_mixer_controls,
  21429. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  21430. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21431. tert_tdm_rx_0_port_mixer_controls,
  21432. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  21433. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21434. tert_tdm_rx_1_port_mixer_controls,
  21435. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  21436. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21437. tert_tdm_rx_2_port_mixer_controls,
  21438. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  21439. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21440. tert_tdm_rx_3_port_mixer_controls,
  21441. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  21442. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21443. quat_tdm_rx_0_port_mixer_controls,
  21444. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  21445. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21446. quat_tdm_rx_1_port_mixer_controls,
  21447. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  21448. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21449. quat_tdm_rx_2_port_mixer_controls,
  21450. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  21451. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21452. quat_tdm_rx_3_port_mixer_controls,
  21453. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  21454. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  21455. quat_tdm_rx_7_port_mixer_controls,
  21456. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  21457. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21458. quin_tdm_rx_0_port_mixer_controls,
  21459. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  21460. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21461. quin_tdm_rx_1_port_mixer_controls,
  21462. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  21463. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21464. quin_tdm_rx_2_port_mixer_controls,
  21465. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  21466. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21467. quin_tdm_rx_3_port_mixer_controls,
  21468. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  21469. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21470. sen_tdm_rx_0_port_mixer_controls,
  21471. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  21472. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21473. sen_tdm_rx_1_port_mixer_controls,
  21474. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  21475. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21476. sen_tdm_rx_2_port_mixer_controls,
  21477. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  21478. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21479. sen_tdm_rx_3_port_mixer_controls,
  21480. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  21481. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21482. int0_mi2s_rx_port_mixer_controls,
  21483. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  21484. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21485. int4_mi2s_rx_port_mixer_controls,
  21486. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  21487. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21488. wsa_cdc_dma_rx_0_port_mixer_controls,
  21489. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  21490. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21491. rx_cdc_dma_rx_0_port_mixer_controls,
  21492. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  21493. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  21494. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  21495. ARRAY_SIZE(tx_qchat_mixer_controls)),
  21496. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  21497. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  21498. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  21499. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  21500. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  21501. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  21502. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  21503. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  21504. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  21505. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  21506. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  21507. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  21508. /* lsm mixer definitions */
  21509. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  21510. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  21511. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  21512. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  21513. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  21514. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  21515. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  21516. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  21517. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  21518. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  21519. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  21520. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  21521. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  21522. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  21523. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  21524. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  21525. /* Virtual Pins to force backends ON atm */
  21526. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  21527. SND_SOC_DAPM_INPUT("BE_IN"),
  21528. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  21529. &slim0_rx_vi_fb_lch_mux),
  21530. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  21531. &slim0_rx_vi_fb_rch_mux),
  21532. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  21533. &wsa_rx_0_vi_fb_lch_mux),
  21534. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  21535. &wsa_rx_0_vi_fb_rch_mux),
  21536. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  21537. &mi2s_rx_vi_fb_mux),
  21538. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  21539. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  21540. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  21541. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  21542. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  21543. &voc_ext_ec_mux),
  21544. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  21545. &ext_ec_ref_mux_ul1),
  21546. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  21547. &ext_ec_ref_mux_ul2),
  21548. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  21549. &ext_ec_ref_mux_ul3),
  21550. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  21551. &ext_ec_ref_mux_ul4),
  21552. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  21553. &ext_ec_ref_mux_ul5),
  21554. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  21555. &ext_ec_ref_mux_ul6),
  21556. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  21557. &ext_ec_ref_mux_ul8),
  21558. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  21559. &ext_ec_ref_mux_ul9),
  21560. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  21561. &ext_ec_ref_mux_ul10),
  21562. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  21563. &ext_ec_ref_mux_ul16),
  21564. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  21565. &ext_ec_ref_mux_ul17),
  21566. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  21567. &ext_ec_ref_mux_ul18),
  21568. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  21569. &ext_ec_ref_mux_ul19),
  21570. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  21571. &ext_ec_ref_mux_ul28),
  21572. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  21573. &ext_ec_ref_mux_ul29),
  21574. };
  21575. static const struct snd_soc_dapm_route intercon[] = {
  21576. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21577. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21578. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21579. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21580. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21581. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21582. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21583. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21584. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21585. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21586. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21587. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21588. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21589. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21590. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21591. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21592. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21593. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  21594. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21595. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21596. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21597. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21598. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21599. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21600. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21601. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21602. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21603. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21604. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21605. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21606. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21607. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21608. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21609. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21610. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21611. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  21612. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21613. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21614. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21615. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21616. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21617. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21618. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21619. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21620. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21621. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21622. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21623. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21624. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21625. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21626. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21627. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21628. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21629. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  21630. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21631. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21632. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21633. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21634. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21635. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21636. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21637. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21638. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21639. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21640. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21641. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21642. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21643. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21644. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21645. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21646. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21647. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  21648. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21649. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21650. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21651. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21652. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21653. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21654. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21655. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21656. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21657. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21658. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21659. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21660. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21661. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21662. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21663. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21664. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21665. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  21666. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21667. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21668. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21669. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21670. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21671. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21672. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21673. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21674. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21675. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21676. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21677. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21678. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21679. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21680. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21681. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21682. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21683. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  21684. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21685. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21686. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21687. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21688. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21689. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21690. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21691. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21692. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21693. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21694. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21695. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21696. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21697. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21698. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21699. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21700. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21701. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  21702. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21703. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21704. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21705. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21706. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21707. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21708. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21709. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21710. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21711. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21712. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21713. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21714. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21715. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21716. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21717. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21718. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21719. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  21720. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21721. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21722. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21723. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21724. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21725. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21726. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21727. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21728. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21729. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21730. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21731. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21732. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21733. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21734. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21735. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21736. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21737. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  21738. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21739. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21740. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21741. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21742. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21743. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21744. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21745. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21746. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21747. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21748. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21749. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21750. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21751. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21752. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21753. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21754. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21755. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  21756. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21757. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21758. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21759. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21760. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21761. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21762. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21763. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21764. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21765. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21766. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21767. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21768. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21769. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21770. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21771. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21772. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21773. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  21774. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21775. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21776. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21777. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21778. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21779. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21780. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21781. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21782. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21783. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21784. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21785. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21786. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21787. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21788. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21789. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21790. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21791. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  21792. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21793. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21794. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21795. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21796. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21797. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21798. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21799. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21800. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21801. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21802. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21803. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21804. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21805. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21806. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21807. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21808. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21809. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  21810. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21811. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21812. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21813. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21814. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21815. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21816. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21817. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21818. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21819. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21820. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21821. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21822. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21823. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21824. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21825. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21826. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21827. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  21828. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21829. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21830. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21831. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21832. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21833. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21834. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21835. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21836. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21837. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21838. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21839. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21840. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21841. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21842. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21843. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21844. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21845. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  21846. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  21847. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  21848. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  21849. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  21850. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  21851. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  21852. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  21853. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  21854. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  21855. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  21856. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  21857. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  21858. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  21859. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  21860. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  21861. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  21862. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  21863. {"HDMI", NULL, "HDMI Mixer"},
  21864. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  21865. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  21866. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  21867. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  21868. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  21869. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  21870. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  21871. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  21872. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  21873. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  21874. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  21875. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  21876. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  21877. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  21878. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  21879. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  21880. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  21881. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  21882. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  21883. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  21884. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  21885. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  21886. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  21887. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  21888. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  21889. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  21890. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  21891. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  21892. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  21893. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  21894. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  21895. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  21896. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  21897. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  21898. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  21899. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  21900. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21901. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21902. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21903. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21904. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21905. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21906. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21907. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21908. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21909. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21910. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21911. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21912. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21913. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21914. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21915. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21916. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21917. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  21918. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21919. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21920. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21921. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21922. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21923. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21924. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21925. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21926. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21927. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21928. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21929. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21930. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21931. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21932. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21933. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21934. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21935. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  21936. /* incall */
  21937. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  21938. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  21939. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  21940. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  21941. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  21942. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21943. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21944. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21945. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21946. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  21947. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21948. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21949. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21950. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21951. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  21952. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21953. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21954. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21955. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21956. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21957. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21958. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21959. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21960. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21961. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21962. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21963. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21964. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21965. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21966. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21967. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21968. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21969. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  21970. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21971. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21972. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21973. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21974. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21975. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21976. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21977. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21978. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21979. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21980. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21981. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21982. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21983. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21984. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21985. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21986. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21987. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  21988. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21989. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21990. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21991. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21992. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21993. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21994. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21995. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21996. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21997. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21998. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21999. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22000. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22001. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22002. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22003. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22004. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22005. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  22006. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22007. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22008. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22009. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22010. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22011. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22012. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22013. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22014. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22015. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22016. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22017. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22018. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22019. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22020. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22021. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22022. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22023. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  22024. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22025. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22026. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22027. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22028. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22029. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22030. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  22031. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  22032. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22033. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22034. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22035. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  22036. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22037. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22038. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22039. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22040. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22041. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22042. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22043. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22044. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22045. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22046. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22047. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22048. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22049. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22050. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22051. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22052. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22053. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22054. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22055. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22056. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22057. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22058. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22059. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22060. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22061. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22062. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22063. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22064. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22065. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22066. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22067. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22068. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22069. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22070. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22071. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22072. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22073. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22074. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22075. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22076. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22077. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22078. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22079. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22080. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22081. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22082. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22083. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22084. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22085. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22086. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22087. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22088. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22089. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22090. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22091. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22092. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22093. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22094. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22095. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22096. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22097. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22098. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22099. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22100. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22101. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22102. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22103. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22104. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22105. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22106. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22107. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22108. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22109. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22110. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22111. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22112. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22113. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  22114. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22115. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22116. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22117. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22118. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22119. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22120. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22121. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22122. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22123. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22124. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22125. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22126. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22127. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22128. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22129. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22130. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  22131. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22132. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22133. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22134. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22135. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22136. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22137. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22138. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22139. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22140. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22141. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22142. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22143. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22144. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22145. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22146. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  22147. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22148. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22149. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22150. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22151. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22152. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22153. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22154. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22155. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22156. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22157. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22158. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22159. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22160. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22161. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22162. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  22163. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22164. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  22165. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22166. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22167. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22168. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22169. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22170. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22171. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22172. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22173. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22174. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22175. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22176. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22177. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22178. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22179. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22180. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22181. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22182. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22183. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  22184. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22185. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22186. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22187. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22188. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22189. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22190. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22191. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22192. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22193. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22194. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22195. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22196. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22197. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22198. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22199. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  22200. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22201. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22202. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22203. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22204. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22205. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22206. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22207. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22208. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22209. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22210. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22211. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22212. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22213. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22214. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22215. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  22216. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22217. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22218. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22219. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22220. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22221. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22222. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22223. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22224. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22225. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22226. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22227. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22228. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22229. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22230. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22231. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22232. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22233. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  22234. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22235. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22236. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22237. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22238. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22239. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22240. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22241. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22242. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22243. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22244. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22245. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22246. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22247. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22248. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22249. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  22250. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22251. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22252. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22253. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22254. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22255. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22256. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22257. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22258. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22259. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22260. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22261. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22262. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22263. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22264. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22265. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22266. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22267. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  22268. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22269. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22270. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22271. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22272. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22273. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22274. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22275. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22276. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22277. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22278. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22279. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22280. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22281. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22282. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22283. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22284. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22285. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  22286. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22287. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22288. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22289. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22290. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22291. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22292. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22293. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22294. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22295. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22296. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22297. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22298. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22299. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22300. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22301. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22302. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22303. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  22304. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22305. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22306. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22307. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22308. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22309. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22310. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22311. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22312. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22313. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22314. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22315. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22316. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22317. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22318. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22319. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22320. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22321. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  22322. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22323. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22324. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22325. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22326. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22327. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22328. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22329. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22330. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22331. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22332. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22333. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22334. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22335. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22336. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22337. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22338. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  22339. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22340. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22341. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22342. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22343. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22344. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22345. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22346. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22347. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22348. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22349. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22350. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22351. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22352. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22353. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22354. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22355. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22356. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  22357. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22358. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22359. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22360. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22361. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22362. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22363. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22364. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22365. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22366. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22367. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22368. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22369. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22370. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22371. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22372. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22373. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22374. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  22375. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22376. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22377. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22378. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22379. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22380. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22381. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22382. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22383. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22384. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22385. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22386. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22387. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22388. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22389. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22390. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22391. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22392. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  22393. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22394. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22395. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22396. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22397. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22398. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22399. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22400. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22401. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22402. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22403. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22404. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22405. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22406. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22407. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22408. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22409. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22410. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  22411. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22412. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22413. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22414. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22415. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22416. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22417. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22418. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22419. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22420. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22421. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22422. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22423. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22424. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22425. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22426. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22427. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  22428. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22429. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22430. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22431. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22432. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22433. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22434. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22435. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22436. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22437. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22438. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22439. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22440. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22441. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22442. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22443. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22444. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22445. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  22446. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22447. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22448. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22449. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22450. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22451. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22452. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22453. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22454. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22455. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22456. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22457. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22458. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22459. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22460. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22461. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22462. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  22463. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22464. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22465. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22466. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22467. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22468. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22469. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22470. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22471. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22472. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22473. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22474. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22475. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22476. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22477. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22478. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22479. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22480. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  22481. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22482. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22483. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22484. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22485. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22486. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22487. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22488. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22489. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22490. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22491. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22492. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22493. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22494. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22495. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22496. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22497. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22498. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  22499. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22500. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22501. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22502. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22503. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22504. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22505. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22506. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22507. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22508. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22509. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22510. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22511. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22512. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22513. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22514. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22515. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22516. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  22517. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22518. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22519. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22520. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22521. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22522. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22523. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22524. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22525. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22526. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22527. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22528. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22529. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22530. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22531. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22532. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22533. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22534. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  22535. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22536. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22537. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22538. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22539. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22540. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22541. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22542. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22543. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22544. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22545. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22546. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22547. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22548. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22549. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22550. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22551. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22552. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22553. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  22554. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22555. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22556. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22557. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22558. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22559. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22560. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22561. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22562. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22563. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22564. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22565. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22566. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22567. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22568. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22569. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22570. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  22571. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22572. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22573. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22574. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22575. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22576. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22577. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22578. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22579. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22580. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22581. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22582. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22583. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22584. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22585. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22586. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22587. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22588. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22589. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  22590. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22591. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22592. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22593. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22594. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22595. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22596. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22597. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22598. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22599. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22600. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22601. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22602. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22603. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22604. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22605. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22606. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22607. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22608. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  22609. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22610. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22611. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22612. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22613. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22614. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22615. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22616. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22617. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22618. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22619. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22620. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22621. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22622. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22623. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22624. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22625. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22626. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22627. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  22628. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22629. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22630. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22631. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22632. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22633. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22634. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22635. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22636. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22637. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22638. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22639. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22640. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22641. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22642. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22643. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22644. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22645. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22646. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  22647. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22648. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22649. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22650. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22651. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22652. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22653. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22654. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22655. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22656. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22657. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22658. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22659. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22660. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22661. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22662. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22663. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  22664. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22665. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22666. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22667. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22668. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22669. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22670. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22671. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22672. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22673. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22674. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22675. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22676. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22677. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22678. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22679. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22680. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22681. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22682. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  22683. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22684. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22685. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22686. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22687. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22688. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22689. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22690. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22691. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22692. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22693. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22694. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22695. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22696. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22697. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22698. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22699. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22700. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22701. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  22702. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22703. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22704. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22705. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22706. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22707. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22708. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22709. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22710. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22711. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22712. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22713. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22714. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22715. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22716. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22717. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22718. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22719. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22720. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  22721. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22722. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22723. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22724. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22725. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22726. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22727. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22728. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22729. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22730. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22731. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22732. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22733. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22734. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22735. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22736. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22737. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22738. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22739. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  22740. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22741. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22742. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22743. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22744. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22745. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22746. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22747. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22748. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22749. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22750. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22751. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22752. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22753. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22754. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22755. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22756. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  22757. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22758. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22759. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22760. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22761. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22762. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22763. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22764. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22765. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22766. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22767. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22768. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22769. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22770. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22771. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22772. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22773. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22774. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22775. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  22776. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22777. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22778. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22779. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22780. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22781. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22782. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22783. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22784. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22785. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22786. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22787. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22788. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22789. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22790. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22791. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22792. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22793. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22794. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  22795. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22796. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22797. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22798. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22799. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22800. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22801. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22802. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22803. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22804. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22805. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22806. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22807. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22808. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22809. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22810. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22811. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22812. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22813. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  22814. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  22815. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  22816. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  22817. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  22818. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  22819. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  22820. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  22821. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22822. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22823. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22824. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22825. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22826. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  22827. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  22828. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22829. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22830. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22831. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22832. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22833. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22834. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22835. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22836. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22837. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  22838. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22839. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  22840. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22841. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  22842. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  22843. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  22844. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  22845. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  22846. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  22847. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  22848. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  22849. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  22850. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  22851. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  22852. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  22853. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  22854. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  22855. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  22856. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  22857. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  22858. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  22859. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  22860. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  22861. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22862. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  22863. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22864. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22865. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22866. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22867. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22868. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22869. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22870. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22871. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22872. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22873. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22874. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22875. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22876. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22877. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22878. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22879. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22880. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22881. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22882. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22883. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22884. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22885. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22886. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22887. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22888. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22889. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22890. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22891. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22892. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22893. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22894. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  22895. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  22896. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  22897. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  22898. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  22899. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  22900. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  22901. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  22902. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  22903. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22904. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22905. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22906. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22907. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22908. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22909. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22910. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22911. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  22912. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22913. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22914. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22915. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22916. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  22917. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  22918. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  22919. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  22920. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  22921. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  22922. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  22923. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  22924. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  22925. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  22926. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  22927. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  22928. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  22929. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  22930. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  22931. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  22932. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22933. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22934. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  22935. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  22936. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  22937. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  22938. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  22939. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  22940. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  22941. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  22942. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22943. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22944. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22945. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22946. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22947. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22948. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22949. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22950. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  22951. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22952. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22953. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22954. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22955. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  22956. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  22957. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  22958. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  22959. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  22960. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  22961. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  22962. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  22963. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  22964. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  22965. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  22966. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  22967. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  22968. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  22969. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  22970. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  22971. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22972. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22973. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  22974. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  22975. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  22976. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  22977. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  22978. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  22979. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  22980. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  22981. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  22982. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  22983. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  22984. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  22985. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  22986. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  22987. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  22988. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  22989. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  22990. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  22991. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  22992. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  22993. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  22994. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  22995. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  22996. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  22997. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  22998. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  22999. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23000. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23001. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23002. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23003. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23004. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23005. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23006. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23007. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23008. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23009. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23010. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23011. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23012. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23013. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23014. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23015. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23016. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23017. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23018. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23019. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23020. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23021. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23022. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23023. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23024. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23025. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23026. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23027. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23028. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23029. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23030. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23031. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23032. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23033. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23034. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23035. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23036. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23037. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23038. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23039. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23040. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23041. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23042. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23043. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23044. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23045. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23046. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23047. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23048. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23049. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23050. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23051. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23052. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23053. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23054. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23055. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23056. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23057. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23058. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23059. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23060. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23061. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23062. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23063. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23064. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23065. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23066. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23067. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23068. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23069. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23070. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23071. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23072. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23073. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23074. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23075. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23076. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23077. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23078. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23079. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23080. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23081. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23082. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23083. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23084. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23085. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23086. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23087. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23088. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23089. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23090. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23091. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23092. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23093. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23094. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23095. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23096. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23097. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23098. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23099. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23100. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23101. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23102. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23103. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23104. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23105. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23106. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23107. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23108. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23109. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23110. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23111. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23112. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23113. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23114. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23115. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23116. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23117. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23118. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23119. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23120. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23121. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23122. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23123. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23124. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23125. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23126. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23127. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23128. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23129. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23130. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23131. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23132. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23133. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23134. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23135. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23136. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23137. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23138. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23139. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23140. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23141. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23142. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23143. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23144. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23145. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23146. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23147. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23148. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23149. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23150. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23151. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23152. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23153. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23154. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23155. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23156. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23157. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23158. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23159. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23160. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23161. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23162. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23163. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23164. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23165. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23166. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23167. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23168. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23169. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23170. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23171. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23172. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23173. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23174. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23175. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23176. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23177. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23178. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23179. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23180. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23181. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23182. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23183. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23184. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23185. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23186. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23187. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23188. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23189. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23190. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23191. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23192. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23193. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23194. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23195. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23196. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23197. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23198. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23199. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23200. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23201. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23202. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23203. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23204. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23205. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23206. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23207. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23208. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23209. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23210. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23211. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23212. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23213. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23214. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23215. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23216. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23217. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23218. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23219. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23220. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23221. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23222. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23223. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23224. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23225. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23226. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23227. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23228. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23229. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23230. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23231. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23232. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23233. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23234. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23235. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23236. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23237. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23238. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23239. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23240. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23241. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23242. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23243. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23244. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23245. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23246. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23247. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23248. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23249. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23250. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23251. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23252. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23253. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23254. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23255. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23256. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23257. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23258. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23259. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23260. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  23261. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  23262. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23263. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23264. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23265. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23266. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23267. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23268. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23269. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23270. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23271. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23272. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23273. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23274. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23275. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23276. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23277. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23278. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23279. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23280. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23281. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23282. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23283. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23284. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23285. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23286. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23287. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23288. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23289. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23290. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23291. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23292. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23293. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23294. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23295. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23296. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23297. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23298. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23299. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23300. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23301. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23302. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23303. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23304. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23305. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23306. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23307. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23308. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23309. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23310. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23311. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23312. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23313. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23314. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23315. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23316. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23317. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23318. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23319. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23320. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23321. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23322. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23323. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23324. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23325. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23326. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23327. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23328. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23329. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23330. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23331. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23332. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23333. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23334. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23335. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23336. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23337. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23338. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23339. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23340. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23341. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23342. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23343. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23344. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23345. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23346. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23347. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23348. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23349. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23350. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23351. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23352. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23353. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23354. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23355. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23356. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23357. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23358. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23359. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23360. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23361. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23362. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23363. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23364. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23365. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23366. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23367. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23368. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23369. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23370. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23371. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23372. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23373. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23374. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23375. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23376. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23377. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23378. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23379. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23380. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23381. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23382. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23383. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23384. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23385. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23386. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23387. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23388. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23389. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23390. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23391. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23392. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23393. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23394. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23395. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23396. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23397. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23398. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23399. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23400. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23401. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23402. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23403. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23404. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23405. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  23406. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  23407. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23408. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23409. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23410. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23411. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23412. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23413. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23414. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23415. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23416. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23417. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23418. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23419. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23420. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23421. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23422. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23423. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  23424. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  23425. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23426. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23427. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23428. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23429. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23430. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23431. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23432. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23433. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23434. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23435. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23436. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23437. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23438. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23439. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23440. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23441. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  23442. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23443. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23444. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23445. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23446. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23447. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23448. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23449. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23450. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23451. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23452. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23453. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23454. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23455. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23456. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23457. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23458. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  23459. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23460. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23461. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23462. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23463. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23464. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23465. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23466. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23467. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23468. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23469. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23470. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23471. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23472. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23473. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23474. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23475. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23476. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23477. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23478. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23479. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23480. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23481. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23482. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23483. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23484. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23485. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23486. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23487. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23488. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23489. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23490. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23491. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23492. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23493. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23494. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  23495. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23496. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  23497. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  23498. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  23499. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  23500. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  23501. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  23502. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  23503. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  23504. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  23505. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  23506. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  23507. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  23508. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  23509. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  23510. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  23511. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  23512. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  23513. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23514. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23515. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23516. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23517. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23518. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23519. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23520. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23521. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23522. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23523. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23524. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23525. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23526. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23527. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23528. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23529. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  23530. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  23531. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23532. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23533. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23534. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23535. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23536. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23537. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23538. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23539. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23540. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23541. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23542. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23543. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23544. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23545. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23546. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23547. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  23548. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  23549. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23550. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23551. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23552. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23553. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23554. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23555. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23556. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23557. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23558. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23559. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23560. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23561. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23562. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23563. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23564. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23565. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  23566. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23567. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23568. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23569. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23570. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23571. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23572. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23573. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23574. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23575. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23576. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23577. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23578. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23579. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23580. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23581. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23582. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  23583. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23584. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23585. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23586. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23587. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23588. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23589. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23590. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23591. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23592. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23593. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23594. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23595. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23596. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23597. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23598. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23599. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  23600. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23601. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23602. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23603. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23604. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23605. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23606. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23607. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23608. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23609. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23610. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23611. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23612. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23613. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23614. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23615. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23616. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  23617. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23618. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23619. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23620. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23621. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23622. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  23623. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23624. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23625. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23626. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  23627. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23628. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23629. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23630. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23631. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23632. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23633. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23634. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  23635. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23636. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23637. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23638. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23639. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23640. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  23641. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23642. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23643. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23644. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23645. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23646. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  23647. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23648. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23649. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23650. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23651. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23652. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  23653. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23654. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23655. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23656. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23657. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23658. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  23659. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  23660. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23661. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23662. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23663. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23664. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  23665. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23666. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23667. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23668. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23669. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23670. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  23671. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23672. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23673. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23674. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23675. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23676. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  23677. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23678. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23679. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23680. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23681. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23682. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  23683. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23684. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23685. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23686. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23687. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23688. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  23689. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23690. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23691. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23692. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23693. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23694. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  23695. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23696. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23697. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23698. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23699. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23700. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  23701. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23702. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23703. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23704. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23705. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23706. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  23707. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23708. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23709. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23710. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23711. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23712. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  23713. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23714. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23715. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23716. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23717. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23718. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  23719. {"HDMI", NULL, "HDMI_DL_HL"},
  23720. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23721. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23722. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23723. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23724. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23725. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23726. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23727. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  23728. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23729. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23730. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23731. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23732. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23733. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23734. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23735. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  23736. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23737. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23738. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23739. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23740. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23741. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  23742. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23743. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23744. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23745. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23746. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23747. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  23748. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23749. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23750. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23751. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23752. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23753. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23754. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23755. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  23756. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23757. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23758. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23759. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23760. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23761. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23762. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  23763. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23764. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23765. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23766. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23767. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23768. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23769. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  23770. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  23771. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23772. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23773. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23774. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23775. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23776. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23777. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23778. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  23779. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  23780. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23781. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23782. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23783. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23784. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23785. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23786. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23787. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  23788. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  23789. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23790. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23791. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23792. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23793. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23794. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23795. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23796. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  23797. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  23798. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23799. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23800. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23801. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23802. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23803. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23804. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23805. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  23806. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23807. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23808. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23809. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23810. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  23811. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23812. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  23813. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23814. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23815. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  23816. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23817. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23818. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  23819. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23820. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23821. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23822. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23823. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23824. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23825. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  23826. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  23827. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  23828. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  23829. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23830. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23831. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23832. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23833. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23834. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23835. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  23836. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  23837. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  23838. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23839. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  23840. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23841. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23842. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23843. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23844. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23845. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23846. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23847. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23848. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23849. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23850. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23851. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23852. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23853. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23854. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23855. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23856. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23857. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23858. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23859. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23860. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23861. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23862. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23863. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23864. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23865. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23866. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23867. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23868. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23869. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23870. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23871. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23872. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23873. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23874. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23875. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  23876. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  23877. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  23878. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23879. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  23880. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23881. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23882. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23883. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23884. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23885. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23886. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23887. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23888. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23889. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23890. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23891. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23892. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23893. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23894. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23895. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23896. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23897. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23898. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23899. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23900. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23901. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23902. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23903. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23904. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23905. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23906. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23907. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23908. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23909. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23910. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23911. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23912. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23913. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  23914. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  23915. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  23916. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  23917. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  23918. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  23919. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  23920. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  23921. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  23922. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  23923. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  23924. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  23925. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  23926. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  23927. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  23928. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  23929. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  23930. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  23931. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  23932. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  23933. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  23934. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  23935. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  23936. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  23937. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  23938. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  23939. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  23940. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  23941. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  23942. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  23943. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  23944. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  23945. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  23946. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  23947. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  23948. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  23949. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  23950. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  23951. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  23952. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  23953. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  23954. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  23955. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  23956. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  23957. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  23958. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  23959. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  23960. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  23961. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  23962. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  23963. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  23964. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  23965. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  23966. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  23967. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  23968. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  23969. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  23970. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  23971. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  23972. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  23973. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  23974. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  23975. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  23976. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  23977. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  23978. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  23979. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  23980. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  23981. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  23982. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  23983. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  23984. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  23985. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  23986. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  23987. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  23988. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  23989. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  23990. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  23991. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  23992. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  23993. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  23994. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  23995. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  23996. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  23997. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  23998. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  23999. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  24000. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  24001. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  24002. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  24003. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  24004. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  24005. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  24006. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  24007. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  24008. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  24009. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  24010. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  24011. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  24012. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  24013. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  24014. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  24015. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  24016. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  24017. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  24018. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  24019. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  24020. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  24021. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  24022. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  24023. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  24024. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  24025. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24026. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24027. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24028. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24029. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24030. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24031. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24032. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24033. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24034. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24035. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24036. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24037. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24038. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  24039. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24040. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24041. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24042. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24043. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24044. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24045. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24046. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24047. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24048. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24049. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24050. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24051. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24052. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  24053. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24054. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24055. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24056. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24057. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24058. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24059. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24060. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24061. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24062. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24063. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24064. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24065. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24066. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  24067. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24068. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24069. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24070. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24071. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24072. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24073. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24074. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24075. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24076. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24077. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24078. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24079. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24080. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  24081. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24082. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24083. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24084. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24085. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24086. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24087. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24088. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24089. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24090. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24091. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24092. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24093. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24094. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  24095. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24096. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24097. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24098. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24099. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24100. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24101. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24102. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24103. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24104. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24105. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24106. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  24107. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24108. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24109. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24110. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24111. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24112. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24113. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24114. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24115. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24116. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24117. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24118. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  24119. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24120. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24121. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24122. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24123. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24124. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24125. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24126. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24127. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24128. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24129. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24130. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  24131. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  24132. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  24133. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  24134. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  24135. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  24136. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  24137. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  24138. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  24139. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  24140. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  24141. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  24142. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  24143. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  24144. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  24145. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  24146. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  24147. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  24148. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  24149. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  24150. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  24151. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  24152. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  24153. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  24154. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  24155. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  24156. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  24157. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  24158. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  24159. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  24160. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  24161. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  24162. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  24163. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  24164. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  24165. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  24166. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  24167. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  24168. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  24169. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  24170. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  24171. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  24172. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  24173. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  24174. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  24175. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  24176. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  24177. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  24178. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  24179. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  24180. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  24181. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  24182. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  24183. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  24184. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  24185. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  24186. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  24187. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  24188. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  24189. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  24190. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  24191. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  24192. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  24193. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  24194. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  24195. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  24196. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  24197. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  24198. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  24199. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  24200. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  24201. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  24202. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  24203. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  24204. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  24205. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  24206. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  24207. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  24208. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  24209. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  24210. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  24211. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  24212. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  24213. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  24214. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  24215. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  24216. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  24217. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  24218. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  24219. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  24220. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  24221. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  24222. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  24223. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  24224. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  24225. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  24226. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  24227. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  24228. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  24229. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  24230. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  24231. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  24232. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  24233. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  24234. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  24235. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  24236. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  24237. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  24238. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  24239. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  24240. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  24241. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  24242. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  24243. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  24244. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  24245. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  24246. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  24247. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  24248. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  24249. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  24250. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24251. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24252. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24253. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24254. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24255. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24256. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24257. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24258. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24259. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24260. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24261. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24262. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24263. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24264. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24265. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24266. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24267. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24268. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24269. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24270. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24271. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24272. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24273. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24274. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  24275. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24276. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24277. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24278. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24279. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24280. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24281. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24282. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24283. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24284. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24285. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24286. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24287. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24288. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24289. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24290. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24291. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24292. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24293. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24294. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24295. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24296. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24297. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24298. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24299. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  24300. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24301. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24302. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24303. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24304. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24305. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24306. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24307. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24308. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24309. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24310. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24311. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24312. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24313. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24314. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24315. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24316. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24317. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24318. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24319. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24320. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24321. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24322. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24323. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24324. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  24325. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24326. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24327. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24328. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24329. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24330. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24331. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24332. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24333. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24334. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24335. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24336. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24337. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24338. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24339. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24340. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24341. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24342. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24343. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24344. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24345. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24346. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24347. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24348. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24349. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  24350. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24351. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24352. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24353. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24354. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24355. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24356. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24357. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24358. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24359. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24360. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24361. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24362. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24363. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24364. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24365. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24366. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24367. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24368. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24369. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24370. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24371. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24372. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24373. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24374. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  24375. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24376. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24377. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24378. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24379. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24380. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24381. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24382. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24383. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24384. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24385. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24386. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24387. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24388. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24389. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24390. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24391. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24392. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24393. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24394. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24395. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24396. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24397. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24398. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24399. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  24400. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24401. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24402. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24403. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24404. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24405. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24406. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24407. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24408. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24409. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24410. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24411. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24412. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24413. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24414. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24415. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24416. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24417. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24418. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24419. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24420. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24421. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24422. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24423. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24424. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  24425. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24426. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24427. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24428. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24429. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24430. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24431. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24432. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24433. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24434. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24435. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24436. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24437. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24438. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24439. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24440. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24441. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24442. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24443. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24444. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24445. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24446. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24447. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24448. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24449. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  24450. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  24451. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  24452. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24453. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24454. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24455. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24456. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24457. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24458. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24459. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24460. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24461. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24462. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24463. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24464. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24465. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24466. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24467. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24468. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24469. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24470. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24471. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24472. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24473. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24474. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24475. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24476. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  24477. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24478. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24479. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24480. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24481. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24482. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24483. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24484. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24485. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24486. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24487. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24488. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24489. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24490. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24491. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24492. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24493. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24494. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24495. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24496. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24497. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24498. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24499. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24500. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24501. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  24502. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24503. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24504. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24505. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24506. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24507. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24508. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24509. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24510. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24511. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24512. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24513. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24514. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24515. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24516. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24517. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24518. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24519. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24520. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24521. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24522. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24523. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24524. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24525. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24526. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  24527. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24528. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24529. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24530. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24531. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24532. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24533. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24534. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24535. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24536. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24537. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24538. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24539. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24540. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24541. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24542. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24543. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24544. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24545. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24546. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24547. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24548. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24549. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24550. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24551. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  24552. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24553. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24554. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24555. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24556. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24557. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24558. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24559. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24560. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24561. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24562. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24563. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24564. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24565. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24566. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24567. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24568. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24569. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24570. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24571. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24572. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24573. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24574. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24575. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24576. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  24577. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24578. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24579. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24580. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24581. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24582. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24583. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24584. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24585. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24586. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24587. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24588. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24589. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24590. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24591. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24592. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24593. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24594. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24595. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24596. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24597. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24598. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24599. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24600. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24601. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  24602. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24603. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24604. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24605. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24606. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24607. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24608. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24609. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24610. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24611. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24612. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24613. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24614. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24615. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24616. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24617. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24618. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24619. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24620. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24621. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24622. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24623. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24624. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24625. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24626. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  24627. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24628. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24629. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24630. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24631. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24632. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24633. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24634. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24635. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24636. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24637. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24638. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24639. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24640. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24641. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24642. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24643. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24644. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24645. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24646. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24647. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24648. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24649. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24650. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24651. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  24652. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  24653. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  24654. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24655. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24656. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24657. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24658. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24659. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24660. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24661. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24662. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24663. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24664. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24665. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24666. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24667. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24668. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24669. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24670. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24671. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24672. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24673. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24674. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24675. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24676. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24677. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24678. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  24679. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24680. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24681. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24682. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24683. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24684. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24685. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24686. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24687. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24688. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24689. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24690. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24691. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24692. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24693. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24694. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24695. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24696. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24697. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24698. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24699. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24700. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24701. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24702. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24703. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  24704. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24705. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24706. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24707. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24708. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24709. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24710. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24711. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24712. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24713. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24714. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24715. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24716. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24717. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24718. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24719. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24720. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24721. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24722. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24723. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24724. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24725. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24726. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24727. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24728. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  24729. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24730. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24731. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24732. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24733. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24734. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24735. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24736. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24737. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24738. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24739. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24740. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24741. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24742. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24743. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24744. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24745. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24746. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24747. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24748. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24749. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24750. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24751. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24752. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24753. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  24754. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24755. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24756. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24757. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24758. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24759. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24760. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24761. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24762. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24763. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24764. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24765. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24766. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24767. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24768. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24769. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24770. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24771. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24772. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24773. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24774. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  24775. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24776. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24777. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24778. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24779. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24780. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24781. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24782. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24783. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24784. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24785. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24786. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24787. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24788. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24789. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24790. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24791. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24792. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24793. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24794. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24795. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  24796. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24797. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24798. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24799. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24800. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24801. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24802. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24803. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24804. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24805. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24806. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24807. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24808. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24809. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24810. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24811. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24812. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24813. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24814. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24815. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24816. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  24817. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24818. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24819. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24820. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24821. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24822. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24823. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24824. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24825. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24826. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24827. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24828. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24829. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24830. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24831. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24832. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24833. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24834. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24835. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24836. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24837. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  24838. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24839. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24840. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24841. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24842. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24843. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24844. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24845. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24846. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24847. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24848. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24849. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24850. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  24851. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24852. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24853. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24854. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24855. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24856. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24857. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24858. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24859. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24860. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24861. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24862. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24863. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  24864. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24865. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24866. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24867. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24868. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  24869. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24870. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24871. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24872. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  24873. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24874. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24875. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24876. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24877. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24878. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24879. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24880. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24881. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24882. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24883. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24884. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24885. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  24886. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24887. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24888. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24889. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24890. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24891. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24892. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24893. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  24894. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24895. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24896. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  24897. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24898. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  24899. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  24900. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  24901. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  24902. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24903. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24904. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24905. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24906. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24907. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24908. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24909. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  24910. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24911. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24912. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24913. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24914. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  24915. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24916. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24917. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24918. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  24919. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24920. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24921. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24922. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  24923. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24924. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24925. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24926. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  24927. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  24928. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24929. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24930. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  24931. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24932. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24933. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24934. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24935. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24936. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24937. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  24938. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24939. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24940. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24941. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24942. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24943. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  24944. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24945. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24946. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  24947. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  24948. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  24949. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24950. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  24951. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24952. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24953. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  24954. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24955. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24956. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  24957. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24958. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24959. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  24960. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  24961. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24962. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  24963. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24964. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24965. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  24966. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24967. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24968. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  24969. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24970. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24971. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24972. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  24973. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24974. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24975. {"STUB_RX", NULL, "STUB_RX Mixer"},
  24976. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24977. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24978. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  24979. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24980. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24981. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  24982. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24983. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24984. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24985. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24986. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24987. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  24988. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  24989. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  24990. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  24991. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  24992. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  24993. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  24994. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24995. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24996. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24997. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  24998. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24999. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25000. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  25001. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  25002. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25003. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  25004. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  25005. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  25006. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  25007. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25008. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25009. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25010. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25011. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25012. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25013. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25014. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25015. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25016. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25017. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25018. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25019. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25020. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  25021. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25022. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  25023. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25024. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  25025. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  25026. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  25027. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25028. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  25029. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25030. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25031. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  25032. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25033. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25034. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25035. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25036. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25037. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25038. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25039. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25040. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25041. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25042. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25043. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  25044. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25045. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25046. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25047. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25048. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25049. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25050. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25051. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25052. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25053. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25054. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  25055. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25056. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25057. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25058. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25059. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25060. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25061. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25062. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25063. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  25064. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25065. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25066. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25067. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25068. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25069. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25070. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25071. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25072. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25073. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25074. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  25075. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25076. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25077. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25078. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25079. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25080. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25081. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25082. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25083. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  25084. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25085. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25086. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25087. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25088. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25089. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25090. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25091. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  25092. /* Backend Enablement */
  25093. {"BE_OUT", NULL, "PRI_I2S_RX"},
  25094. {"BE_OUT", NULL, "SEC_I2S_RX"},
  25095. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  25096. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  25097. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  25098. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25099. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  25100. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  25101. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  25102. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  25103. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  25104. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  25105. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  25106. {"BE_OUT", NULL, "HDMI"},
  25107. {"BE_OUT", NULL, "DISPLAY_PORT"},
  25108. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  25109. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  25110. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  25111. {"BE_OUT", NULL, "MI2S_RX"},
  25112. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  25113. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  25114. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  25115. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  25116. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  25117. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  25118. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  25119. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  25120. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  25121. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  25122. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  25123. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  25124. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  25125. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  25126. {"BE_OUT", NULL, "INT_FM_RX"},
  25127. {"BE_OUT", NULL, "PCM_RX"},
  25128. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25129. {"BE_OUT", NULL, "AUX_PCM_RX"},
  25130. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  25131. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  25132. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  25133. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  25134. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  25135. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  25136. {"BE_OUT", NULL, "INT_FM_RX"},
  25137. {"BE_OUT", NULL, "PCM_RX"},
  25138. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25139. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  25140. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  25141. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  25142. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  25143. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  25144. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  25145. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  25146. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  25147. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  25148. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  25149. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  25150. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  25151. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  25152. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  25153. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  25154. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  25155. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  25156. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  25157. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  25158. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  25159. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  25160. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  25161. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  25162. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  25163. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  25164. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  25165. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  25166. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  25167. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  25168. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  25169. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  25170. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  25171. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  25172. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  25173. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  25174. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  25175. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  25176. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  25177. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  25178. {"PRI_I2S_TX", NULL, "BE_IN"},
  25179. {"MI2S_TX", NULL, "BE_IN"},
  25180. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  25181. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  25182. {"PRI_MI2S_TX", NULL, "BE_IN"},
  25183. {"TERT_MI2S_TX", NULL, "BE_IN"},
  25184. {"INT0_MI2S_TX", NULL, "BE_IN"},
  25185. {"INT2_MI2S_TX", NULL, "BE_IN"},
  25186. {"INT3_MI2S_TX", NULL, "BE_IN"},
  25187. {"INT4_MI2S_TX", NULL, "BE_IN"},
  25188. {"INT5_MI2S_TX", NULL, "BE_IN"},
  25189. {"SEC_MI2S_TX", NULL, "BE_IN"},
  25190. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  25191. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  25192. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  25193. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  25194. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  25195. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  25196. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  25197. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  25198. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  25199. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  25200. {"USB_AUDIO_TX", NULL, "BE_IN" },
  25201. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  25202. {"INT_FM_TX", NULL, "BE_IN"},
  25203. {"PCM_TX", NULL, "BE_IN"},
  25204. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25205. {"BE_OUT", NULL, "STUB_RX"},
  25206. {"STUB_TX", NULL, "BE_IN"},
  25207. {"STUB_1_TX", NULL, "BE_IN"},
  25208. {"BE_OUT", NULL, "AUX_PCM_RX"},
  25209. {"AUX_PCM_TX", NULL, "BE_IN"},
  25210. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  25211. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  25212. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  25213. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  25214. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  25215. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  25216. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  25217. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  25218. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  25219. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25220. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25221. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  25222. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  25223. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  25224. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  25225. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  25226. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  25227. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  25228. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  25229. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  25230. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  25231. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  25232. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  25233. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  25234. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  25235. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  25236. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  25237. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  25238. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  25239. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  25240. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  25241. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  25242. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  25243. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  25244. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  25245. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  25246. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  25247. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  25248. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  25249. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  25250. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  25251. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  25252. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  25253. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  25254. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  25255. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  25256. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  25257. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  25258. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  25259. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  25260. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  25261. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  25262. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  25263. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  25264. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  25265. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  25266. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  25267. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  25268. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  25269. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  25270. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  25271. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  25272. };
  25273. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  25274. struct snd_pcm_hw_params *params)
  25275. {
  25276. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  25277. unsigned int be_id = rtd->dai_link->id;
  25278. if (be_id >= MSM_BACKEND_DAI_MAX) {
  25279. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  25280. return -EINVAL;
  25281. }
  25282. mutex_lock(&routing_lock);
  25283. msm_bedais[be_id].sample_rate = params_rate(params);
  25284. msm_bedais[be_id].channel = params_channels(params);
  25285. msm_bedais[be_id].format = params_format(params);
  25286. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  25287. __func__, msm_bedais[be_id].sample_rate,
  25288. msm_bedais[be_id].format, be_id);
  25289. mutex_unlock(&routing_lock);
  25290. return 0;
  25291. }
  25292. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  25293. {
  25294. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  25295. unsigned int be_id = rtd->dai_link->id;
  25296. int i, session_type, path_type, topology;
  25297. struct msm_pcm_routing_bdai_data *bedai;
  25298. struct msm_pcm_routing_fdai_data *fdai;
  25299. pr_debug("%s: substream->pcm->id:%s\n",
  25300. __func__, substream->pcm->id);
  25301. if (be_id >= MSM_BACKEND_DAI_MAX) {
  25302. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  25303. return -EINVAL;
  25304. }
  25305. bedai = &msm_bedais[be_id];
  25306. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  25307. 0 : 1);
  25308. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  25309. path_type = ADM_PATH_PLAYBACK;
  25310. else
  25311. path_type = ADM_PATH_LIVE_REC;
  25312. mutex_lock(&routing_lock);
  25313. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  25314. if (!is_mm_lsm_fe_id(i))
  25315. continue;
  25316. fdai = &fe_dai_map[i][session_type];
  25317. if (fdai->strm_id != INVALID_SESSION) {
  25318. int idx;
  25319. int port_id;
  25320. unsigned long copp =
  25321. session_copp_map[i][session_type][be_id];
  25322. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  25323. if (test_bit(idx, &copp))
  25324. break;
  25325. if (idx >= MAX_COPPS_PER_PORT) {
  25326. pr_debug("%s: copp idx is invalid, exiting\n",
  25327. __func__);
  25328. continue;
  25329. }
  25330. fdai->be_srate = bedai->sample_rate;
  25331. port_id = get_port_id(bedai->port_id);
  25332. topology = adm_get_topology_for_port_copp_idx(port_id,
  25333. idx);
  25334. msm_routing_unload_topology(topology);
  25335. adm_close(port_id, fdai->perf_mode, idx);
  25336. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  25337. __func__, copp, i, session_type, be_id,
  25338. topology);
  25339. clear_bit(idx,
  25340. &session_copp_map[i][session_type][be_id]);
  25341. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  25342. (fdai->passthr_mode == LEGACY_PCM))
  25343. msm_pcm_routing_deinit_pp(port_id,
  25344. topology);
  25345. }
  25346. }
  25347. bedai->active = 0;
  25348. bedai->sample_rate = 0;
  25349. bedai->channel = 0;
  25350. mutex_unlock(&routing_lock);
  25351. return 0;
  25352. }
  25353. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  25354. {
  25355. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  25356. unsigned int be_id = rtd->dai_link->id;
  25357. int i, path_type, topology;
  25358. int session_type = INVALID_SESSION;
  25359. struct msm_pcm_routing_bdai_data *bedai;
  25360. u32 channels, sample_rate;
  25361. uint16_t bits_per_sample = 16, voc_path_type;
  25362. struct msm_pcm_routing_fdai_data *fdai;
  25363. u32 session_id;
  25364. struct media_format_info voc_be_media_format;
  25365. bool is_lsm;
  25366. pr_debug("%s: substream->pcm->id:%s\n",
  25367. __func__, substream->pcm->id);
  25368. if (be_id >= MSM_BACKEND_DAI_MAX) {
  25369. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  25370. return -EINVAL;
  25371. }
  25372. bedai = &msm_bedais[be_id];
  25373. mutex_lock(&routing_lock);
  25374. if (bedai->active == 1)
  25375. goto done; /* Ignore prepare if back-end already active */
  25376. /* AFE port is not active at this point. However, still
  25377. * go ahead setting active flag under the notion that
  25378. * QDSP6 is able to handle ADM starting before AFE port
  25379. * is started.
  25380. */
  25381. bedai->active = 1;
  25382. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  25383. if (!(is_mm_lsm_fe_id(i) &&
  25384. route_check_fe_id_adm_support(i)))
  25385. continue;
  25386. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  25387. SESSION_TYPE_RX : SESSION_TYPE_TX;
  25388. fdai = &fe_dai_map[i][session_type];
  25389. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  25390. if (fdai->passthr_mode != LEGACY_PCM)
  25391. path_type = ADM_PATH_COMPRESSED_RX;
  25392. else
  25393. path_type = ADM_PATH_PLAYBACK;
  25394. } else {
  25395. if ((fdai->passthr_mode != LEGACY_PCM) &&
  25396. (fdai->passthr_mode != LISTEN))
  25397. path_type = ADM_PATH_COMPRESSED_TX;
  25398. else
  25399. path_type = ADM_PATH_LIVE_REC;
  25400. }
  25401. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  25402. (i <= MSM_FRONTEND_DAI_LSM8);
  25403. if (fdai->strm_id != INVALID_SESSION) {
  25404. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  25405. int port_id = get_port_id(bedai->port_id);
  25406. if (session_type == SESSION_TYPE_TX &&
  25407. fdai->be_srate &&
  25408. (fdai->be_srate != bedai->sample_rate)) {
  25409. pr_debug("%s: flush strm %d diff BE rates\n",
  25410. __func__,
  25411. fdai->strm_id);
  25412. if (fdai->event_info.event_func)
  25413. fdai->event_info.event_func(
  25414. MSM_PCM_RT_EVT_BUF_RECFG,
  25415. fdai->event_info.priv_data);
  25416. fdai->be_srate = 0; /* might not need it */
  25417. }
  25418. bits_per_sample = msm_routing_get_bit_width(
  25419. bedai->format);
  25420. app_type =
  25421. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  25422. if (app_type && is_lsm) {
  25423. app_type_idx =
  25424. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  25425. sample_rate =
  25426. fe_dai_app_type_cfg[i][session_type][be_id]
  25427. .sample_rate;
  25428. bits_per_sample =
  25429. lsm_app_type_cfg[app_type_idx].bit_width;
  25430. } else if (app_type) {
  25431. app_type_idx =
  25432. msm_pcm_routing_get_app_type_idx(app_type);
  25433. sample_rate =
  25434. fe_dai_app_type_cfg[i][session_type]
  25435. [be_id].sample_rate;
  25436. bits_per_sample =
  25437. app_type_cfg[app_type_idx].bit_width;
  25438. } else
  25439. sample_rate = bedai->sample_rate;
  25440. /*
  25441. * check if ADM needs to be configured with different
  25442. * channel mapping than backend
  25443. */
  25444. if (!bedai->adm_override_ch)
  25445. channels = bedai->channel;
  25446. else
  25447. channels = bedai->adm_override_ch;
  25448. acdb_dev_id =
  25449. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  25450. topology = msm_routing_get_adm_topology(i, session_type,
  25451. be_id);
  25452. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  25453. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  25454. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  25455. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  25456. copp_idx = adm_open(port_id, path_type,
  25457. sample_rate, channels, topology,
  25458. fdai->perf_mode, bits_per_sample,
  25459. app_type, acdb_dev_id,
  25460. session_type);
  25461. if ((copp_idx < 0) ||
  25462. (copp_idx >= MAX_COPPS_PER_PORT)) {
  25463. pr_err("%s: adm open failed\n", __func__);
  25464. mutex_unlock(&routing_lock);
  25465. return -EINVAL;
  25466. }
  25467. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  25468. __func__, i, session_type, be_id);
  25469. set_bit(copp_idx,
  25470. &session_copp_map[i][session_type][be_id]);
  25471. if (msm_is_resample_needed(
  25472. sample_rate,
  25473. bedai->sample_rate))
  25474. adm_copp_mfc_cfg(port_id, copp_idx,
  25475. bedai->sample_rate);
  25476. msm_pcm_routing_build_matrix(i, session_type, path_type,
  25477. fdai->perf_mode, fdai->passthr_mode);
  25478. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  25479. (fdai->passthr_mode == LEGACY_PCM))
  25480. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  25481. topology, channels);
  25482. }
  25483. }
  25484. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  25485. session_id = msm_pcm_routing_get_voc_sessionid(i);
  25486. if (session_id) {
  25487. pr_debug("%s voice session_id: 0x%x\n", __func__,
  25488. session_id);
  25489. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  25490. voc_path_type = RX_PATH;
  25491. else
  25492. voc_path_type = TX_PATH;
  25493. voc_set_route_flag(session_id, voc_path_type, 1);
  25494. memset(&voc_be_media_format, 0,
  25495. sizeof(struct media_format_info));
  25496. voc_be_media_format.port_id = bedai->port_id;
  25497. voc_be_media_format.num_channels = bedai->channel;
  25498. voc_be_media_format.sample_rate = bedai->sample_rate;
  25499. voc_be_media_format.bits_per_sample = bedai->format;
  25500. /* Defaulting this to 1 for voice call usecases */
  25501. voc_be_media_format.channel_mapping[0] = 1;
  25502. voc_set_device_config(session_id, voc_path_type,
  25503. &voc_be_media_format);
  25504. if (voc_get_route_flag(session_id, RX_PATH) &&
  25505. voc_get_route_flag(session_id, TX_PATH))
  25506. voc_enable_device(session_id);
  25507. }
  25508. }
  25509. /* Check if backend is an external ec ref port and set as needed */
  25510. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  25511. memset(&voc_be_media_format, 0,
  25512. sizeof(struct media_format_info));
  25513. /* Get format info for ec ref port from msm_bedais[] */
  25514. voc_be_media_format.port_id = bedai->port_id;
  25515. voc_be_media_format.num_channels = bedai->channel;
  25516. voc_be_media_format.bits_per_sample = bedai->format;
  25517. voc_be_media_format.sample_rate = bedai->sample_rate;
  25518. /* Defaulting this to 1 for voice call usecases */
  25519. voc_be_media_format.channel_mapping[0] = 1;
  25520. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  25521. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  25522. __func__, voc_be_media_format.port_id,
  25523. voc_be_media_format.num_channels,
  25524. voc_be_media_format.bits_per_sample,
  25525. voc_be_media_format.sample_rate);
  25526. }
  25527. done:
  25528. mutex_unlock(&routing_lock);
  25529. return 0;
  25530. }
  25531. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  25532. int fe_id)
  25533. {
  25534. int index, topo_id, be_idx;
  25535. unsigned long pp_config = 0;
  25536. bool mute_on;
  25537. int latency, session_type;
  25538. bool compr_passthr_mode = true;
  25539. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  25540. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  25541. pr_err("%s: Device pp params on invalid port %d\n",
  25542. __func__, port_id);
  25543. return -EINVAL;
  25544. }
  25545. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  25546. if (port_id == msm_bedais[be_idx].port_id)
  25547. break;
  25548. }
  25549. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  25550. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  25551. return -EINVAL;
  25552. }
  25553. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  25554. if (msm_bedais_pp_params[index].port_id == port_id)
  25555. break;
  25556. }
  25557. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  25558. pr_err("%s: Invalid backend pp params index %d\n",
  25559. __func__, index);
  25560. return -EINVAL;
  25561. }
  25562. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  25563. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  25564. pr_err("%s: Invalid passthrough topology 0x%x\n",
  25565. __func__, topo_id);
  25566. return -EINVAL;
  25567. }
  25568. session_type =
  25569. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  25570. SESSION_TYPE_RX : SESSION_TYPE_TX;
  25571. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  25572. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  25573. compr_passthr_mode = false;
  25574. pp_config = msm_bedais_pp_params[index].pp_params_config;
  25575. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  25576. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  25577. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  25578. mute_on = msm_bedais_pp_params[index].mute_on;
  25579. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25580. adm_send_compressed_device_mute(port_id,
  25581. copp_idx,
  25582. mute_on);
  25583. }
  25584. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  25585. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  25586. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  25587. &pp_config);
  25588. latency = msm_bedais_pp_params[index].latency;
  25589. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25590. adm_send_compressed_device_latency(port_id,
  25591. copp_idx,
  25592. latency);
  25593. }
  25594. return 0;
  25595. }
  25596. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  25597. {
  25598. uint32_t topology = NULL_COPP_TOPOLOGY;
  25599. void *cal_info = NULL;
  25600. uint32_t size = 0;
  25601. /* Retrieve cal_info size from cal data*/
  25602. if (data_size < sizeof(struct audio_cal_type_basic) +
  25603. sizeof(struct audio_cal_info_adm_top)) {
  25604. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  25605. goto done;
  25606. }
  25607. size = data_size - sizeof(struct audio_cal_type_basic);
  25608. cal_info = kzalloc(size, GFP_KERNEL);
  25609. if (!cal_info)
  25610. goto done;
  25611. memcpy(cal_info,
  25612. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  25613. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  25614. kfree(cal_info);
  25615. cal_info = NULL;
  25616. done:
  25617. pr_debug("%s: Using topology %d\n", __func__, topology);
  25618. return topology;
  25619. }
  25620. static void msm_routing_load_topology(size_t data_size, void *data)
  25621. {
  25622. uint32_t topology_id;
  25623. int ret = -EINVAL;
  25624. topology_id = msm_routing_get_topology(data_size, data);
  25625. if (topology_id != NULL_COPP_TOPOLOGY)
  25626. ret = q6core_load_unload_topo_modules(topology_id,
  25627. CORE_LOAD_TOPOLOGY);
  25628. if (ret < 0)
  25629. pr_debug("%s %d load topology failed\n",
  25630. __func__, topology_id);
  25631. }
  25632. static void msm_routing_unload_topology(uint32_t topology_id)
  25633. {
  25634. int ret = -EINVAL;
  25635. if (topology_id != NULL_COPP_TOPOLOGY)
  25636. ret = q6core_load_unload_topo_modules(topology_id,
  25637. CORE_UNLOAD_TOPOLOGY);
  25638. if (ret < 0)
  25639. pr_debug("%s %d unload topology failed\n",
  25640. __func__, topology_id);
  25641. }
  25642. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  25643. struct snd_ctl_elem_value *ucontrol)
  25644. {
  25645. int pp_id = ucontrol->value.integer.value[0];
  25646. int port_id = 0;
  25647. int index, be_idx, i, topo_id, idx;
  25648. bool mute;
  25649. int latency, session_type;
  25650. bool compr_passthr_mode = true;
  25651. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  25652. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  25653. port_id = msm_bedais[be_idx].port_id;
  25654. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  25655. break;
  25656. }
  25657. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  25658. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  25659. return -EINVAL;
  25660. }
  25661. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  25662. if (msm_bedais_pp_params[index].port_id == port_id)
  25663. break;
  25664. }
  25665. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  25666. pr_err("%s: Invalid pp params backend index %d\n",
  25667. __func__, index);
  25668. return -EINVAL;
  25669. }
  25670. session_type =
  25671. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  25672. SESSION_TYPE_RX : SESSION_TYPE_TX;
  25673. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  25674. MSM_FRONTEND_DAI_MM_SIZE) {
  25675. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  25676. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  25677. compr_passthr_mode = false;
  25678. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  25679. unsigned long copp =
  25680. session_copp_map[i]
  25681. [SESSION_TYPE_RX][be_idx];
  25682. if (!test_bit(idx, &copp))
  25683. continue;
  25684. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  25685. idx);
  25686. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  25687. continue;
  25688. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  25689. __func__, port_id, copp, msm_bedais[be_idx].active,
  25690. fe_dai_map[i][session_type].passthr_mode);
  25691. switch (pp_id) {
  25692. case ADM_PP_PARAM_MUTE_ID:
  25693. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  25694. mute = ucontrol->value.integer.value[1] ? true : false;
  25695. msm_bedais_pp_params[index].mute_on = mute;
  25696. set_bit(ADM_PP_PARAM_MUTE_BIT,
  25697. &msm_bedais_pp_params[index].pp_params_config);
  25698. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25699. adm_send_compressed_device_mute(port_id,
  25700. idx, mute);
  25701. break;
  25702. case ADM_PP_PARAM_LATENCY_ID:
  25703. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  25704. msm_bedais_pp_params[index].latency =
  25705. ucontrol->value.integer.value[1];
  25706. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  25707. &msm_bedais_pp_params[index].pp_params_config);
  25708. latency = msm_bedais_pp_params[index].latency =
  25709. ucontrol->value.integer.value[1];
  25710. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25711. adm_send_compressed_device_latency(port_id,
  25712. idx, latency);
  25713. break;
  25714. default:
  25715. pr_info("%s, device pp param %d not supported\n",
  25716. __func__, pp_id);
  25717. break;
  25718. }
  25719. }
  25720. }
  25721. return 0;
  25722. }
  25723. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  25724. struct snd_ctl_elem_value *ucontrol)
  25725. {
  25726. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  25727. return 0;
  25728. }
  25729. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  25730. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  25731. 0, 3, msm_routing_get_device_pp_params_mixer,
  25732. msm_routing_put_device_pp_params_mixer),
  25733. };
  25734. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  25735. struct snd_ctl_elem_value *ucontrol)
  25736. {
  25737. ucontrol->value.integer.value[0] =
  25738. core_get_license_status(ASM_MEDIA_FMT_APTX);
  25739. pr_debug("%s: status %ld\n", __func__,
  25740. ucontrol->value.integer.value[0]);
  25741. return 0;
  25742. }
  25743. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  25744. struct snd_ctl_elem_value *ucontrol)
  25745. {
  25746. int32_t status = 0;
  25747. status = core_set_license(ucontrol->value.integer.value[0],
  25748. APTX_CLASSIC_DEC_LICENSE_ID);
  25749. pr_debug("%s: status %d\n", __func__, status);
  25750. return status;
  25751. }
  25752. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  25753. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  25754. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  25755. msm_aptx_dec_license_control_put),
  25756. };
  25757. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  25758. struct snd_ctl_elem_value *ucontrol)
  25759. {
  25760. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  25761. uint32_t be_idx = ucontrol->value.integer.value[0];
  25762. int i;
  25763. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  25764. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  25765. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  25766. pr_err("%s: Invalid channel map %d\n",
  25767. __func__, channel_map[i]);
  25768. return -EINVAL;
  25769. }
  25770. }
  25771. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  25772. return 0;
  25773. }
  25774. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  25775. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  25776. MSM_BACKEND_DAI_MAX, 0,
  25777. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  25778. msm_routing_put_port_chmap_mixer),
  25779. };
  25780. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  25781. struct snd_ctl_elem_info *uinfo)
  25782. {
  25783. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  25784. uinfo->count = sizeof(be_dai_name_table);
  25785. return 0;
  25786. }
  25787. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  25788. unsigned int __user *bytes,
  25789. unsigned int size)
  25790. {
  25791. int i;
  25792. int ret = 0;
  25793. if (size < sizeof(be_dai_name_table)) {
  25794. pr_err("%s: invalid size %d requested, returning\n",
  25795. __func__, size);
  25796. ret = -EINVAL;
  25797. goto done;
  25798. }
  25799. /*
  25800. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  25801. * needed when adding new backends
  25802. */
  25803. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  25804. be_dai_name_table[i].be_id = i;
  25805. strlcpy(be_dai_name_table[i].be_name,
  25806. msm_bedais[i].name,
  25807. LPASS_BE_NAME_MAX_LENGTH);
  25808. }
  25809. ret = copy_to_user(bytes, &be_dai_name_table,
  25810. sizeof(be_dai_name_table));
  25811. if (ret) {
  25812. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  25813. ret = -EFAULT;
  25814. }
  25815. done:
  25816. return ret;
  25817. }
  25818. static const struct snd_kcontrol_new
  25819. msm_routing_be_dai_name_table_mixer_controls[] = {
  25820. {
  25821. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  25822. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  25823. .info = msm_routing_be_dai_name_table_info,
  25824. .name = "Backend DAI Name Table",
  25825. .tlv.c = snd_soc_bytes_tlv_callback,
  25826. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  25827. .max = sizeof(be_dai_name_table),
  25828. .get = msm_routing_be_dai_name_table_tlv_get,
  25829. }
  25830. },
  25831. };
  25832. static int msm_routing_stereo_channel_reverse_control_get(
  25833. struct snd_kcontrol *kcontrol,
  25834. struct snd_ctl_elem_value *ucontrol)
  25835. {
  25836. ucontrol->value.integer.value[0] = swap_ch;
  25837. pr_debug("%s: Swap channel value: %ld\n", __func__,
  25838. ucontrol->value.integer.value[0]);
  25839. return 0;
  25840. }
  25841. static int msm_routing_stereo_channel_reverse_control_put(
  25842. struct snd_kcontrol *kcontrol,
  25843. struct snd_ctl_elem_value *ucontrol)
  25844. {
  25845. int i, idx, be_index, port_id;
  25846. int ret = 0;
  25847. unsigned long copp;
  25848. pr_debug("%s Swap channel value:%ld\n", __func__,
  25849. ucontrol->value.integer.value[0]);
  25850. swap_ch = ucontrol->value.integer.value[0];
  25851. mutex_lock(&routing_lock);
  25852. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  25853. port_id = msm_bedais[be_index].port_id;
  25854. if (!msm_bedais[be_index].active)
  25855. continue;
  25856. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  25857. MSM_FRONTEND_DAI_MM_SIZE) {
  25858. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  25859. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  25860. if (!test_bit(idx, &copp))
  25861. continue;
  25862. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  25863. __func__, port_id, idx);
  25864. ret = adm_swap_speaker_channels(
  25865. port_id, idx,
  25866. msm_bedais[be_index].sample_rate,
  25867. swap_ch);
  25868. if (ret) {
  25869. pr_err("%s:Swap_channel failed, err=%d\n",
  25870. __func__, ret);
  25871. goto done;
  25872. }
  25873. }
  25874. }
  25875. }
  25876. done:
  25877. mutex_unlock(&routing_lock);
  25878. return ret;
  25879. }
  25880. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  25881. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  25882. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  25883. msm_routing_stereo_channel_reverse_control_put),
  25884. };
  25885. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  25886. struct snd_ctl_elem_info *uinfo)
  25887. {
  25888. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  25889. uinfo->count = 1;
  25890. return 0;
  25891. }
  25892. static int msm_routing_instance_id_support_put(
  25893. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  25894. {
  25895. bool supported = ucontrol->value.integer.value[0] ? true : false;
  25896. q6common_update_instance_id_support(supported);
  25897. return 0;
  25898. }
  25899. static int msm_routing_instance_id_support_get(
  25900. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  25901. {
  25902. bool supported = false;
  25903. supported = q6common_is_instance_id_supported();
  25904. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  25905. return 0;
  25906. }
  25907. static const struct snd_kcontrol_new
  25908. msm_routing_feature_support_mixer_controls[] = {
  25909. {
  25910. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  25911. SNDRV_CTL_ELEM_ACCESS_WRITE,
  25912. .info = msm_routing_instance_id_support_info,
  25913. .name = "Instance ID Support",
  25914. .put = msm_routing_instance_id_support_put,
  25915. .get = msm_routing_instance_id_support_get,
  25916. },
  25917. };
  25918. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  25919. .hw_params = msm_pcm_routing_hw_params,
  25920. .close = msm_pcm_routing_close,
  25921. .prepare = msm_pcm_routing_prepare,
  25922. };
  25923. /* Not used but frame seems to require it */
  25924. static int msm_routing_probe(struct snd_soc_component *component)
  25925. {
  25926. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  25927. ARRAY_SIZE(msm_qdsp6_widgets));
  25928. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  25929. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  25930. snd_soc_dapm_add_routes(&component->dapm, intercon,
  25931. ARRAY_SIZE(intercon));
  25932. snd_soc_dapm_new_widgets(component->dapm.card);
  25933. snd_soc_add_component_controls(component, lsm_controls,
  25934. ARRAY_SIZE(lsm_controls));
  25935. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  25936. ARRAY_SIZE(aanc_slim_0_rx_mux));
  25937. snd_soc_add_component_controls(component, aanc_noise_level,
  25938. ARRAY_SIZE(aanc_noise_level));
  25939. snd_soc_add_component_controls(component, msm_voc_session_controls,
  25940. ARRAY_SIZE(msm_voc_session_controls));
  25941. snd_soc_add_component_controls(component, app_type_cfg_controls,
  25942. ARRAY_SIZE(app_type_cfg_controls));
  25943. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  25944. ARRAY_SIZE(lsm_app_type_cfg_controls));
  25945. snd_soc_add_component_controls(component, module_cfg_controls,
  25946. ARRAY_SIZE(module_cfg_controls));
  25947. snd_soc_add_component_controls(component,
  25948. stereo_to_custom_stereo_controls,
  25949. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  25950. snd_soc_add_component_controls(component, ec_ref_param_controls,
  25951. ARRAY_SIZE(ec_ref_param_controls));
  25952. snd_soc_add_component_controls(component, channel_mixer_controls,
  25953. ARRAY_SIZE(channel_mixer_controls));
  25954. msm_qti_pp_add_controls(component);
  25955. msm_dts_srs_tm_add_controls(component);
  25956. msm_dolby_dap_add_controls(component);
  25957. snd_soc_add_component_controls(component,
  25958. use_ds1_or_ds2_controls,
  25959. ARRAY_SIZE(use_ds1_or_ds2_controls));
  25960. snd_soc_add_component_controls(component,
  25961. device_pp_params_mixer_controls,
  25962. ARRAY_SIZE(device_pp_params_mixer_controls));
  25963. snd_soc_add_component_controls(component,
  25964. msm_routing_be_dai_name_table_mixer_controls,
  25965. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  25966. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  25967. ARRAY_SIZE(msm_source_tracking_controls));
  25968. snd_soc_add_component_controls(component, adm_channel_config_controls,
  25969. ARRAY_SIZE(adm_channel_config_controls));
  25970. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  25971. ARRAY_SIZE(aptx_dec_license_controls));
  25972. snd_soc_add_component_controls(component,
  25973. stereo_channel_reverse_control,
  25974. ARRAY_SIZE(stereo_channel_reverse_control));
  25975. snd_soc_add_component_controls(
  25976. component, msm_routing_feature_support_mixer_controls,
  25977. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  25978. snd_soc_add_component_controls(component,
  25979. port_multi_channel_map_mixer_controls,
  25980. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  25981. return 0;
  25982. }
  25983. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  25984. {
  25985. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  25986. }
  25987. void msm_routing_pcm_free(struct snd_pcm *pcm)
  25988. {
  25989. msm_pcm_routing_hwdep_free(pcm);
  25990. }
  25991. static struct snd_soc_component_driver msm_soc_routing_component = {
  25992. .name = DRV_NAME,
  25993. .ops = &msm_routing_pcm_ops,
  25994. .probe = msm_routing_probe,
  25995. .pcm_new = msm_routing_pcm_new,
  25996. .pcm_free = msm_routing_pcm_free,
  25997. };
  25998. static int msm_routing_pcm_probe(struct platform_device *pdev)
  25999. {
  26000. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  26001. return snd_soc_register_component(&pdev->dev,
  26002. &msm_soc_routing_component,
  26003. NULL, 0);
  26004. }
  26005. static int msm_routing_pcm_remove(struct platform_device *pdev)
  26006. {
  26007. snd_soc_unregister_component(&pdev->dev);
  26008. return 0;
  26009. }
  26010. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  26011. {.compatible = "qcom,msm-pcm-routing"},
  26012. {}
  26013. };
  26014. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  26015. static struct platform_driver msm_routing_pcm_driver = {
  26016. .driver = {
  26017. .name = "msm-pcm-routing",
  26018. .owner = THIS_MODULE,
  26019. .of_match_table = msm_pcm_routing_dt_match,
  26020. .suppress_bind_attrs = true,
  26021. },
  26022. .probe = msm_routing_pcm_probe,
  26023. .remove = msm_routing_pcm_remove,
  26024. };
  26025. int msm_routing_check_backend_enabled(int fedai_id)
  26026. {
  26027. int i;
  26028. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  26029. /* bad ID assigned in machine driver */
  26030. pr_err("%s: bad MM ID\n", __func__);
  26031. return 0;
  26032. }
  26033. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  26034. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  26035. return msm_bedais[i].active;
  26036. }
  26037. return 0;
  26038. }
  26039. static int get_cal_type_index(int32_t cal_type)
  26040. {
  26041. int ret = -EINVAL;
  26042. switch (cal_type) {
  26043. case ADM_TOPOLOGY_CAL_TYPE:
  26044. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  26045. break;
  26046. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  26047. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  26048. break;
  26049. default:
  26050. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  26051. }
  26052. return ret;
  26053. }
  26054. static int msm_routing_set_cal(int32_t cal_type,
  26055. size_t data_size, void *data)
  26056. {
  26057. int ret = 0;
  26058. int cal_index;
  26059. pr_debug("%s\n", __func__);
  26060. cal_index = get_cal_type_index(cal_type);
  26061. if (cal_index < 0) {
  26062. pr_err("%s: Could not get cal index %d\n",
  26063. __func__, cal_index);
  26064. ret = -EINVAL;
  26065. goto done;
  26066. }
  26067. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  26068. if (ret < 0) {
  26069. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  26070. __func__, ret, cal_type);
  26071. ret = -EINVAL;
  26072. goto done;
  26073. }
  26074. /* Pre-load if it is ADM topology */
  26075. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  26076. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  26077. msm_routing_load_topology(data_size, data);
  26078. }
  26079. done:
  26080. return ret;
  26081. }
  26082. static void msm_routing_delete_cal_data(void)
  26083. {
  26084. pr_debug("%s\n", __func__);
  26085. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  26086. }
  26087. static int msm_routing_init_cal_data(void)
  26088. {
  26089. int ret = 0;
  26090. struct cal_type_info cal_type_info[] = {
  26091. {{ADM_TOPOLOGY_CAL_TYPE,
  26092. {NULL, NULL, NULL,
  26093. msm_routing_set_cal, NULL, NULL} },
  26094. {NULL, NULL, cal_utils_match_buf_num} },
  26095. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  26096. {NULL, NULL, NULL,
  26097. msm_routing_set_cal, NULL, NULL} },
  26098. {NULL, NULL, cal_utils_match_buf_num} },
  26099. };
  26100. pr_debug("%s\n", __func__);
  26101. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  26102. &cal_type_info[0]);
  26103. if (ret < 0) {
  26104. pr_err("%s: could not create cal type!\n",
  26105. __func__);
  26106. ret = -EINVAL;
  26107. goto err;
  26108. }
  26109. return ret;
  26110. err:
  26111. msm_routing_delete_cal_data();
  26112. return ret;
  26113. }
  26114. int __init msm_soc_routing_platform_init(void)
  26115. {
  26116. mutex_init(&routing_lock);
  26117. if (msm_routing_init_cal_data())
  26118. pr_err("%s: could not init cal data!\n", __func__);
  26119. afe_set_routing_callback(
  26120. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  26121. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  26122. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  26123. return platform_driver_register(&msm_routing_pcm_driver);
  26124. }
  26125. void msm_soc_routing_platform_exit(void)
  26126. {
  26127. msm_routing_delete_cal_data();
  26128. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  26129. mutex_destroy(&routing_lock);
  26130. platform_driver_unregister(&msm_routing_pcm_driver);
  26131. }
  26132. MODULE_DESCRIPTION("MSM routing platform driver");
  26133. MODULE_LICENSE("GPL v2");