msm-pcm-routing-v2.c 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static bool hifi_filter_enabled;
  76. static int aanc_level;
  77. static int num_app_cfg_types;
  78. static int msm_ec_ref_port_id;
  79. static int afe_loopback_tx_port_index;
  80. static int afe_loopback_tx_port_id = -1;
  81. #define WEIGHT_0_DB 0x4000
  82. /* all the FEs which can support channel mixer */
  83. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  84. /* all the FES which can support channel mixer for bidirection */
  85. static struct msm_pcm_channel_mixer
  86. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  87. /* input BE for each FE */
  88. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  89. enum {
  90. MADNONE,
  91. MADAUDIO,
  92. MADBEACON,
  93. MADULTRASOUND,
  94. MADSWAUDIO,
  95. };
  96. #define ADM_LSM_PORT_INDEX 9
  97. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  98. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  99. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  100. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  101. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  102. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  103. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  104. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  105. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  106. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  107. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  108. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  109. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  110. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  111. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  112. #define LSM_FUNCTION_TEXT "LSM Function"
  113. static const char * const lsm_port_text[] = {
  114. "None",
  115. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  116. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  117. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  118. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  119. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  120. };
  121. struct msm_pcm_route_bdai_pp_params {
  122. u16 port_id; /* AFE port ID */
  123. unsigned long pp_params_config;
  124. bool mute_on;
  125. int latency;
  126. };
  127. static struct msm_pcm_route_bdai_pp_params
  128. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  129. {HDMI_RX, 0, 0, 0},
  130. {DISPLAY_PORT_RX, 0, 0, 0},
  131. };
  132. /*
  133. * The be_dai_name_table is passed to HAL so that it can specify the
  134. * BE ID for the BE it wants to enable based on the name. Thus there
  135. * is a matching table and structure in HAL that need to be updated
  136. * if any changes to these are made.
  137. */
  138. struct msm_pcm_route_bdai_name {
  139. unsigned int be_id;
  140. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  141. };
  142. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  143. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  144. int fe_id);
  145. static void msm_routing_load_topology(size_t data_size, void *data);
  146. static void msm_routing_unload_topology(uint32_t topology_id);
  147. static int msm_routing_get_bit_width(unsigned int format)
  148. {
  149. int bit_width;
  150. switch (format) {
  151. case SNDRV_PCM_FORMAT_S32_LE:
  152. bit_width = 32;
  153. break;
  154. case SNDRV_PCM_FORMAT_S24_LE:
  155. case SNDRV_PCM_FORMAT_S24_3LE:
  156. bit_width = 24;
  157. break;
  158. case SNDRV_PCM_FORMAT_S16_LE:
  159. default:
  160. bit_width = 16;
  161. }
  162. return bit_width;
  163. }
  164. static bool msm_is_resample_needed(int input_sr, int output_sr)
  165. {
  166. bool rc = false;
  167. if (input_sr != output_sr)
  168. rc = true;
  169. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  170. (rc ? "oh yes" : "not really"),
  171. input_sr, output_sr);
  172. return rc;
  173. }
  174. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  175. int channels)
  176. {
  177. int rc = 0;
  178. switch (topology) {
  179. case SRS_TRUMEDIA_TOPOLOGY_ID:
  180. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  181. msm_dts_srs_tm_init(port_id, copp_idx);
  182. break;
  183. case DS2_ADM_COPP_TOPOLOGY_ID:
  184. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  185. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  186. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  187. is_custom_stereo_on);
  188. if (rc < 0)
  189. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  190. __func__, topology, port_id,
  191. is_custom_stereo_on, rc);
  192. break;
  193. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  194. if (is_ds2_on) {
  195. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  196. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  197. is_custom_stereo_on);
  198. if (rc < 0)
  199. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  200. __func__, topology, port_id, rc);
  201. } else {
  202. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  203. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  204. is_custom_stereo_on);
  205. if (rc < 0)
  206. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  207. __func__, topology, port_id, rc);
  208. }
  209. break;
  210. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  211. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  212. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  213. if (rc < 0)
  214. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  215. __func__, topology, port_id, copp_idx, rc);
  216. break;
  217. default:
  218. /* custom topology specific feature param handlers */
  219. break;
  220. }
  221. }
  222. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  223. {
  224. switch (topology) {
  225. case SRS_TRUMEDIA_TOPOLOGY_ID:
  226. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  227. msm_dts_srs_tm_deinit(port_id);
  228. break;
  229. case DS2_ADM_COPP_TOPOLOGY_ID:
  230. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  231. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  232. msm_ds2_dap_deinit(port_id);
  233. break;
  234. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  235. if (is_ds2_on) {
  236. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  237. msm_ds2_dap_deinit(port_id);
  238. } else {
  239. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  240. msm_dolby_dap_deinit(port_id);
  241. }
  242. break;
  243. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  244. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  245. msm_qti_pp_asphere_deinit(port_id);
  246. break;
  247. default:
  248. /* custom topology specific feature deinit handlers */
  249. break;
  250. }
  251. }
  252. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  253. int path_type, int perf_mode)
  254. {
  255. int itr = 0, rc = 0;
  256. if ((path_type == ADM_PATH_PLAYBACK) &&
  257. (perf_mode == LEGACY_PCM_MODE) &&
  258. is_custom_stereo_on) {
  259. for (itr = 0; itr < payload.num_copps; itr++) {
  260. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  261. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  262. continue;
  263. }
  264. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  265. payload.port_id[itr],
  266. payload.copp_idx[itr],
  267. payload.session_id,
  268. Q14_GAIN_ZERO_POINT_FIVE,
  269. Q14_GAIN_ZERO_POINT_FIVE,
  270. Q14_GAIN_ZERO_POINT_FIVE,
  271. Q14_GAIN_ZERO_POINT_FIVE);
  272. if (rc < 0)
  273. pr_err("%s: err setting custom stereo\n",
  274. __func__);
  275. }
  276. }
  277. }
  278. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  279. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  280. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  281. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  282. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  283. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  284. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  285. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  286. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  287. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  288. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  289. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  290. LPASS_BE_AFE_PCM_RX},
  291. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AFE_PCM_TX},
  293. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_AUXPCM_RX},
  295. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_AUXPCM_TX},
  297. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_VOICE_PLAYBACK_TX},
  299. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_VOICE2_PLAYBACK_TX},
  301. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  302. LPASS_BE_INCALL_RECORD_RX},
  303. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  304. LPASS_BE_INCALL_RECORD_TX},
  305. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  306. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  307. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  308. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  309. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  310. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  311. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  312. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  313. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  314. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  315. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  316. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  317. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  318. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  319. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  320. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  321. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  322. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  323. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  324. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  325. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  326. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  327. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  328. LPASS_BE_QUAT_MI2S_RX},
  329. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_QUAT_MI2S_TX},
  331. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_SEC_MI2S_RX},
  333. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_SEC_MI2S_TX},
  335. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_PRI_MI2S_RX},
  337. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_PRI_MI2S_TX},
  339. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_TERT_MI2S_RX},
  341. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_TERT_MI2S_TX},
  343. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_AUDIO_I2S_RX},
  345. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_SEC_AUXPCM_RX},
  347. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_AUXPCM_TX},
  349. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_PRI_SPDIF_RX},
  351. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_SEC_MI2S_RX_SD1},
  353. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_QUIN_MI2S_RX},
  355. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_QUIN_MI2S_TX},
  357. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_SENARY_MI2S_TX},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_PRI_TDM_RX_0},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_TX_0},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_RX_1},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_TX_1},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_RX_2},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_TX_2},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_RX_3},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_TX_3},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_RX_4},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_TX_4},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_RX_5},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_TX_5},
  383. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_RX_6},
  385. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_TX_6},
  387. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_PRI_TDM_RX_7},
  389. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_PRI_TDM_TX_7},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_SEC_TDM_RX_0},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_TX_0},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_RX_1},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_TX_1},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_RX_2},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_TX_2},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_RX_3},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_TX_3},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_RX_4},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_TX_4},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_RX_5},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_TX_5},
  415. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_RX_6},
  417. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_TX_6},
  419. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_SEC_TDM_RX_7},
  421. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_SEC_TDM_TX_7},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_TERT_TDM_RX_0},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_TX_0},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_RX_1},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_TX_1},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_RX_2},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_TX_2},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_RX_3},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_TX_3},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_RX_4},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_TX_4},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_RX_5},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_TX_5},
  447. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_RX_6},
  449. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_TX_6},
  451. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_TERT_TDM_RX_7},
  453. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_TERT_TDM_TX_7},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_QUAT_TDM_RX_0},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_TX_0},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_RX_1},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_TX_1},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_RX_2},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_TX_2},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_RX_3},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_TX_3},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_RX_4},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_TX_4},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_RX_5},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_TX_5},
  479. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_RX_6},
  481. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_TX_6},
  483. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUAT_TDM_RX_7},
  485. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUAT_TDM_TX_7},
  487. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUIN_TDM_RX_0},
  489. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_TX_0},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_RX_1},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_TX_1},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_RX_2},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_TX_2},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_RX_3},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_TX_3},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_RX_4},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_TX_4},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_RX_5},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_TX_5},
  511. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_RX_6},
  513. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_TX_6},
  515. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_QUIN_TDM_RX_7},
  517. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_QUIN_TDM_TX_7},
  519. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_SEN_TDM_RX_0},
  521. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_SEN_TDM_TX_0},
  523. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_SEN_TDM_RX_1},
  525. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_SEN_TDM_TX_1},
  527. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_SEN_TDM_RX_2},
  529. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_SEN_TDM_TX_2},
  531. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_SEN_TDM_RX_3},
  533. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_SEN_TDM_TX_3},
  535. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_SEN_TDM_RX_4},
  537. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_SEN_TDM_TX_4},
  539. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_SEN_TDM_RX_5},
  541. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_SEN_TDM_TX_5},
  543. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_SEN_TDM_RX_6},
  545. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_SEN_TDM_TX_6},
  547. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_SEN_TDM_RX_7},
  549. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_SEN_TDM_TX_7},
  551. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_INT_BT_A2DP_RX},
  553. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_USB_AUDIO_RX},
  555. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_USB_AUDIO_TX},
  557. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_DISPLAY_PORT},
  559. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_DISPLAY_PORT1},
  561. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_TERT_AUXPCM_RX},
  563. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_TERT_AUXPCM_TX},
  565. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_QUAT_AUXPCM_RX},
  567. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_QUAT_AUXPCM_TX},
  569. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_QUIN_AUXPCM_RX},
  571. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_QUIN_AUXPCM_TX},
  573. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_INT0_MI2S_RX},
  575. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_INT0_MI2S_TX},
  577. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_INT1_MI2S_RX},
  579. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_INT1_MI2S_TX},
  581. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_INT2_MI2S_RX},
  583. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_INT2_MI2S_TX},
  585. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_INT3_MI2S_RX},
  587. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_INT3_MI2S_TX},
  589. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_INT4_MI2S_RX},
  591. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_INT4_MI2S_TX},
  593. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_INT5_MI2S_RX},
  595. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_INT5_MI2S_TX},
  597. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_INT6_MI2S_RX},
  599. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_INT6_MI2S_TX},
  601. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_SEN_AUXPCM_RX},
  603. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_SEN_AUXPCM_TX},
  605. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_SENARY_MI2S_RX},
  607. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_WSA_CDC_DMA_RX_0},
  609. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_WSA_CDC_DMA_TX_0},
  611. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_WSA_CDC_DMA_RX_1},
  613. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_WSA_CDC_DMA_TX_1},
  615. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_WSA_CDC_DMA_TX_2},
  617. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_VA_CDC_DMA_TX_0},
  619. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  620. LPASS_BE_VA_CDC_DMA_TX_1},
  621. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  622. LPASS_BE_VA_CDC_DMA_TX_2},
  623. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  624. LPASS_BE_RX_CDC_DMA_RX_0},
  625. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  626. LPASS_BE_TX_CDC_DMA_TX_0},
  627. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  628. LPASS_BE_RX_CDC_DMA_RX_1},
  629. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  630. LPASS_BE_TX_CDC_DMA_TX_1},
  631. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  632. LPASS_BE_RX_CDC_DMA_RX_2},
  633. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  634. LPASS_BE_TX_CDC_DMA_TX_2},
  635. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  636. LPASS_BE_RX_CDC_DMA_RX_3},
  637. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  638. LPASS_BE_TX_CDC_DMA_TX_3},
  639. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  640. LPASS_BE_RX_CDC_DMA_RX_4},
  641. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  642. LPASS_BE_TX_CDC_DMA_TX_4},
  643. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  644. LPASS_BE_RX_CDC_DMA_RX_5},
  645. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  646. LPASS_BE_TX_CDC_DMA_TX_5},
  647. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  648. LPASS_BE_RX_CDC_DMA_RX_6},
  649. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  650. LPASS_BE_RX_CDC_DMA_RX_7},
  651. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  652. LPASS_BE_PRI_SPDIF_TX},
  653. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  654. LPASS_BE_SEC_SPDIF_RX},
  655. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  656. LPASS_BE_SEC_SPDIF_TX},
  657. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  658. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  659. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  660. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  661. LPASS_BE_PRI_META_MI2S_RX},
  662. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_SEC_META_MI2S_RX},
  664. };
  665. /* Track ASM playback & capture sessions of DAI
  666. * Track LSM listen sessions
  667. */
  668. static struct msm_pcm_routing_fdai_data
  669. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  670. /* MULTIMEDIA1 */
  671. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  672. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  673. /* MULTIMEDIA2 */
  674. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  675. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  676. /* MULTIMEDIA3 */
  677. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  678. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  679. /* MULTIMEDIA4 */
  680. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  681. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  682. /* MULTIMEDIA5 */
  683. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  684. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  685. /* MULTIMEDIA6 */
  686. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  687. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  688. /* MULTIMEDIA7*/
  689. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  690. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  691. /* MULTIMEDIA8 */
  692. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  693. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  694. /* MULTIMEDIA9 */
  695. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  696. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  697. /* MULTIMEDIA10 */
  698. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  699. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  700. /* MULTIMEDIA11 */
  701. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  702. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  703. /* MULTIMEDIA12 */
  704. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  705. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  706. /* MULTIMEDIA13 */
  707. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  708. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  709. /* MULTIMEDIA14 */
  710. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  711. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  712. /* MULTIMEDIA15 */
  713. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  714. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  715. /* MULTIMEDIA16 */
  716. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  717. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  718. /* MULTIMEDIA17 */
  719. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  720. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  721. /* MULTIMEDIA18 */
  722. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  723. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  724. /* MULTIMEDIA19 */
  725. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  726. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  727. /* MULTIMEDIA20 */
  728. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  729. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  730. /* MULTIMEDIA21 */
  731. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  732. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  733. /* MULTIMEDIA22 */
  734. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  735. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  736. /* MULTIMEDIA26 */
  737. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  738. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  739. /* MULTIMEDIA27 */
  740. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  741. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  742. /* MULTIMEDIA28 */
  743. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  744. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  745. /* MULTIMEDIA29 */
  746. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  747. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  748. /* MULTIMEDIA30 */
  749. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  750. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  751. /* VOIP */
  752. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  753. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  754. /* AFE_RX */
  755. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  756. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  757. /* AFE_TX */
  758. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  759. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  760. /* VOICE_STUB */
  761. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  762. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  763. /* DTMF_RX */
  764. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  765. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  766. /* QCHAT */
  767. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  768. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  769. /* VOLTE_STUB */
  770. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  771. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  772. /* LSM1 */
  773. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  774. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  775. /* LSM2 */
  776. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  777. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  778. /* LSM3 */
  779. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  780. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  781. /* LSM4 */
  782. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  783. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  784. /* LSM5 */
  785. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  786. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  787. /* LSM6 */
  788. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  789. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  790. /* LSM7 */
  791. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  792. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  793. /* LSM8 */
  794. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  795. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  796. /* VOICE2_STUB */
  797. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  798. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  799. /* VOICEMMODE1 */
  800. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  801. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  802. /* VOICEMMODE2 */
  803. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  804. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  805. };
  806. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  807. [MSM_BACKEND_DAI_MAX];
  808. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  809. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  810. static struct msm_pcm_stream_app_type_cfg
  811. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  812. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  813. /* The caller of this should acquire routing lock */
  814. void msm_pcm_routing_get_bedai_info(int be_idx,
  815. struct msm_pcm_routing_bdai_data *be_dai)
  816. {
  817. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  818. memcpy(be_dai, &msm_bedais[be_idx],
  819. sizeof(struct msm_pcm_routing_bdai_data));
  820. }
  821. /* The caller of this should acquire routing lock */
  822. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  823. struct msm_pcm_routing_fdai_data *fe_dai)
  824. {
  825. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  826. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  827. sizeof(struct msm_pcm_routing_fdai_data));
  828. }
  829. void msm_pcm_routing_acquire_lock(void)
  830. {
  831. mutex_lock(&routing_lock);
  832. }
  833. void msm_pcm_routing_release_lock(void)
  834. {
  835. mutex_unlock(&routing_lock);
  836. }
  837. static int msm_pcm_routing_get_app_type_idx(int app_type)
  838. {
  839. int idx;
  840. pr_debug("%s: app_type: %d\n", __func__, app_type);
  841. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  842. if (app_type_cfg[idx].app_type == app_type)
  843. return idx;
  844. }
  845. pr_info("%s: App type not available, fallback to default\n", __func__);
  846. return 0;
  847. }
  848. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  849. {
  850. int idx;
  851. pr_debug("%s: app_type: %d\n", __func__, app_type);
  852. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  853. if (lsm_app_type_cfg[idx].app_type == app_type)
  854. return idx;
  855. }
  856. pr_debug("%s: App type not available, fallback to default\n", __func__);
  857. return 0;
  858. }
  859. static int get_port_id(int port_id)
  860. {
  861. int ret = port_id;
  862. if (port_id == AFE_LOOPBACK_TX) {
  863. /*
  864. * Return afe_loopback_tx_port_id if set. Else return
  865. * msm_ec_ref_port_id to maintain backward compatibility.
  866. */
  867. if (afe_loopback_tx_port_id != -1)
  868. ret = afe_loopback_tx_port_id;
  869. else
  870. ret = msm_ec_ref_port_id;
  871. }
  872. return ret;
  873. }
  874. static bool is_mm_lsm_fe_id(int fe_id)
  875. {
  876. bool rc = true;
  877. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  878. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  879. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  880. rc = false;
  881. }
  882. return rc;
  883. }
  884. /*
  885. * msm_pcm_routing_send_chmix_cfg:
  886. * send the channel mixer command to mix the input channels
  887. * into output channels.
  888. *
  889. * @fe_id: front end id
  890. * @ip_channel_cnt: input channel count
  891. * @op_channel_cnt: output channel count
  892. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  893. * @session_type: indicates session is of type TX or RX
  894. * @stream_type: indicates either Audio or Listen stream type
  895. */
  896. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  897. int op_channel_cnt, int *ch_wght_coeff,
  898. int session_type, int stream_type)
  899. {
  900. int rc = 0, idx = 0;
  901. int be_index = 0, port_id;
  902. unsigned int session_id = 0;
  903. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  904. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  905. stream_type);
  906. if (!is_mm_lsm_fe_id(fe_id)) {
  907. /* bad ID assigned in machine driver */
  908. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  909. return -EINVAL;
  910. }
  911. if (ch_wght_coeff == NULL) {
  912. pr_err("%s: Null channel weightage coefficients passed\n",
  913. __func__);
  914. return -EINVAL;
  915. }
  916. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  917. port_id = msm_bedais[be_index].port_id;
  918. if (!msm_bedais[be_index].active ||
  919. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  920. continue;
  921. session_id = fe_dai_map[fe_id][session_type].strm_id;
  922. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  923. unsigned long copp =
  924. session_copp_map[fe_id][session_type][be_index];
  925. if (!test_bit(idx, &copp))
  926. continue;
  927. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  928. session_id, ip_channel_cnt,
  929. op_channel_cnt, ch_wght_coeff,
  930. session_type, stream_type);
  931. if (rc < 0)
  932. pr_err("%s: err setting channel mix config\n",
  933. __func__);
  934. }
  935. }
  936. return 0;
  937. }
  938. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  939. /**
  940. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  941. * setting before use case start.
  942. *
  943. * @fe_id: frontend idx
  944. * @type: stream direction type
  945. * @params: parameters of channel mixer setting
  946. *
  947. * Return 0 for success
  948. */
  949. int msm_pcm_routing_set_channel_mixer_cfg(
  950. int fe_id, int type,
  951. struct msm_pcm_channel_mixer *params)
  952. {
  953. int i, j = 0;
  954. channel_mixer_v2[fe_id][type].enable = params->enable;
  955. channel_mixer_v2[fe_id][type].rule = params->rule;
  956. channel_mixer_v2[fe_id][type].input_channel =
  957. params->input_channel;
  958. channel_mixer_v2[fe_id][type].output_channel =
  959. params->output_channel;
  960. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  961. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  962. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  963. params->in_ch_map[i];
  964. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  965. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  966. params->out_ch_map[i];
  967. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  968. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  969. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  970. params->channel_weight[i][j];
  971. channel_mixer_v2[fe_id][type].override_in_ch_map =
  972. params->override_in_ch_map;
  973. channel_mixer_v2[fe_id][type].override_out_ch_map =
  974. params->override_out_ch_map;
  975. return 0;
  976. }
  977. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  978. int msm_pcm_routing_reg_stream_app_type_cfg(
  979. int fedai_id, int session_type, int be_id,
  980. struct msm_pcm_stream_app_type_cfg *cfg_data)
  981. {
  982. int ret = 0;
  983. if (cfg_data == NULL) {
  984. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  985. ret = -EINVAL;
  986. goto done;
  987. }
  988. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  989. __func__, fedai_id, session_type, be_id,
  990. cfg_data->app_type, cfg_data->acdb_dev_id,
  991. cfg_data->sample_rate);
  992. if (!is_mm_lsm_fe_id(fedai_id)) {
  993. pr_err("%s: Invalid machine driver ID %d\n",
  994. __func__, fedai_id);
  995. ret = -EINVAL;
  996. goto done;
  997. }
  998. if (session_type != SESSION_TYPE_RX &&
  999. session_type != SESSION_TYPE_TX) {
  1000. pr_err("%s: Invalid session type %d\n",
  1001. __func__, session_type);
  1002. ret = -EINVAL;
  1003. goto done;
  1004. }
  1005. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1006. pr_err("%s: Received out of bounds be_id %d\n",
  1007. __func__, be_id);
  1008. ret = -EINVAL;
  1009. goto done;
  1010. }
  1011. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1012. /*
  1013. * Store the BE ID of the configuration information set as the latest so
  1014. * the get mixer control knows what to return.
  1015. */
  1016. last_be_id_configured[fedai_id][session_type] = be_id;
  1017. done:
  1018. return ret;
  1019. }
  1020. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1021. /**
  1022. * msm_pcm_routing_get_stream_app_type_cfg
  1023. *
  1024. * Receives fedai_id, session_type, be_id, and populates app_type,
  1025. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1026. * -EINVAL and does not alter passed values.
  1027. *
  1028. * fedai_id - Passed value, front end ID for which app type config is wanted
  1029. * session_type - Passed value, session type for which app type config
  1030. * is wanted
  1031. * be_id - Returned value, back end device id the app type config data is for
  1032. * cfg_data - Returned value, configuration data used by app type config
  1033. */
  1034. int msm_pcm_routing_get_stream_app_type_cfg(
  1035. int fedai_id, int session_type, int *bedai_id,
  1036. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1037. {
  1038. int be_id;
  1039. int ret = 0;
  1040. if (bedai_id == NULL) {
  1041. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1042. ret = -EINVAL;
  1043. goto done;
  1044. } else if (cfg_data == NULL) {
  1045. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1046. ret = -EINVAL;
  1047. goto done;
  1048. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1049. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1050. ret = -EINVAL;
  1051. goto done;
  1052. } else if (session_type != SESSION_TYPE_RX &&
  1053. session_type != SESSION_TYPE_TX) {
  1054. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1055. ret = -EINVAL;
  1056. goto done;
  1057. }
  1058. be_id = last_be_id_configured[fedai_id][session_type];
  1059. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1060. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1061. ret = -EINVAL;
  1062. goto done;
  1063. }
  1064. *bedai_id = be_id;
  1065. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1066. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1067. __func__, fedai_id, session_type, *bedai_id,
  1068. cfg_data->app_type, cfg_data->acdb_dev_id,
  1069. cfg_data->sample_rate);
  1070. done:
  1071. return ret;
  1072. }
  1073. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1074. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1075. int cal_index)
  1076. {
  1077. struct list_head *ptr, *next;
  1078. struct cal_block_data *cal_block = NULL;
  1079. pr_debug("%s\n", __func__);
  1080. list_for_each_safe(ptr, next,
  1081. &cal_data[cal_index]->cal_blocks) {
  1082. cal_block = list_entry(ptr,
  1083. struct cal_block_data, list);
  1084. if (cal_utils_is_cal_stale(cal_block))
  1085. continue;
  1086. if (((struct audio_cal_info_adm_top *)cal_block
  1087. ->cal_info)->path == path) {
  1088. return cal_block;
  1089. }
  1090. }
  1091. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1092. return NULL;
  1093. }
  1094. static struct cal_block_data *msm_routing_find_topology(int path,
  1095. int app_type,
  1096. int acdb_id,
  1097. int cal_index,
  1098. bool exact)
  1099. {
  1100. struct list_head *ptr, *next;
  1101. struct cal_block_data *cal_block = NULL;
  1102. struct audio_cal_info_adm_top *cal_info;
  1103. pr_debug("%s\n", __func__);
  1104. list_for_each_safe(ptr, next,
  1105. &cal_data[cal_index]->cal_blocks) {
  1106. cal_block = list_entry(ptr,
  1107. struct cal_block_data, list);
  1108. if (cal_utils_is_cal_stale(cal_block))
  1109. continue;
  1110. cal_info = (struct audio_cal_info_adm_top *)
  1111. cal_block->cal_info;
  1112. if ((cal_info->path == path) &&
  1113. (cal_info->app_type == app_type) &&
  1114. (cal_info->acdb_id == acdb_id)) {
  1115. return cal_block;
  1116. }
  1117. }
  1118. pr_debug("%s: Can't find topology for path %d, app %d, "
  1119. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1120. exact ? "fail" : "defaulting to search by path");
  1121. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1122. cal_index);
  1123. }
  1124. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1125. int acdb_dev_id, int idx,
  1126. bool exact)
  1127. {
  1128. int topology = -EINVAL;
  1129. struct cal_block_data *cal_block = NULL;
  1130. mutex_lock(&cal_data[idx]->lock);
  1131. cal_block = msm_routing_find_topology(session_type, app_type,
  1132. acdb_dev_id, idx, exact);
  1133. if (cal_block != NULL) {
  1134. topology = ((struct audio_cal_info_adm_top *)
  1135. cal_block->cal_info)->topology;
  1136. }
  1137. mutex_unlock(&cal_data[idx]->lock);
  1138. return topology;
  1139. }
  1140. /*
  1141. * Retrieving cal_block will mark cal_block as stale.
  1142. * Hence it cannot be reused or resent unless the flag
  1143. * is reset.
  1144. */
  1145. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1146. int be_id)
  1147. {
  1148. int topology = NULL_COPP_TOPOLOGY;
  1149. int app_type = 0, acdb_dev_id = 0;
  1150. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1151. __func__, fedai_id, session_type, be_id);
  1152. if (cal_data == NULL)
  1153. goto done;
  1154. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1155. acdb_dev_id =
  1156. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1157. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1158. topology = msm_routing_find_topology_on_index(session_type,
  1159. app_type,
  1160. acdb_dev_id,
  1161. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1162. true /*exact*/);
  1163. if (topology < 0) {
  1164. pr_debug("%s: Check for compatible topology\n", __func__);
  1165. topology = msm_routing_find_topology_on_index(session_type,
  1166. app_type,
  1167. acdb_dev_id,
  1168. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1169. false /*exact*/);
  1170. if (topology < 0)
  1171. topology = NULL_COPP_TOPOLOGY;
  1172. }
  1173. done:
  1174. pr_debug("%s: Using topology %d\n", __func__, topology);
  1175. return topology;
  1176. }
  1177. static uint8_t is_be_dai_extproc(int be_dai)
  1178. {
  1179. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1180. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1181. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1182. return 1;
  1183. else
  1184. return 0;
  1185. }
  1186. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1187. int path_type, int perf_mode,
  1188. uint32_t passthr_mode)
  1189. {
  1190. int i, port_type, j, num_copps = 0;
  1191. struct route_payload payload;
  1192. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1193. path_type == ADM_PATH_COMPRESSED_RX) ?
  1194. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1195. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1196. if (!is_be_dai_extproc(i) &&
  1197. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1198. (msm_bedais[i].active) &&
  1199. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1200. int port_id = get_port_id(msm_bedais[i].port_id);
  1201. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1202. unsigned long copp =
  1203. session_copp_map[fedai_id][sess_type][i];
  1204. if (test_bit(j, &copp)) {
  1205. payload.port_id[num_copps] = port_id;
  1206. payload.copp_idx[num_copps] = j;
  1207. payload.app_type[num_copps] =
  1208. fe_dai_app_type_cfg
  1209. [fedai_id][sess_type][i]
  1210. .app_type;
  1211. payload.acdb_dev_id[num_copps] =
  1212. fe_dai_app_type_cfg
  1213. [fedai_id][sess_type][i]
  1214. .acdb_dev_id;
  1215. payload.sample_rate[num_copps] =
  1216. fe_dai_app_type_cfg
  1217. [fedai_id][sess_type][i]
  1218. .sample_rate;
  1219. num_copps++;
  1220. }
  1221. }
  1222. }
  1223. }
  1224. if (num_copps) {
  1225. payload.num_copps = num_copps;
  1226. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1227. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1228. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1229. }
  1230. }
  1231. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1232. int stream_type)
  1233. {
  1234. int i, session_type, path_type, port_type;
  1235. u32 mode = 0;
  1236. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1237. /* bad ID assigned in machine driver */
  1238. pr_err("%s: bad MM ID\n", __func__);
  1239. return;
  1240. }
  1241. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1242. session_type = SESSION_TYPE_RX;
  1243. path_type = ADM_PATH_PLAYBACK;
  1244. port_type = MSM_AFE_PORT_TYPE_RX;
  1245. } else {
  1246. session_type = SESSION_TYPE_TX;
  1247. path_type = ADM_PATH_LIVE_REC;
  1248. port_type = MSM_AFE_PORT_TYPE_TX;
  1249. }
  1250. mutex_lock(&routing_lock);
  1251. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1252. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1253. if (!is_be_dai_extproc(i) &&
  1254. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1255. (msm_bedais[i].active) &&
  1256. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1257. mode = afe_get_port_type(msm_bedais[i].port_id);
  1258. adm_connect_afe_port(mode, dspst_id,
  1259. msm_bedais[i].port_id);
  1260. break;
  1261. }
  1262. }
  1263. mutex_unlock(&routing_lock);
  1264. }
  1265. static bool route_check_fe_id_adm_support(int fe_id)
  1266. {
  1267. bool rc = true;
  1268. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1269. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1270. /* fe id is listen while port is set to afe */
  1271. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1272. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1273. __func__, fe_id, lsm_port_index);
  1274. rc = false;
  1275. }
  1276. }
  1277. return rc;
  1278. }
  1279. /*
  1280. * msm_pcm_routing_get_pp_ch_cnt:
  1281. * Read the processed channel count
  1282. *
  1283. * @fe_id: Front end ID
  1284. * @session_type: Inidicates RX or TX session type
  1285. */
  1286. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1287. {
  1288. struct msm_pcm_stream_app_type_cfg cfg_data;
  1289. int be_id = 0, app_type_idx = 0, app_type = 0;
  1290. int ret = -EINVAL;
  1291. memset(&cfg_data, 0, sizeof(cfg_data));
  1292. if (!is_mm_lsm_fe_id(fe_id)) {
  1293. pr_err("%s: bad MM ID\n", __func__);
  1294. return -EINVAL;
  1295. }
  1296. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1297. &be_id, &cfg_data);
  1298. if (ret) {
  1299. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1300. return ret;
  1301. }
  1302. app_type = cfg_data.app_type;
  1303. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1304. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1305. }
  1306. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1307. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1308. int dspst_id, int stream_type,
  1309. uint32_t passthr_mode)
  1310. {
  1311. int i, j, session_type, path_type, port_type, topology;
  1312. int num_copps = 0;
  1313. struct route_payload payload;
  1314. u32 channels, sample_rate;
  1315. u16 bit_width = 16;
  1316. bool is_lsm;
  1317. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1318. __func__, fe_id, perf_mode, dspst_id,
  1319. stream_type, passthr_mode);
  1320. if (!is_mm_lsm_fe_id(fe_id)) {
  1321. /* bad ID assigned in machine driver */
  1322. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1323. return -EINVAL;
  1324. }
  1325. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1326. session_type = SESSION_TYPE_RX;
  1327. if (passthr_mode != LEGACY_PCM)
  1328. path_type = ADM_PATH_COMPRESSED_RX;
  1329. else
  1330. path_type = ADM_PATH_PLAYBACK;
  1331. port_type = MSM_AFE_PORT_TYPE_RX;
  1332. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1333. session_type = SESSION_TYPE_TX;
  1334. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1335. path_type = ADM_PATH_COMPRESSED_TX;
  1336. else
  1337. path_type = ADM_PATH_LIVE_REC;
  1338. port_type = MSM_AFE_PORT_TYPE_TX;
  1339. } else {
  1340. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1341. return -EINVAL;
  1342. }
  1343. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1344. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1345. mutex_lock(&routing_lock);
  1346. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1347. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1348. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1349. if (!route_check_fe_id_adm_support(fe_id)) {
  1350. /* ignore adm open if not supported for fe_id */
  1351. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1352. mutex_unlock(&routing_lock);
  1353. return 0;
  1354. }
  1355. payload.num_copps = 0; /* only RX needs to use payload */
  1356. /* re-enable EQ if active */
  1357. msm_qti_pp_send_eq_values(fe_id);
  1358. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1359. if (!is_be_dai_extproc(i) &&
  1360. (afe_get_port_type(msm_bedais[i].port_id) ==
  1361. port_type) &&
  1362. (msm_bedais[i].active) &&
  1363. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1364. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1365. int port_id = get_port_id(msm_bedais[i].port_id);
  1366. /*
  1367. * check if ADM needs to be configured with different
  1368. * channel mapping than backend
  1369. */
  1370. if (!msm_bedais[i].adm_override_ch)
  1371. channels = msm_bedais[i].channel;
  1372. else
  1373. channels = msm_bedais[i].adm_override_ch;
  1374. bit_width = msm_routing_get_bit_width(
  1375. msm_bedais[i].format);
  1376. app_type =
  1377. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1378. if (app_type && is_lsm) {
  1379. app_type_idx =
  1380. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1381. sample_rate =
  1382. fe_dai_app_type_cfg[fe_id][session_type][i]
  1383. .sample_rate;
  1384. bit_width =
  1385. lsm_app_type_cfg[app_type_idx].bit_width;
  1386. } else if (app_type) {
  1387. app_type_idx =
  1388. msm_pcm_routing_get_app_type_idx(
  1389. app_type);
  1390. sample_rate =
  1391. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1392. bit_width =
  1393. app_type_cfg[app_type_idx].bit_width;
  1394. } else {
  1395. sample_rate = msm_bedais[i].sample_rate;
  1396. }
  1397. acdb_dev_id =
  1398. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1399. topology = msm_routing_get_adm_topology(fe_id,
  1400. session_type,
  1401. i);
  1402. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1403. || (passthr_mode ==
  1404. COMPRESSED_PASSTHROUGH_GEN)
  1405. || (passthr_mode ==
  1406. COMPRESSED_PASSTHROUGH_IEC61937))
  1407. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1408. pr_debug("%s: Before adm open topology %d\n", __func__,
  1409. topology);
  1410. if (hifi_filter_enabled)
  1411. bit_width = msm_routing_get_bit_width(
  1412. SNDRV_PCM_FORMAT_S32_LE);
  1413. copp_idx =
  1414. adm_open(port_id, path_type, sample_rate,
  1415. channels, topology, perf_mode,
  1416. bit_width, app_type, acdb_dev_id,
  1417. session_type);
  1418. if ((copp_idx < 0) ||
  1419. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1420. pr_err("%s:adm open failed coppid:%d\n",
  1421. __func__, copp_idx);
  1422. mutex_unlock(&routing_lock);
  1423. return -EINVAL;
  1424. }
  1425. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1426. __func__, fe_id, session_type, i);
  1427. set_bit(copp_idx,
  1428. &session_copp_map[fe_id][session_type][i]);
  1429. if (msm_is_resample_needed(
  1430. sample_rate,
  1431. msm_bedais[i].sample_rate))
  1432. adm_copp_mfc_cfg(port_id, copp_idx,
  1433. msm_bedais[i].sample_rate);
  1434. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1435. unsigned long copp =
  1436. session_copp_map[fe_id][session_type][i];
  1437. if (test_bit(j, &copp)) {
  1438. payload.port_id[num_copps] = port_id;
  1439. payload.copp_idx[num_copps] = j;
  1440. payload.app_type[num_copps] =
  1441. fe_dai_app_type_cfg
  1442. [fe_id][session_type][i]
  1443. .app_type;
  1444. payload.acdb_dev_id[num_copps] =
  1445. fe_dai_app_type_cfg
  1446. [fe_id][session_type][i]
  1447. .acdb_dev_id;
  1448. payload.sample_rate[num_copps] =
  1449. fe_dai_app_type_cfg
  1450. [fe_id][session_type][i]
  1451. .sample_rate;
  1452. num_copps++;
  1453. }
  1454. }
  1455. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1456. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1457. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1458. msm_routing_send_device_pp_params(port_id,
  1459. copp_idx, fe_id);
  1460. }
  1461. }
  1462. if (num_copps) {
  1463. payload.num_copps = num_copps;
  1464. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1465. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1466. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1467. }
  1468. mutex_unlock(&routing_lock);
  1469. return 0;
  1470. }
  1471. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1472. {
  1473. u32 session_id;
  1474. switch (val) {
  1475. case MSM_FRONTEND_DAI_QCHAT:
  1476. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1477. break;
  1478. case MSM_FRONTEND_DAI_VOIP:
  1479. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1480. break;
  1481. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1482. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1483. break;
  1484. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1485. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1486. break;
  1487. default:
  1488. session_id = 0;
  1489. }
  1490. pr_debug("%s session_id 0x%x", __func__, session_id);
  1491. return session_id;
  1492. }
  1493. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1494. int dspst_id, int stream_type)
  1495. {
  1496. int copp_idx = 0;
  1497. int sess_type = 0;
  1498. int j = 0, be_id = 0;
  1499. int ret = 0;
  1500. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1501. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1502. return 0;
  1503. }
  1504. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1505. sess_type = SESSION_TYPE_RX;
  1506. else
  1507. sess_type = SESSION_TYPE_TX;
  1508. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1509. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1510. __func__, fe_id, sess_type);
  1511. return 0;
  1512. }
  1513. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1514. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1515. channel_mixer_v2[fe_id][sess_type].input_channel;
  1516. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1517. __func__, sess_type, fe_id,
  1518. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1519. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1520. msm_bedais[be_id].active);
  1521. if ((msm_bedais[be_id].active) &&
  1522. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1523. unsigned long copp =
  1524. session_copp_map[fe_id][sess_type][be_id];
  1525. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1526. if (test_bit(j, &copp)) {
  1527. copp_idx = j;
  1528. break;
  1529. }
  1530. }
  1531. ret = adm_programable_channel_mixer(
  1532. msm_bedais[be_id].port_id,
  1533. copp_idx, dspst_id, sess_type,
  1534. &channel_mixer_v2[fe_id][sess_type], 0);
  1535. }
  1536. return ret;
  1537. }
  1538. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1539. int dspst_id, int stream_type)
  1540. {
  1541. int copp_idx = 0;
  1542. int sess_type = 0;
  1543. int i = 0, j = 0, be_id;
  1544. int ret = 0;
  1545. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1546. dspst_id, stream_type);
  1547. if (ret) {
  1548. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1549. fe_id);
  1550. return ret;
  1551. }
  1552. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1553. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1554. return 0;
  1555. }
  1556. if (!(channel_mixer[fe_id].enable)) {
  1557. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1558. __func__, fe_id);
  1559. return 0;
  1560. }
  1561. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1562. sess_type = SESSION_TYPE_RX;
  1563. else
  1564. sess_type = SESSION_TYPE_TX;
  1565. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1566. ++i) {
  1567. be_id = channel_input[fe_id][i] - 1;
  1568. channel_mixer[fe_id].input_channels[i] =
  1569. msm_bedais[be_id].channel;
  1570. if ((msm_bedais[be_id].active) &&
  1571. test_bit(fe_id,
  1572. &msm_bedais[be_id].fe_sessions[0])) {
  1573. unsigned long copp =
  1574. session_copp_map[fe_id][sess_type][be_id];
  1575. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1576. if (test_bit(j, &copp)) {
  1577. copp_idx = j;
  1578. break;
  1579. }
  1580. }
  1581. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1582. __func__,
  1583. fe_id, be_id, msm_bedais[be_id].channel,
  1584. copp_idx);
  1585. ret = adm_programable_channel_mixer(
  1586. get_port_id(msm_bedais[be_id].port_id),
  1587. copp_idx, dspst_id, sess_type,
  1588. channel_mixer + fe_id, i);
  1589. }
  1590. }
  1591. return ret;
  1592. }
  1593. /**
  1594. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1595. * setting during runtime.
  1596. *
  1597. * @be_id: backend index
  1598. * @session_id: session index
  1599. * @session_type: session type
  1600. * @params: parameters for channel mixer
  1601. *
  1602. * Retuen: 0 for success, else error
  1603. */
  1604. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1605. int session_type,
  1606. struct msm_pcm_channel_mixer *params)
  1607. {
  1608. int rc = 0;
  1609. int port_id, copp_idx = 0;
  1610. be_id--;
  1611. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1612. pr_err("%s: invalid backend id %d\n", __func__,
  1613. be_id);
  1614. return -EINVAL;
  1615. }
  1616. port_id = msm_bedais[be_id].port_id;
  1617. copp_idx = adm_get_default_copp_idx(port_id);
  1618. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1619. __func__, port_id, copp_idx, session_id);
  1620. if ((params->input_channel < 0) ||
  1621. (params->input_channel > ADM_MAX_CHANNELS)) {
  1622. pr_err("%s: invalid input channel %d\n", __func__,
  1623. params->input_channel);
  1624. return -EINVAL;
  1625. }
  1626. if ((params->output_channel < 0) ||
  1627. (params->output_channel > ADM_MAX_CHANNELS)) {
  1628. pr_err("%s: invalid output channel %d\n", __func__,
  1629. params->output_channel);
  1630. return -EINVAL;
  1631. }
  1632. params->input_channels[0] = params->input_channel;
  1633. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1634. __func__, session_type,
  1635. params->override_in_ch_map,
  1636. params->override_out_ch_map,
  1637. msm_bedais[be_id].active);
  1638. rc = adm_programable_channel_mixer(port_id,
  1639. copp_idx,
  1640. session_id,
  1641. session_type,
  1642. params,
  1643. 0);
  1644. if (rc) {
  1645. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1646. rc = -EINVAL;
  1647. }
  1648. return rc;
  1649. }
  1650. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1651. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1652. int dspst_id, int stream_type)
  1653. {
  1654. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1655. struct route_payload payload;
  1656. u32 channels, sample_rate;
  1657. uint16_t bits_per_sample = 16;
  1658. uint32_t passthr_mode = LEGACY_PCM;
  1659. int ret = 0;
  1660. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1661. /* bad ID assigned in machine driver */
  1662. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1663. return -EINVAL;
  1664. }
  1665. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1666. session_type = SESSION_TYPE_RX;
  1667. path_type = ADM_PATH_PLAYBACK;
  1668. port_type = MSM_AFE_PORT_TYPE_RX;
  1669. } else {
  1670. session_type = SESSION_TYPE_TX;
  1671. path_type = ADM_PATH_LIVE_REC;
  1672. port_type = MSM_AFE_PORT_TYPE_TX;
  1673. }
  1674. mutex_lock(&routing_lock);
  1675. payload.num_copps = 0; /* only RX needs to use payload */
  1676. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1677. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1678. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1679. /* re-enable EQ if active */
  1680. msm_qti_pp_send_eq_values(fedai_id);
  1681. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1682. if (!is_be_dai_extproc(i) &&
  1683. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1684. (msm_bedais[i].active) &&
  1685. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1686. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1687. int port_id = get_port_id(msm_bedais[i].port_id);
  1688. /*
  1689. * check if ADM needs to be configured with different
  1690. * channel mapping than backend
  1691. */
  1692. if (!msm_bedais[i].adm_override_ch)
  1693. channels = msm_bedais[i].channel;
  1694. else
  1695. channels = msm_bedais[i].adm_override_ch;
  1696. bits_per_sample = msm_routing_get_bit_width(
  1697. msm_bedais[i].format);
  1698. app_type =
  1699. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1700. if (app_type) {
  1701. app_type_idx =
  1702. msm_pcm_routing_get_app_type_idx(app_type);
  1703. sample_rate =
  1704. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1705. .sample_rate;
  1706. bits_per_sample =
  1707. app_type_cfg[app_type_idx].bit_width;
  1708. } else
  1709. sample_rate = msm_bedais[i].sample_rate;
  1710. acdb_dev_id =
  1711. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1712. .acdb_dev_id;
  1713. topology = msm_routing_get_adm_topology(fedai_id,
  1714. session_type,
  1715. i);
  1716. if (hifi_filter_enabled)
  1717. bits_per_sample = msm_routing_get_bit_width(
  1718. SNDRV_PCM_FORMAT_S32_LE);
  1719. copp_idx = adm_open(port_id, path_type,
  1720. sample_rate, channels, topology,
  1721. perf_mode, bits_per_sample,
  1722. app_type, acdb_dev_id,
  1723. session_type);
  1724. if ((copp_idx < 0) ||
  1725. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1726. pr_err("%s: adm open failed copp_idx:%d\n",
  1727. __func__, copp_idx);
  1728. mutex_unlock(&routing_lock);
  1729. return -EINVAL;
  1730. }
  1731. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1732. __func__, fedai_id, session_type, i);
  1733. set_bit(copp_idx,
  1734. &session_copp_map[fedai_id][session_type][i]);
  1735. if (msm_is_resample_needed(
  1736. sample_rate,
  1737. msm_bedais[i].sample_rate))
  1738. adm_copp_mfc_cfg(port_id, copp_idx,
  1739. msm_bedais[i].sample_rate);
  1740. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1741. unsigned long copp =
  1742. session_copp_map[fedai_id][session_type][i];
  1743. if (test_bit(j, &copp)) {
  1744. payload.port_id[num_copps] = port_id;
  1745. payload.copp_idx[num_copps] = j;
  1746. payload.app_type[num_copps] =
  1747. fe_dai_app_type_cfg
  1748. [fedai_id][session_type]
  1749. [i].app_type;
  1750. payload.acdb_dev_id[num_copps] =
  1751. fe_dai_app_type_cfg
  1752. [fedai_id][session_type]
  1753. [i].acdb_dev_id;
  1754. payload.sample_rate[num_copps] =
  1755. fe_dai_app_type_cfg
  1756. [fedai_id][session_type]
  1757. [i].sample_rate;
  1758. num_copps++;
  1759. }
  1760. }
  1761. if (perf_mode == LEGACY_PCM_MODE)
  1762. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1763. topology, channels);
  1764. }
  1765. }
  1766. if (num_copps) {
  1767. payload.num_copps = num_copps;
  1768. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1769. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1770. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1771. }
  1772. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1773. dspst_id, stream_type);
  1774. mutex_unlock(&routing_lock);
  1775. return ret;
  1776. }
  1777. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1778. int dspst_id, int stream_type,
  1779. struct msm_pcm_routing_evt event_info)
  1780. {
  1781. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1782. stream_type)) {
  1783. pr_err("%s: failed to reg phy stream\n", __func__);
  1784. return -EINVAL;
  1785. }
  1786. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1787. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1788. else
  1789. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1790. return 0;
  1791. }
  1792. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1793. {
  1794. int i, port_type, session_type, path_type, topology, port_id;
  1795. struct msm_pcm_routing_fdai_data *fdai;
  1796. if (!is_mm_lsm_fe_id(fedai_id)) {
  1797. /* bad ID assigned in machine driver */
  1798. pr_err("%s: bad MM ID\n", __func__);
  1799. return;
  1800. }
  1801. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1802. port_type = MSM_AFE_PORT_TYPE_RX;
  1803. session_type = SESSION_TYPE_RX;
  1804. path_type = ADM_PATH_PLAYBACK;
  1805. } else {
  1806. port_type = MSM_AFE_PORT_TYPE_TX;
  1807. session_type = SESSION_TYPE_TX;
  1808. path_type = ADM_PATH_LIVE_REC;
  1809. }
  1810. mutex_lock(&routing_lock);
  1811. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1812. if (!is_be_dai_extproc(i) &&
  1813. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1814. (msm_bedais[i].active) &&
  1815. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1816. int idx;
  1817. unsigned long copp =
  1818. session_copp_map[fedai_id][session_type][i];
  1819. fdai = &fe_dai_map[fedai_id][session_type];
  1820. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1821. if (test_bit(idx, &copp))
  1822. break;
  1823. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1824. pr_debug("%s: copp idx is invalid, exiting\n",
  1825. __func__);
  1826. continue;
  1827. }
  1828. port_id = get_port_id(msm_bedais[i].port_id);
  1829. topology = adm_get_topology_for_port_copp_idx(
  1830. port_id, idx);
  1831. msm_routing_unload_topology(topology);
  1832. adm_close(port_id, fdai->perf_mode, idx);
  1833. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1834. __func__, copp, fedai_id, session_type, i);
  1835. clear_bit(idx,
  1836. &session_copp_map[fedai_id][session_type][i]);
  1837. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1838. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1839. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1840. (fdai->passthr_mode == LEGACY_PCM))
  1841. msm_pcm_routing_deinit_pp(port_id, topology);
  1842. }
  1843. }
  1844. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1845. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1846. mutex_unlock(&routing_lock);
  1847. }
  1848. /* Check if FE/BE route is set */
  1849. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1850. {
  1851. bool rc = false;
  1852. if (!is_mm_lsm_fe_id(fe_id)) {
  1853. /* recheck FE ID in the mixer control defined in this file */
  1854. pr_err("%s: bad MM ID\n", __func__);
  1855. return rc;
  1856. }
  1857. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1858. rc = true;
  1859. return rc;
  1860. }
  1861. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1862. {
  1863. int session_type, path_type, topology;
  1864. u32 channels, sample_rate;
  1865. uint16_t bits_per_sample = 16;
  1866. struct msm_pcm_routing_fdai_data *fdai;
  1867. uint32_t passthr_mode;
  1868. bool is_lsm;
  1869. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1870. if (!is_mm_lsm_fe_id(val)) {
  1871. /* recheck FE ID in the mixer control defined in this file */
  1872. pr_err("%s: bad MM ID\n", __func__);
  1873. return;
  1874. }
  1875. if (!route_check_fe_id_adm_support(val)) {
  1876. /* ignore adm open if not supported for fe_id */
  1877. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1878. if (set)
  1879. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1880. else
  1881. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1882. return;
  1883. }
  1884. session_type =
  1885. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1886. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1887. fdai = &fe_dai_map[val][session_type];
  1888. passthr_mode = fdai->passthr_mode;
  1889. if (session_type == SESSION_TYPE_RX) {
  1890. if (passthr_mode != LEGACY_PCM)
  1891. path_type = ADM_PATH_COMPRESSED_RX;
  1892. else
  1893. path_type = ADM_PATH_PLAYBACK;
  1894. } else {
  1895. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1896. path_type = ADM_PATH_COMPRESSED_TX;
  1897. else
  1898. path_type = ADM_PATH_LIVE_REC;
  1899. }
  1900. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1901. (val <= MSM_FRONTEND_DAI_LSM8);
  1902. mutex_lock(&routing_lock);
  1903. if (set) {
  1904. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1905. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1906. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1907. voc_start_playback(set, msm_bedais[reg].port_id);
  1908. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1909. if (msm_bedais[reg].active && fdai->strm_id !=
  1910. INVALID_SESSION) {
  1911. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1912. int port_id = get_port_id(msm_bedais[reg].port_id);
  1913. /*
  1914. * check if ADM needs to be configured with different
  1915. * channel mapping than backend
  1916. */
  1917. if (!msm_bedais[reg].adm_override_ch)
  1918. channels = msm_bedais[reg].channel;
  1919. else
  1920. channels = msm_bedais[reg].adm_override_ch;
  1921. if (session_type == SESSION_TYPE_TX &&
  1922. fdai->be_srate &&
  1923. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1924. pr_debug("%s: flush strm %d diff BE rates\n",
  1925. __func__, fdai->strm_id);
  1926. if (fdai->event_info.event_func)
  1927. fdai->event_info.event_func(
  1928. MSM_PCM_RT_EVT_BUF_RECFG,
  1929. fdai->event_info.priv_data);
  1930. fdai->be_srate = 0; /* might not need it */
  1931. }
  1932. bits_per_sample = msm_routing_get_bit_width(
  1933. msm_bedais[reg].format);
  1934. app_type =
  1935. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1936. if (app_type && is_lsm) {
  1937. app_type_idx =
  1938. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1939. sample_rate =
  1940. fe_dai_app_type_cfg[val][session_type][reg]
  1941. .sample_rate;
  1942. bits_per_sample =
  1943. lsm_app_type_cfg[app_type_idx].bit_width;
  1944. } else if (app_type) {
  1945. app_type_idx =
  1946. msm_pcm_routing_get_app_type_idx(app_type);
  1947. sample_rate =
  1948. fe_dai_app_type_cfg[val][session_type][reg]
  1949. .sample_rate;
  1950. bits_per_sample =
  1951. app_type_cfg[app_type_idx].bit_width;
  1952. } else
  1953. sample_rate = msm_bedais[reg].sample_rate;
  1954. topology = msm_routing_get_adm_topology(val,
  1955. session_type,
  1956. reg);
  1957. acdb_dev_id =
  1958. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1959. if (hifi_filter_enabled)
  1960. bits_per_sample = msm_routing_get_bit_width(
  1961. SNDRV_PCM_FORMAT_S32_LE);
  1962. copp_idx = adm_open(port_id, path_type,
  1963. sample_rate, channels, topology,
  1964. fdai->perf_mode, bits_per_sample,
  1965. app_type, acdb_dev_id,
  1966. session_type);
  1967. if ((copp_idx < 0) ||
  1968. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1969. pr_err("%s: adm open failed\n", __func__);
  1970. mutex_unlock(&routing_lock);
  1971. return;
  1972. }
  1973. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1974. __func__, val, session_type, reg);
  1975. set_bit(copp_idx,
  1976. &session_copp_map[val][session_type][reg]);
  1977. if (msm_is_resample_needed(
  1978. sample_rate,
  1979. msm_bedais[reg].sample_rate))
  1980. adm_copp_mfc_cfg(port_id, copp_idx,
  1981. msm_bedais[reg].sample_rate);
  1982. if (session_type == SESSION_TYPE_RX &&
  1983. fdai->event_info.event_func)
  1984. fdai->event_info.event_func(
  1985. MSM_PCM_RT_EVT_DEVSWITCH,
  1986. fdai->event_info.priv_data);
  1987. msm_pcm_routing_build_matrix(val, session_type,
  1988. path_type,
  1989. fdai->perf_mode,
  1990. passthr_mode);
  1991. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1992. (passthr_mode == LEGACY_PCM))
  1993. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1994. topology, channels);
  1995. }
  1996. } else {
  1997. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1998. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1999. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2000. voc_start_playback(set, msm_bedais[reg].port_id);
  2001. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2002. if (msm_bedais[reg].active && fdai->strm_id !=
  2003. INVALID_SESSION) {
  2004. int idx;
  2005. int port_id;
  2006. unsigned long copp =
  2007. session_copp_map[val][session_type][reg];
  2008. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2009. if (test_bit(idx, &copp))
  2010. break;
  2011. if (idx >= MAX_COPPS_PER_PORT) {
  2012. pr_debug("%s: copp idx is invalid, exiting\n",
  2013. __func__);
  2014. mutex_unlock(&routing_lock);
  2015. return;
  2016. }
  2017. port_id = get_port_id(msm_bedais[reg].port_id);
  2018. topology = adm_get_topology_for_port_copp_idx(port_id,
  2019. idx);
  2020. msm_routing_unload_topology(topology);
  2021. adm_close(port_id, fdai->perf_mode, idx);
  2022. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2023. __func__, copp, val, session_type, reg,
  2024. topology);
  2025. clear_bit(idx,
  2026. &session_copp_map[val][session_type][reg]);
  2027. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2028. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2029. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2030. (passthr_mode == LEGACY_PCM))
  2031. msm_pcm_routing_deinit_pp(port_id, topology);
  2032. msm_pcm_routing_build_matrix(val, session_type,
  2033. path_type,
  2034. fdai->perf_mode,
  2035. passthr_mode);
  2036. }
  2037. }
  2038. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2039. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2040. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2041. mutex_unlock(&routing_lock);
  2042. }
  2043. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2044. struct snd_ctl_elem_value *ucontrol)
  2045. {
  2046. struct soc_mixer_control *mc =
  2047. (struct soc_mixer_control *)kcontrol->private_value;
  2048. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2049. ucontrol->value.integer.value[0] = 1;
  2050. else
  2051. ucontrol->value.integer.value[0] = 0;
  2052. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2053. ucontrol->value.integer.value[0]);
  2054. return 0;
  2055. }
  2056. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2057. struct snd_ctl_elem_value *ucontrol)
  2058. {
  2059. struct snd_soc_dapm_widget *widget =
  2060. snd_soc_dapm_kcontrol_widget(kcontrol);
  2061. struct soc_mixer_control *mc =
  2062. (struct soc_mixer_control *)kcontrol->private_value;
  2063. struct snd_soc_dapm_update *update = NULL;
  2064. if (ucontrol->value.integer.value[0] &&
  2065. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2066. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2067. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2068. update);
  2069. } else if (!ucontrol->value.integer.value[0] &&
  2070. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2071. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2072. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2073. update);
  2074. }
  2075. return 1;
  2076. }
  2077. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2078. struct snd_ctl_elem_value *ucontrol)
  2079. {
  2080. struct soc_mixer_control *mc =
  2081. (struct soc_mixer_control *)kcontrol->private_value;
  2082. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2083. ucontrol->value.integer.value[0] = 1;
  2084. else
  2085. ucontrol->value.integer.value[0] = 0;
  2086. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2087. ucontrol->value.integer.value[0]);
  2088. return 0;
  2089. }
  2090. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2091. struct snd_ctl_elem_value *ucontrol)
  2092. {
  2093. struct snd_soc_dapm_widget *widget =
  2094. snd_soc_dapm_kcontrol_widget(kcontrol);
  2095. struct soc_mixer_control *mc =
  2096. (struct soc_mixer_control *)kcontrol->private_value;
  2097. struct snd_soc_dapm_update *update = NULL;
  2098. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2099. ucontrol->value.integer.value[0]);
  2100. if (ucontrol->value.integer.value[0]) {
  2101. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2102. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2103. snd_soc_dapm_mixer_update_power(widget->dapm,
  2104. kcontrol, 1, update);
  2105. } else if (!ucontrol->value.integer.value[0]) {
  2106. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2107. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2108. snd_soc_dapm_mixer_update_power(widget->dapm,
  2109. kcontrol, 0, update);
  2110. }
  2111. return 1;
  2112. }
  2113. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2114. {
  2115. u32 session_id = 0;
  2116. u16 path_type;
  2117. struct media_format_info voc_be_media_format;
  2118. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2119. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2120. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2121. __func__, val, session_id);
  2122. mutex_lock(&routing_lock);
  2123. if (set)
  2124. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2125. else
  2126. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2127. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2128. afe_get_port_type(msm_bedais[reg].port_id) ==
  2129. MSM_AFE_PORT_TYPE_RX) {
  2130. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2131. __func__, set, msm_bedais[reg].port_id);
  2132. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2133. }
  2134. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2135. MSM_AFE_PORT_TYPE_RX)
  2136. path_type = RX_PATH;
  2137. else
  2138. path_type = TX_PATH;
  2139. if (set) {
  2140. if (msm_bedais[reg].active) {
  2141. voc_set_route_flag(session_id, path_type, 1);
  2142. memset(&voc_be_media_format, 0,
  2143. sizeof(struct media_format_info));
  2144. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2145. voc_be_media_format.num_channels =
  2146. msm_bedais[reg].channel;
  2147. voc_be_media_format.sample_rate =
  2148. msm_bedais[reg].sample_rate;
  2149. voc_be_media_format.bits_per_sample =
  2150. msm_bedais[reg].format;
  2151. /* Defaulting this to 1 for voice call usecases */
  2152. voc_be_media_format.channel_mapping[0] = 1;
  2153. voc_set_device_config(session_id, path_type,
  2154. &voc_be_media_format);
  2155. if (voc_get_route_flag(session_id, TX_PATH) &&
  2156. voc_get_route_flag(session_id, RX_PATH))
  2157. voc_enable_device(session_id);
  2158. } else {
  2159. pr_debug("%s BE is not active\n", __func__);
  2160. }
  2161. } else {
  2162. voc_set_route_flag(session_id, path_type, 0);
  2163. voc_disable_device(session_id);
  2164. }
  2165. mutex_unlock(&routing_lock);
  2166. }
  2167. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2168. struct snd_ctl_elem_value *ucontrol)
  2169. {
  2170. struct soc_mixer_control *mc =
  2171. (struct soc_mixer_control *)kcontrol->private_value;
  2172. mutex_lock(&routing_lock);
  2173. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2174. ucontrol->value.integer.value[0] = 1;
  2175. else
  2176. ucontrol->value.integer.value[0] = 0;
  2177. mutex_unlock(&routing_lock);
  2178. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2179. ucontrol->value.integer.value[0]);
  2180. return 0;
  2181. }
  2182. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2183. struct snd_ctl_elem_value *ucontrol)
  2184. {
  2185. struct snd_soc_dapm_widget *widget =
  2186. snd_soc_dapm_kcontrol_widget(kcontrol);
  2187. struct soc_mixer_control *mc =
  2188. (struct soc_mixer_control *)kcontrol->private_value;
  2189. struct snd_soc_dapm_update *update = NULL;
  2190. if (ucontrol->value.integer.value[0]) {
  2191. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2192. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2193. update);
  2194. } else {
  2195. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2196. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2197. update);
  2198. }
  2199. return 1;
  2200. }
  2201. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2202. struct snd_ctl_elem_value *ucontrol)
  2203. {
  2204. struct soc_mixer_control *mc =
  2205. (struct soc_mixer_control *)kcontrol->private_value;
  2206. mutex_lock(&routing_lock);
  2207. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2208. ucontrol->value.integer.value[0] = 1;
  2209. else
  2210. ucontrol->value.integer.value[0] = 0;
  2211. mutex_unlock(&routing_lock);
  2212. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2213. ucontrol->value.integer.value[0]);
  2214. return 0;
  2215. }
  2216. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2217. struct snd_ctl_elem_value *ucontrol)
  2218. {
  2219. struct snd_soc_dapm_widget *widget =
  2220. snd_soc_dapm_kcontrol_widget(kcontrol);
  2221. struct soc_mixer_control *mc =
  2222. (struct soc_mixer_control *)kcontrol->private_value;
  2223. struct snd_soc_dapm_update *update = NULL;
  2224. if (ucontrol->value.integer.value[0]) {
  2225. mutex_lock(&routing_lock);
  2226. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2227. mutex_unlock(&routing_lock);
  2228. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2229. update);
  2230. } else {
  2231. mutex_lock(&routing_lock);
  2232. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2233. mutex_unlock(&routing_lock);
  2234. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2235. update);
  2236. }
  2237. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2238. ucontrol->value.integer.value[0]);
  2239. return 1;
  2240. }
  2241. /*
  2242. * Return the mapping between port ID and backend ID to enable the AFE callback
  2243. * to determine the acdb_dev_id from the port id
  2244. */
  2245. int msm_pcm_get_be_id_from_port_id(int port_id)
  2246. {
  2247. int i;
  2248. int be_id = -EINVAL;
  2249. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2250. if (msm_bedais[i].port_id == port_id) {
  2251. be_id = i;
  2252. break;
  2253. }
  2254. }
  2255. return be_id;
  2256. }
  2257. /*
  2258. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2259. * correct AFE calibration information by comparing the header information.
  2260. */
  2261. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2262. {
  2263. int acdb_id = -EINVAL;
  2264. int i = 0;
  2265. int session;
  2266. int port_type = afe_get_port_type(port_id);
  2267. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2268. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2269. __func__, port_id, be_id, port_type);
  2270. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2271. session = SESSION_TYPE_TX;
  2272. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2273. session = SESSION_TYPE_RX;
  2274. } else {
  2275. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2276. acdb_id = -EINVAL;
  2277. goto exit;
  2278. }
  2279. if (be_id < 0) {
  2280. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2281. goto exit;
  2282. }
  2283. mutex_lock(&routing_lock);
  2284. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2285. MSM_FRONTEND_DAI_MAX);
  2286. if (i < MSM_FRONTEND_DAI_MAX)
  2287. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2288. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2289. __func__, i, session, be_id, acdb_id);
  2290. mutex_unlock(&routing_lock);
  2291. exit:
  2292. return acdb_id;
  2293. }
  2294. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2295. struct snd_ctl_elem_value *ucontrol)
  2296. {
  2297. ucontrol->value.integer.value[0] = fm_switch_enable;
  2298. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2299. ucontrol->value.integer.value[0]);
  2300. return 0;
  2301. }
  2302. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2303. struct snd_ctl_elem_value *ucontrol)
  2304. {
  2305. struct snd_soc_dapm_widget *widget =
  2306. snd_soc_dapm_kcontrol_widget(kcontrol);
  2307. struct snd_soc_dapm_update *update = NULL;
  2308. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2309. ucontrol->value.integer.value[0]);
  2310. if (ucontrol->value.integer.value[0])
  2311. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2312. update);
  2313. else
  2314. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2315. update);
  2316. fm_switch_enable = ucontrol->value.integer.value[0];
  2317. return 1;
  2318. }
  2319. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2320. struct snd_ctl_elem_value *ucontrol)
  2321. {
  2322. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2323. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2324. ucontrol->value.integer.value[0]);
  2325. return 0;
  2326. }
  2327. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2328. struct snd_ctl_elem_value *ucontrol)
  2329. {
  2330. struct snd_soc_dapm_widget *widget =
  2331. snd_soc_dapm_kcontrol_widget(kcontrol);
  2332. struct snd_soc_dapm_update *update = NULL;
  2333. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2334. ucontrol->value.integer.value[0]);
  2335. if (ucontrol->value.integer.value[0])
  2336. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2337. 1, update);
  2338. else
  2339. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2340. 0, update);
  2341. hfp_switch_enable = ucontrol->value.integer.value[0];
  2342. return 1;
  2343. }
  2344. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2345. struct snd_ctl_elem_value *ucontrol)
  2346. {
  2347. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2348. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2349. ucontrol->value.integer.value[0]);
  2350. return 0;
  2351. }
  2352. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2353. struct snd_ctl_elem_value *ucontrol)
  2354. {
  2355. struct snd_soc_dapm_widget *widget =
  2356. snd_soc_dapm_kcontrol_widget(kcontrol);
  2357. struct snd_soc_dapm_update *update = NULL;
  2358. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2359. ucontrol->value.integer.value[0]);
  2360. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2361. if (a2dp_switch_enable)
  2362. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2363. 1, update);
  2364. else
  2365. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2366. 0, update);
  2367. return 1;
  2368. }
  2369. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2370. struct snd_ctl_elem_value *ucontrol)
  2371. {
  2372. ucontrol->value.integer.value[0] = sco_switch_enable;
  2373. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2374. ucontrol->value.integer.value[0]);
  2375. return 0;
  2376. }
  2377. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2378. struct snd_ctl_elem_value *ucontrol)
  2379. {
  2380. struct snd_soc_dapm_widget *widget =
  2381. snd_soc_dapm_kcontrol_widget(kcontrol);
  2382. struct snd_soc_dapm_update *update = NULL;
  2383. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2384. ucontrol->value.integer.value[0]);
  2385. sco_switch_enable = ucontrol->value.integer.value[0];
  2386. if (sco_switch_enable)
  2387. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2388. 1, update);
  2389. else
  2390. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2391. 0, update);
  2392. return 1;
  2393. }
  2394. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2395. struct snd_ctl_elem_value *ucontrol)
  2396. {
  2397. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2398. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2399. ucontrol->value.integer.value[0]);
  2400. return 0;
  2401. }
  2402. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2403. struct snd_ctl_elem_value *ucontrol)
  2404. {
  2405. struct snd_soc_dapm_widget *widget =
  2406. snd_soc_dapm_kcontrol_widget(kcontrol);
  2407. struct snd_soc_dapm_update *update = NULL;
  2408. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2409. ucontrol->value.integer.value[0]);
  2410. if (ucontrol->value.integer.value[0])
  2411. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2412. update);
  2413. else
  2414. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2415. update);
  2416. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2417. return 1;
  2418. }
  2419. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2420. struct snd_ctl_elem_value *ucontrol)
  2421. {
  2422. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2423. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2424. ucontrol->value.integer.value[0]);
  2425. return 0;
  2426. }
  2427. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2428. struct snd_ctl_elem_value *ucontrol)
  2429. {
  2430. struct snd_soc_dapm_widget *widget =
  2431. snd_soc_dapm_kcontrol_widget(kcontrol);
  2432. struct snd_soc_dapm_update *update = NULL;
  2433. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2434. ucontrol->value.integer.value[0]);
  2435. if (ucontrol->value.integer.value[0])
  2436. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2437. update);
  2438. else
  2439. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2440. update);
  2441. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2442. return 1;
  2443. }
  2444. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2445. struct snd_ctl_elem_value *ucontrol)
  2446. {
  2447. ucontrol->value.integer.value[0] = usb_switch_enable;
  2448. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2449. ucontrol->value.integer.value[0]);
  2450. return 0;
  2451. }
  2452. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2453. struct snd_ctl_elem_value *ucontrol)
  2454. {
  2455. struct snd_soc_dapm_widget *widget =
  2456. snd_soc_dapm_kcontrol_widget(kcontrol);
  2457. struct snd_soc_dapm_update *update = NULL;
  2458. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2459. ucontrol->value.integer.value[0]);
  2460. if (ucontrol->value.integer.value[0])
  2461. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2462. 1, update);
  2463. else
  2464. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2465. 0, update);
  2466. usb_switch_enable = ucontrol->value.integer.value[0];
  2467. return 1;
  2468. }
  2469. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2470. struct snd_ctl_elem_value *ucontrol)
  2471. {
  2472. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2473. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2474. ucontrol->value.integer.value[0]);
  2475. return 0;
  2476. }
  2477. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2478. struct snd_ctl_elem_value *ucontrol)
  2479. {
  2480. struct snd_soc_dapm_widget *widget =
  2481. snd_soc_dapm_kcontrol_widget(kcontrol);
  2482. struct snd_soc_dapm_update *update = NULL;
  2483. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2484. ucontrol->value.integer.value[0]);
  2485. if (ucontrol->value.integer.value[0])
  2486. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2487. update);
  2488. else
  2489. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2490. update);
  2491. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2492. return 1;
  2493. }
  2494. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2495. struct snd_ctl_elem_value *ucontrol)
  2496. {
  2497. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2498. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2499. ucontrol->value.integer.value[0]);
  2500. return 0;
  2501. }
  2502. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2503. struct snd_ctl_elem_value *ucontrol)
  2504. {
  2505. struct snd_soc_dapm_widget *widget =
  2506. snd_soc_dapm_kcontrol_widget(kcontrol);
  2507. struct snd_soc_dapm_update *update = NULL;
  2508. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2509. ucontrol->value.integer.value[0]);
  2510. if (ucontrol->value.integer.value[0])
  2511. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2512. update);
  2513. else
  2514. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2515. update);
  2516. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2517. return 1;
  2518. }
  2519. static int msm_routing_get_tert_mi2s_switch_mixer(
  2520. struct snd_kcontrol *kcontrol,
  2521. struct snd_ctl_elem_value *ucontrol)
  2522. {
  2523. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2524. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2525. ucontrol->value.integer.value[0]);
  2526. return 0;
  2527. }
  2528. static int msm_routing_put_tert_mi2s_switch_mixer(
  2529. struct snd_kcontrol *kcontrol,
  2530. struct snd_ctl_elem_value *ucontrol)
  2531. {
  2532. struct snd_soc_dapm_widget *widget =
  2533. snd_soc_dapm_kcontrol_widget(kcontrol);
  2534. struct snd_soc_dapm_update *update = NULL;
  2535. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2536. ucontrol->value.integer.value[0]);
  2537. if (ucontrol->value.integer.value[0])
  2538. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2539. update);
  2540. else
  2541. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2542. update);
  2543. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2544. return 1;
  2545. }
  2546. static int msm_routing_get_quat_mi2s_switch_mixer(
  2547. struct snd_kcontrol *kcontrol,
  2548. struct snd_ctl_elem_value *ucontrol)
  2549. {
  2550. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2551. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2552. ucontrol->value.integer.value[0]);
  2553. return 0;
  2554. }
  2555. static int msm_routing_put_quat_mi2s_switch_mixer(
  2556. struct snd_kcontrol *kcontrol,
  2557. struct snd_ctl_elem_value *ucontrol)
  2558. {
  2559. struct snd_soc_dapm_widget *widget =
  2560. snd_soc_dapm_kcontrol_widget(kcontrol);
  2561. struct snd_soc_dapm_update *update = NULL;
  2562. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2563. ucontrol->value.integer.value[0]);
  2564. if (ucontrol->value.integer.value[0])
  2565. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2566. update);
  2567. else
  2568. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2569. update);
  2570. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2571. return 1;
  2572. }
  2573. static int msm_routing_get_quin_mi2s_switch_mixer(
  2574. struct snd_kcontrol *kcontrol,
  2575. struct snd_ctl_elem_value *ucontrol)
  2576. {
  2577. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2578. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2579. ucontrol->value.integer.value[0]);
  2580. return 0;
  2581. }
  2582. static int msm_routing_put_quin_mi2s_switch_mixer(
  2583. struct snd_kcontrol *kcontrol,
  2584. struct snd_ctl_elem_value *ucontrol)
  2585. {
  2586. struct snd_soc_dapm_widget *widget =
  2587. snd_soc_dapm_kcontrol_widget(kcontrol);
  2588. struct snd_soc_dapm_update *update = NULL;
  2589. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2590. ucontrol->value.integer.value[0]);
  2591. if (ucontrol->value.integer.value[0])
  2592. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2593. update);
  2594. else
  2595. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2596. update);
  2597. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2598. return 1;
  2599. }
  2600. static int msm_routing_get_sen_mi2s_switch_mixer(
  2601. struct snd_kcontrol *kcontrol,
  2602. struct snd_ctl_elem_value *ucontrol)
  2603. {
  2604. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2605. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2606. ucontrol->value.integer.value[0]);
  2607. return 0;
  2608. }
  2609. static int msm_routing_put_sen_mi2s_switch_mixer(
  2610. struct snd_kcontrol *kcontrol,
  2611. struct snd_ctl_elem_value *ucontrol)
  2612. {
  2613. struct snd_soc_dapm_widget *widget =
  2614. snd_soc_dapm_kcontrol_widget(kcontrol);
  2615. struct snd_soc_dapm_update *update = NULL;
  2616. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2617. ucontrol->value.integer.value[0]);
  2618. if (ucontrol->value.integer.value[0])
  2619. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2620. update);
  2621. else
  2622. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2623. update);
  2624. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2625. return 1;
  2626. }
  2627. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2628. struct snd_ctl_elem_value *ucontrol)
  2629. {
  2630. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2631. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2632. ucontrol->value.integer.value[0]);
  2633. return 0;
  2634. }
  2635. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2636. struct snd_ctl_elem_value *ucontrol)
  2637. {
  2638. struct snd_soc_dapm_widget *widget =
  2639. snd_soc_dapm_kcontrol_widget(kcontrol);
  2640. struct snd_soc_dapm_update *update = NULL;
  2641. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2642. ucontrol->value.integer.value[0]);
  2643. if (ucontrol->value.integer.value[0])
  2644. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2645. update);
  2646. else
  2647. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2648. update);
  2649. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2650. return 1;
  2651. }
  2652. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2653. struct snd_ctl_elem_value *ucontrol)
  2654. {
  2655. ucontrol->value.integer.value[0] = lsm_port_index;
  2656. return 0;
  2657. }
  2658. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2659. struct snd_ctl_elem_value *ucontrol)
  2660. {
  2661. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2662. int mux = ucontrol->value.enumerated.item[0];
  2663. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2664. if (mux >= e->items) {
  2665. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2666. return -EINVAL;
  2667. }
  2668. pr_debug("%s: LSM enable %ld\n", __func__,
  2669. ucontrol->value.integer.value[0]);
  2670. switch (ucontrol->value.integer.value[0]) {
  2671. case 1:
  2672. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2673. break;
  2674. case 2:
  2675. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2676. break;
  2677. case 3:
  2678. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2679. break;
  2680. case 4:
  2681. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2682. break;
  2683. case 5:
  2684. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2685. break;
  2686. case 6:
  2687. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2688. break;
  2689. case 7:
  2690. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2691. break;
  2692. case 8:
  2693. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2694. break;
  2695. case 9:
  2696. lsm_port = ADM_LSM_PORT_ID;
  2697. break;
  2698. case 10:
  2699. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2700. break;
  2701. case 11:
  2702. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2703. break;
  2704. case 12:
  2705. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2706. break;
  2707. case 13:
  2708. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2709. break;
  2710. case 14:
  2711. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2712. break;
  2713. case 15:
  2714. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2715. break;
  2716. default:
  2717. pr_err("Default lsm port");
  2718. break;
  2719. }
  2720. set_lsm_port(lsm_port);
  2721. lsm_port_index = ucontrol->value.integer.value[0];
  2722. return 0;
  2723. }
  2724. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2725. struct snd_ctl_elem_value *ucontrol)
  2726. {
  2727. int i;
  2728. u16 port_id;
  2729. enum afe_mad_type mad_type;
  2730. pr_debug("%s: enter\n", __func__);
  2731. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2732. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2733. strlen(lsm_port_text[i])))
  2734. break;
  2735. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2736. pr_warn("%s: Invalid id name %s\n", __func__,
  2737. kcontrol->id.name);
  2738. return -EINVAL;
  2739. }
  2740. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2741. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2742. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2743. strlen(lsm_port_text[7])))
  2744. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2745. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2746. strlen(lsm_port_text[8])))
  2747. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2748. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2749. strlen(lsm_port_text[10])))
  2750. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2751. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2752. strlen(lsm_port_text[13])))
  2753. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2754. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2755. strlen(lsm_port_text[14])))
  2756. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2757. mad_type = afe_port_get_mad_type(port_id);
  2758. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2759. mad_type);
  2760. switch (mad_type) {
  2761. case MAD_HW_NONE:
  2762. ucontrol->value.integer.value[0] = MADNONE;
  2763. break;
  2764. case MAD_HW_AUDIO:
  2765. ucontrol->value.integer.value[0] = MADAUDIO;
  2766. break;
  2767. case MAD_HW_BEACON:
  2768. ucontrol->value.integer.value[0] = MADBEACON;
  2769. break;
  2770. case MAD_HW_ULTRASOUND:
  2771. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2772. break;
  2773. case MAD_SW_AUDIO:
  2774. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2775. break;
  2776. default:
  2777. pr_warn("%s: Unknown\n", __func__);
  2778. return -EINVAL;
  2779. }
  2780. return 0;
  2781. }
  2782. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2783. struct snd_ctl_elem_value *ucontrol)
  2784. {
  2785. int i;
  2786. u16 port_id;
  2787. enum afe_mad_type mad_type;
  2788. pr_debug("%s: enter\n", __func__);
  2789. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2790. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2791. strlen(lsm_port_text[i])))
  2792. break;
  2793. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2794. pr_warn("%s: Invalid id name %s\n", __func__,
  2795. kcontrol->id.name);
  2796. return -EINVAL;
  2797. }
  2798. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2799. switch (ucontrol->value.integer.value[0]) {
  2800. case MADNONE:
  2801. mad_type = MAD_HW_NONE;
  2802. break;
  2803. case MADAUDIO:
  2804. mad_type = MAD_HW_AUDIO;
  2805. break;
  2806. case MADBEACON:
  2807. mad_type = MAD_HW_BEACON;
  2808. break;
  2809. case MADULTRASOUND:
  2810. mad_type = MAD_HW_ULTRASOUND;
  2811. break;
  2812. case MADSWAUDIO:
  2813. mad_type = MAD_SW_AUDIO;
  2814. break;
  2815. default:
  2816. pr_warn("%s: Unknown\n", __func__);
  2817. return -EINVAL;
  2818. }
  2819. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2820. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2821. strlen(lsm_port_text[7])))
  2822. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2823. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2824. strlen(lsm_port_text[8])))
  2825. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2826. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2827. strlen(lsm_port_text[10])))
  2828. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2829. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2830. strlen(lsm_port_text[13])))
  2831. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2832. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2833. strlen(lsm_port_text[14])))
  2834. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2835. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2836. mad_type);
  2837. return afe_port_set_mad_type(port_id, mad_type);
  2838. }
  2839. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2840. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2841. adm_override_chs_text);
  2842. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2843. {
  2844. int backend_id;
  2845. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2846. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2847. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2848. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2849. } else {
  2850. pr_err("%s: unsupported backend id: %s",
  2851. __func__, kcontrol->id.name);
  2852. return -EINVAL;
  2853. }
  2854. return backend_id;
  2855. }
  2856. static int msm_routing_adm_channel_config_get(
  2857. struct snd_kcontrol *kcontrol,
  2858. struct snd_ctl_elem_value *ucontrol)
  2859. {
  2860. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2861. if (backend_id >= 0) {
  2862. mutex_lock(&routing_lock);
  2863. ucontrol->value.integer.value[0] =
  2864. msm_bedais[backend_id].adm_override_ch;
  2865. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2866. ucontrol->value.integer.value[0], backend_id);
  2867. mutex_unlock(&routing_lock);
  2868. }
  2869. return 0;
  2870. }
  2871. static int msm_routing_adm_channel_config_put(
  2872. struct snd_kcontrol *kcontrol,
  2873. struct snd_ctl_elem_value *ucontrol)
  2874. {
  2875. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2876. if (backend_id >= 0) {
  2877. mutex_lock(&routing_lock);
  2878. msm_bedais[backend_id].adm_override_ch =
  2879. ucontrol->value.integer.value[0];
  2880. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2881. __func__, backend_id,
  2882. msm_bedais[backend_id].adm_override_ch);
  2883. mutex_unlock(&routing_lock);
  2884. }
  2885. return 0;
  2886. }
  2887. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2888. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2889. msm_routing_adm_channel_config_get,
  2890. msm_routing_adm_channel_config_put),
  2891. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2892. msm_routing_adm_channel_config_get,
  2893. msm_routing_adm_channel_config_put),
  2894. };
  2895. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2896. struct snd_ctl_elem_value *ucontrol)
  2897. {
  2898. mutex_lock(&routing_lock);
  2899. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2900. mutex_unlock(&routing_lock);
  2901. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2902. ucontrol->value.integer.value[0]);
  2903. return 0;
  2904. };
  2905. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2906. struct snd_ctl_elem_value *ucontrol)
  2907. {
  2908. struct aanc_data aanc_info;
  2909. mutex_lock(&routing_lock);
  2910. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2911. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2912. ucontrol->value.integer.value[0]);
  2913. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2914. if (ucontrol->value.integer.value[0] == 0) {
  2915. aanc_info.aanc_active = false;
  2916. aanc_info.aanc_tx_port = 0;
  2917. aanc_info.aanc_rx_port = 0;
  2918. } else {
  2919. aanc_info.aanc_active = true;
  2920. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2921. aanc_info.aanc_tx_port =
  2922. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2923. }
  2924. afe_set_aanc_info(&aanc_info);
  2925. mutex_unlock(&routing_lock);
  2926. return 0;
  2927. };
  2928. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2929. struct snd_ctl_elem_value *ucontrol)
  2930. {
  2931. int idx = 0, shift = 0;
  2932. struct soc_mixer_control *mc =
  2933. (struct soc_mixer_control *)kcontrol->private_value;
  2934. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2935. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2936. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2937. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2938. return -EINVAL;
  2939. }
  2940. if (test_bit(shift,
  2941. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2942. ucontrol->value.integer.value[0] = 1;
  2943. else
  2944. ucontrol->value.integer.value[0] = 0;
  2945. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2946. ucontrol->value.integer.value[0]);
  2947. return 0;
  2948. }
  2949. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2950. struct snd_ctl_elem_value *ucontrol)
  2951. {
  2952. int idx = 0, shift = 0;
  2953. struct soc_mixer_control *mc =
  2954. (struct soc_mixer_control *)kcontrol->private_value;
  2955. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2956. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2957. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2958. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2959. return -EINVAL;
  2960. }
  2961. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2962. __func__, mc->shift, mc->rshift,
  2963. ucontrol->value.integer.value[0], idx, shift);
  2964. if (ucontrol->value.integer.value[0]) {
  2965. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2966. msm_bedais[mc->rshift].port_id);
  2967. set_bit(shift,
  2968. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2969. } else {
  2970. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2971. msm_bedais[mc->rshift].port_id);
  2972. clear_bit(shift,
  2973. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2974. }
  2975. return 1;
  2976. }
  2977. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2978. struct snd_ctl_elem_value *ucontrol)
  2979. {
  2980. u16 fe_id = 0;
  2981. fe_id = ((struct soc_mixer_control *)
  2982. kcontrol->private_value)->shift;
  2983. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2984. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2985. return -EINVAL;
  2986. }
  2987. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2988. return 0;
  2989. }
  2990. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2991. struct snd_ctl_elem_value *ucontrol)
  2992. {
  2993. u16 fe_id = 0;
  2994. fe_id = ((struct soc_mixer_control *)
  2995. kcontrol->private_value)->shift;
  2996. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2997. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2998. return -EINVAL;
  2999. }
  3000. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3001. return 1;
  3002. }
  3003. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3004. struct snd_ctl_elem_value *ucontrol)
  3005. {
  3006. u16 fe_id = 0;
  3007. fe_id = ((struct soc_multi_mixer_control *)
  3008. kcontrol->private_value)->shift;
  3009. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3010. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3011. return -EINVAL;
  3012. }
  3013. ucontrol->value.integer.value[0] =
  3014. channel_mixer[fe_id].output_channel;
  3015. return 0;
  3016. }
  3017. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3018. struct snd_ctl_elem_value *ucontrol)
  3019. {
  3020. u16 fe_id = 0;
  3021. fe_id = ((struct soc_multi_mixer_control *)
  3022. kcontrol->private_value)->shift;
  3023. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3024. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3025. return -EINVAL;
  3026. }
  3027. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3028. fe_id,
  3029. (unsigned int)(ucontrol->value.integer.value[0]));
  3030. channel_mixer[fe_id].output_channel =
  3031. (unsigned int)(ucontrol->value.integer.value[0]);
  3032. return 1;
  3033. }
  3034. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3035. /* If new backend is added, need update this array */
  3036. static const char *const be_name[] = {
  3037. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3038. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3039. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3040. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3041. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3042. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3043. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3044. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3045. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3046. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3047. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3048. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3049. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3050. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3051. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3052. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3053. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3054. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3055. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3056. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3057. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3058. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3059. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3060. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3061. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3062. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3063. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3064. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3065. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3066. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3067. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3068. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3069. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3070. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3071. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3072. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3073. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3074. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3075. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3076. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3077. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3078. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3079. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3080. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3081. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3082. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3083. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3084. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3085. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3086. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3087. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3088. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3089. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3090. "SEC_META_MI2S_RX"
  3091. };
  3092. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3093. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3094. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3095. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3096. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3097. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3098. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3099. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3100. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3101. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3102. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3103. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3104. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3105. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3106. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3107. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3108. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3109. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3110. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3111. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3112. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3113. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3114. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3115. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3116. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3117. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3118. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3119. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3120. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3121. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3122. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3123. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3124. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3125. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3126. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3127. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3128. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3129. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3130. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3131. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3132. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3133. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3134. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3135. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3136. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3137. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3138. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3139. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3140. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3141. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3142. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3143. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3144. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3145. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3146. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3147. unsigned int channels,
  3148. unsigned int items, const char *const names[])
  3149. {
  3150. if (uinfo->value.enumerated.item >= items)
  3151. uinfo->value.enumerated.item = items - 1;
  3152. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3153. sizeof(uinfo->value.enumerated.name),
  3154. "ALSA: too long item name '%s'\n",
  3155. names[uinfo->value.enumerated.item]);
  3156. strlcpy(uinfo->value.enumerated.name,
  3157. names[uinfo->value.enumerated.item],
  3158. sizeof(uinfo->value.enumerated.name));
  3159. return 0;
  3160. }
  3161. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3162. struct snd_ctl_elem_info *uinfo)
  3163. {
  3164. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3165. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3166. uinfo->count = 1;
  3167. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3168. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3169. return 0;
  3170. }
  3171. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3172. struct snd_ctl_elem_value *ucontrol)
  3173. {
  3174. u16 fe_id = 0;
  3175. fe_id = ((struct soc_enum *)
  3176. kcontrol->private_value)->shift_l;
  3177. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3178. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3179. return -EINVAL;
  3180. }
  3181. pr_debug("%s: FE %d %s\n", __func__,
  3182. fe_id,
  3183. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3184. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3185. return 0;
  3186. }
  3187. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3188. struct snd_ctl_elem_value *ucontrol)
  3189. {
  3190. u16 fe_id = 0;
  3191. fe_id = ((struct soc_enum *)
  3192. kcontrol->private_value)->shift_l;
  3193. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3194. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3195. return -EINVAL;
  3196. }
  3197. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3198. pr_debug("%s: %s FE %d\n", __func__,
  3199. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3200. fe_id);
  3201. return 0;
  3202. }
  3203. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3204. struct snd_ctl_elem_info *uinfo)
  3205. {
  3206. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3207. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3208. uinfo->count = 1;
  3209. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3210. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3211. return 0;
  3212. }
  3213. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3214. struct snd_ctl_elem_value *ucontrol)
  3215. {
  3216. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3217. u16 fe_id = 0, in_ch = 0;
  3218. fe_id = e->shift_l;
  3219. in_ch = e->shift_r;
  3220. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3221. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3222. return -EINVAL;
  3223. }
  3224. if (in_ch >= ADM_MAX_CHANNELS) {
  3225. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3226. return -EINVAL;
  3227. }
  3228. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3229. return 1;
  3230. }
  3231. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3232. struct snd_ctl_elem_value *ucontrol)
  3233. {
  3234. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3235. u16 fe_id = 0, in_ch = 0;
  3236. fe_id = e->shift_l;
  3237. in_ch = e->shift_r;
  3238. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3239. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3240. return -EINVAL;
  3241. }
  3242. if (in_ch >= ADM_MAX_CHANNELS) {
  3243. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3244. return -EINVAL;
  3245. }
  3246. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3247. return 1;
  3248. }
  3249. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3250. struct snd_ctl_elem_info *uinfo)
  3251. {
  3252. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3253. uinfo->count = ADM_MAX_CHANNELS;
  3254. uinfo->value.integer.min = 0;
  3255. uinfo->value.integer.max = WEIGHT_0_DB;
  3256. return 0;
  3257. }
  3258. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3259. struct snd_ctl_elem_value *ucontrol)
  3260. {
  3261. u16 fe_id = 0, out_ch = 0;
  3262. int i, weight;
  3263. fe_id = ((struct soc_multi_mixer_control *)
  3264. kcontrol->private_value)->shift;
  3265. out_ch = ((struct soc_multi_mixer_control *)
  3266. kcontrol->private_value)->rshift;
  3267. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3268. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3269. return -EINVAL;
  3270. }
  3271. if (out_ch >= ADM_MAX_CHANNELS) {
  3272. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3273. return -EINVAL;
  3274. }
  3275. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3276. __func__, fe_id,
  3277. ucontrol->value.integer.value[0],
  3278. ucontrol->value.integer.value[1],
  3279. ucontrol->value.integer.value[2],
  3280. ucontrol->value.integer.value[3],
  3281. ucontrol->value.integer.value[4],
  3282. ucontrol->value.integer.value[5],
  3283. ucontrol->value.integer.value[6],
  3284. ucontrol->value.integer.value[7]);
  3285. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3286. weight = ucontrol->value.integer.value[i];
  3287. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3288. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3289. __func__, fe_id, out_ch, i,
  3290. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3291. }
  3292. return 0;
  3293. }
  3294. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3295. struct snd_ctl_elem_value *ucontrol)
  3296. {
  3297. u16 fe_id = 0, out_ch = 0;
  3298. int i;
  3299. fe_id = ((struct soc_multi_mixer_control *)
  3300. kcontrol->private_value)->shift;
  3301. out_ch = ((struct soc_multi_mixer_control *)
  3302. kcontrol->private_value)->rshift;
  3303. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3304. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3305. return -EINVAL;
  3306. }
  3307. if (out_ch >= ADM_MAX_CHANNELS) {
  3308. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3309. return -EINVAL;
  3310. }
  3311. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3312. ucontrol->value.integer.value[i] =
  3313. channel_mixer[fe_id].channel_weight[out_ch][i];
  3314. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3315. __func__, fe_id,
  3316. ucontrol->value.integer.value[0],
  3317. ucontrol->value.integer.value[1],
  3318. ucontrol->value.integer.value[2],
  3319. ucontrol->value.integer.value[3],
  3320. ucontrol->value.integer.value[4],
  3321. ucontrol->value.integer.value[5],
  3322. ucontrol->value.integer.value[6],
  3323. ucontrol->value.integer.value[7]);
  3324. return 0;
  3325. }
  3326. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3327. struct snd_ctl_elem_info *uinfo)
  3328. {
  3329. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3330. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3331. /* Valid channel map value ranges from 1 to 64 */
  3332. uinfo->value.integer.min = 0;
  3333. uinfo->value.integer.max = 64;
  3334. return 0;
  3335. }
  3336. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3337. struct snd_ctl_elem_value *ucontrol)
  3338. {
  3339. u16 fe_id = 0;
  3340. int i, ch_map;
  3341. fe_id = ((struct soc_multi_mixer_control *)
  3342. kcontrol->private_value)->shift;
  3343. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3344. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3345. return -EINVAL;
  3346. }
  3347. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3348. ch_map = ucontrol->value.integer.value[i];
  3349. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3350. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3351. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3352. }
  3353. /* Make override_out_ch_map false if ch map is reset */
  3354. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3355. channel_mixer[fe_id].override_out_ch_map = false;
  3356. else
  3357. channel_mixer[fe_id].override_out_ch_map = true;
  3358. return 0;
  3359. }
  3360. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3361. struct snd_ctl_elem_value *ucontrol)
  3362. {
  3363. u16 fe_id = 0;
  3364. int i;
  3365. fe_id = ((struct soc_multi_mixer_control *)
  3366. kcontrol->private_value)->shift;
  3367. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3368. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3369. return -EINVAL;
  3370. }
  3371. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3372. ucontrol->value.integer.value[i] =
  3373. channel_mixer[fe_id].out_ch_map[i];
  3374. return 0;
  3375. }
  3376. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3377. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3378. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3379. msm_pcm_get_channel_rule_index,
  3380. msm_pcm_put_channel_rule_index),
  3381. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3382. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3383. msm_pcm_get_channel_rule_index,
  3384. msm_pcm_put_channel_rule_index),
  3385. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3386. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3387. msm_pcm_get_channel_rule_index,
  3388. msm_pcm_put_channel_rule_index),
  3389. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3390. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3391. msm_pcm_get_channel_rule_index,
  3392. msm_pcm_put_channel_rule_index),
  3393. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3394. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3395. msm_pcm_get_channel_rule_index,
  3396. msm_pcm_put_channel_rule_index),
  3397. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3398. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3399. msm_pcm_get_channel_rule_index,
  3400. msm_pcm_put_channel_rule_index),
  3401. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3402. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3403. msm_pcm_get_channel_rule_index,
  3404. msm_pcm_put_channel_rule_index),
  3405. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3406. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3407. msm_pcm_get_channel_rule_index,
  3408. msm_pcm_put_channel_rule_index),
  3409. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3410. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3411. msm_pcm_get_channel_rule_index,
  3412. msm_pcm_put_channel_rule_index),
  3413. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3414. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3415. msm_pcm_get_channel_rule_index,
  3416. msm_pcm_put_channel_rule_index),
  3417. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3418. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3419. msm_pcm_get_channel_rule_index,
  3420. msm_pcm_put_channel_rule_index),
  3421. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3422. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3423. msm_pcm_get_out_chs,
  3424. msm_pcm_put_out_chs),
  3425. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3426. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3427. msm_pcm_get_out_chs,
  3428. msm_pcm_put_out_chs),
  3429. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3430. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3431. msm_pcm_get_out_chs,
  3432. msm_pcm_put_out_chs),
  3433. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3434. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3435. msm_pcm_get_out_chs,
  3436. msm_pcm_put_out_chs),
  3437. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3438. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3439. msm_pcm_get_out_chs,
  3440. msm_pcm_put_out_chs),
  3441. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3442. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3443. msm_pcm_get_out_chs,
  3444. msm_pcm_put_out_chs),
  3445. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3446. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3447. msm_pcm_get_out_chs,
  3448. msm_pcm_put_out_chs),
  3449. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3450. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3451. msm_pcm_get_out_chs,
  3452. msm_pcm_put_out_chs),
  3453. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3454. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3455. msm_pcm_get_out_chs,
  3456. msm_pcm_put_out_chs),
  3457. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3459. msm_pcm_get_out_chs,
  3460. msm_pcm_put_out_chs),
  3461. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3462. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3463. msm_pcm_get_out_chs,
  3464. msm_pcm_put_out_chs),
  3465. {
  3466. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3467. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3468. .name = "MultiMedia1 Channel Mixer",
  3469. .info = msm_pcm_channel_mixer_info,
  3470. .get = msm_pcm_channel_mixer_get,
  3471. .put = msm_pcm_channel_mixer_put,
  3472. .private_value = (unsigned long)&(mm1_channel_mux)
  3473. },
  3474. {
  3475. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3476. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3477. .name = "MultiMedia2 Channel Mixer",
  3478. .info = msm_pcm_channel_mixer_info,
  3479. .get = msm_pcm_channel_mixer_get,
  3480. .put = msm_pcm_channel_mixer_put,
  3481. .private_value = (unsigned long)&(mm2_channel_mux)
  3482. },
  3483. {
  3484. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3485. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3486. .name = "MultiMedia3 Channel Mixer",
  3487. .info = msm_pcm_channel_mixer_info,
  3488. .get = msm_pcm_channel_mixer_get,
  3489. .put = msm_pcm_channel_mixer_put,
  3490. .private_value = (unsigned long)&(mm3_channel_mux)
  3491. },
  3492. {
  3493. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3494. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3495. .name = "MultiMedia4 Channel Mixer",
  3496. .info = msm_pcm_channel_mixer_info,
  3497. .get = msm_pcm_channel_mixer_get,
  3498. .put = msm_pcm_channel_mixer_put,
  3499. .private_value = (unsigned long)&(mm4_channel_mux)
  3500. },
  3501. {
  3502. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3503. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3504. .name = "MultiMedia18 Channel Mixer",
  3505. .info = msm_pcm_channel_mixer_info,
  3506. .get = msm_pcm_channel_mixer_get,
  3507. .put = msm_pcm_channel_mixer_put,
  3508. .private_value = (unsigned long)&(mm18_channel_mux)
  3509. },
  3510. {
  3511. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3512. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3513. .name = "MultiMedia19 Channel Mixer",
  3514. .info = msm_pcm_channel_mixer_info,
  3515. .get = msm_pcm_channel_mixer_get,
  3516. .put = msm_pcm_channel_mixer_put,
  3517. .private_value = (unsigned long)&(mm19_channel_mux)
  3518. },
  3519. {
  3520. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3521. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3522. .name = "MultiMedia28 Channel Mixer",
  3523. .info = msm_pcm_channel_mixer_info,
  3524. .get = msm_pcm_channel_mixer_get,
  3525. .put = msm_pcm_channel_mixer_put,
  3526. .private_value = (unsigned long)&(mm28_channel_mux)
  3527. },
  3528. {
  3529. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3530. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3531. .name = "MultiMedia29 Channel Mixer",
  3532. .info = msm_pcm_channel_mixer_info,
  3533. .get = msm_pcm_channel_mixer_get,
  3534. .put = msm_pcm_channel_mixer_put,
  3535. .private_value = (unsigned long)&(mm29_channel_mux)
  3536. },
  3537. {
  3538. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3539. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3540. .name = "MultiMedia30 Channel Mixer",
  3541. .info = msm_pcm_channel_mixer_info,
  3542. .get = msm_pcm_channel_mixer_get,
  3543. .put = msm_pcm_channel_mixer_put,
  3544. .private_value = (unsigned long)&(mm30_channel_mux)
  3545. },
  3546. {
  3547. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3548. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3549. .name = "MultiMedia1 Output Channel1",
  3550. .info = msm_pcm_channel_weight_info,
  3551. .get = msm_pcm_channel_weight_get,
  3552. .put = msm_pcm_channel_weight_put,
  3553. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3554. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3555. },
  3556. {
  3557. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3558. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3559. .name = "MultiMedia1 Output Channel2",
  3560. .info = msm_pcm_channel_weight_info,
  3561. .get = msm_pcm_channel_weight_get,
  3562. .put = msm_pcm_channel_weight_put,
  3563. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3564. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3565. },
  3566. {
  3567. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3568. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3569. .name = "MultiMedia1 Output Channel3",
  3570. .info = msm_pcm_channel_weight_info,
  3571. .get = msm_pcm_channel_weight_get,
  3572. .put = msm_pcm_channel_weight_put,
  3573. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3574. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3575. },
  3576. {
  3577. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3578. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3579. .name = "MultiMedia1 Output Channel4",
  3580. .info = msm_pcm_channel_weight_info,
  3581. .get = msm_pcm_channel_weight_get,
  3582. .put = msm_pcm_channel_weight_put,
  3583. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3584. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3585. },
  3586. {
  3587. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3588. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3589. .name = "MultiMedia1 Output Channel5",
  3590. .info = msm_pcm_channel_weight_info,
  3591. .get = msm_pcm_channel_weight_get,
  3592. .put = msm_pcm_channel_weight_put,
  3593. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3594. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3595. },
  3596. {
  3597. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3598. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3599. .name = "MultiMedia1 Output Channel6",
  3600. .info = msm_pcm_channel_weight_info,
  3601. .get = msm_pcm_channel_weight_get,
  3602. .put = msm_pcm_channel_weight_put,
  3603. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3604. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3605. },
  3606. {
  3607. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3608. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3609. .name = "MultiMedia1 Output Channel7",
  3610. .info = msm_pcm_channel_weight_info,
  3611. .get = msm_pcm_channel_weight_get,
  3612. .put = msm_pcm_channel_weight_put,
  3613. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3614. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3615. },
  3616. {
  3617. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3618. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3619. .name = "MultiMedia1 Output Channel8",
  3620. .info = msm_pcm_channel_weight_info,
  3621. .get = msm_pcm_channel_weight_get,
  3622. .put = msm_pcm_channel_weight_put,
  3623. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3624. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3625. },
  3626. {
  3627. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3628. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3629. .name = "MultiMedia1 Output Channel9",
  3630. .info = msm_pcm_channel_weight_info,
  3631. .get = msm_pcm_channel_weight_get,
  3632. .put = msm_pcm_channel_weight_put,
  3633. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3634. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3635. },
  3636. {
  3637. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3638. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3639. .name = "MultiMedia1 Output Channel10",
  3640. .info = msm_pcm_channel_weight_info,
  3641. .get = msm_pcm_channel_weight_get,
  3642. .put = msm_pcm_channel_weight_put,
  3643. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3644. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3645. },
  3646. {
  3647. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3648. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3649. .name = "MultiMedia1 Output Channel11",
  3650. .info = msm_pcm_channel_weight_info,
  3651. .get = msm_pcm_channel_weight_get,
  3652. .put = msm_pcm_channel_weight_put,
  3653. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3654. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3655. },
  3656. {
  3657. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3658. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3659. .name = "MultiMedia1 Output Channel12",
  3660. .info = msm_pcm_channel_weight_info,
  3661. .get = msm_pcm_channel_weight_get,
  3662. .put = msm_pcm_channel_weight_put,
  3663. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3664. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3665. },
  3666. {
  3667. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3668. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3669. .name = "MultiMedia1 Output Channel13",
  3670. .info = msm_pcm_channel_weight_info,
  3671. .get = msm_pcm_channel_weight_get,
  3672. .put = msm_pcm_channel_weight_put,
  3673. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3674. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3675. },
  3676. {
  3677. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3678. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3679. .name = "MultiMedia1 Output Channel14",
  3680. .info = msm_pcm_channel_weight_info,
  3681. .get = msm_pcm_channel_weight_get,
  3682. .put = msm_pcm_channel_weight_put,
  3683. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3684. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3685. },
  3686. {
  3687. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3688. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3689. .name = "MultiMedia2 Output Channel1",
  3690. .info = msm_pcm_channel_weight_info,
  3691. .get = msm_pcm_channel_weight_get,
  3692. .put = msm_pcm_channel_weight_put,
  3693. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3694. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3695. },
  3696. {
  3697. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3698. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3699. .name = "MultiMedia2 Output Channel2",
  3700. .info = msm_pcm_channel_weight_info,
  3701. .get = msm_pcm_channel_weight_get,
  3702. .put = msm_pcm_channel_weight_put,
  3703. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3704. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3705. },
  3706. {
  3707. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3708. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3709. .name = "MultiMedia2 Output Channel3",
  3710. .info = msm_pcm_channel_weight_info,
  3711. .get = msm_pcm_channel_weight_get,
  3712. .put = msm_pcm_channel_weight_put,
  3713. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3714. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3715. },
  3716. {
  3717. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3718. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3719. .name = "MultiMedia3 Output Channel1",
  3720. .info = msm_pcm_channel_weight_info,
  3721. .get = msm_pcm_channel_weight_get,
  3722. .put = msm_pcm_channel_weight_put,
  3723. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3724. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3725. },
  3726. {
  3727. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3728. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3729. .name = "MultiMedia3 Output Channel2",
  3730. .info = msm_pcm_channel_weight_info,
  3731. .get = msm_pcm_channel_weight_get,
  3732. .put = msm_pcm_channel_weight_put,
  3733. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3734. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3735. },
  3736. {
  3737. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3738. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3739. .name = "MultiMedia18 Output Channel1",
  3740. .info = msm_pcm_channel_weight_info,
  3741. .get = msm_pcm_channel_weight_get,
  3742. .put = msm_pcm_channel_weight_put,
  3743. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3744. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3745. },
  3746. {
  3747. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3748. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3749. .name = "MultiMedia18 Output Channel2",
  3750. .info = msm_pcm_channel_weight_info,
  3751. .get = msm_pcm_channel_weight_get,
  3752. .put = msm_pcm_channel_weight_put,
  3753. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3754. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3755. },
  3756. {
  3757. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3758. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3759. .name = "MultiMedia18 Output Channel3",
  3760. .info = msm_pcm_channel_weight_info,
  3761. .get = msm_pcm_channel_weight_get,
  3762. .put = msm_pcm_channel_weight_put,
  3763. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3764. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3765. },
  3766. {
  3767. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3768. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3769. .name = "MultiMedia18 Output Channel4",
  3770. .info = msm_pcm_channel_weight_info,
  3771. .get = msm_pcm_channel_weight_get,
  3772. .put = msm_pcm_channel_weight_put,
  3773. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3774. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3775. },
  3776. {
  3777. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3778. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3779. .name = "MultiMedia18 Output Channel5",
  3780. .info = msm_pcm_channel_weight_info,
  3781. .get = msm_pcm_channel_weight_get,
  3782. .put = msm_pcm_channel_weight_put,
  3783. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3784. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3785. },
  3786. {
  3787. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3788. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3789. .name = "MultiMedia18 Output Channel6",
  3790. .info = msm_pcm_channel_weight_info,
  3791. .get = msm_pcm_channel_weight_get,
  3792. .put = msm_pcm_channel_weight_put,
  3793. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3794. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3795. },
  3796. {
  3797. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3798. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3799. .name = "MultiMedia18 Output Channel7",
  3800. .info = msm_pcm_channel_weight_info,
  3801. .get = msm_pcm_channel_weight_get,
  3802. .put = msm_pcm_channel_weight_put,
  3803. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3804. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3805. },
  3806. {
  3807. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3808. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3809. .name = "MultiMedia18 Output Channel8",
  3810. .info = msm_pcm_channel_weight_info,
  3811. .get = msm_pcm_channel_weight_get,
  3812. .put = msm_pcm_channel_weight_put,
  3813. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3814. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3815. },
  3816. {
  3817. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3818. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3819. .name = "MultiMedia18 Output Channel9",
  3820. .info = msm_pcm_channel_weight_info,
  3821. .get = msm_pcm_channel_weight_get,
  3822. .put = msm_pcm_channel_weight_put,
  3823. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3824. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3825. },
  3826. {
  3827. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3828. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3829. .name = "MultiMedia18 Output Channel10",
  3830. .info = msm_pcm_channel_weight_info,
  3831. .get = msm_pcm_channel_weight_get,
  3832. .put = msm_pcm_channel_weight_put,
  3833. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3834. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3835. },
  3836. {
  3837. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3838. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3839. .name = "MultiMedia18 Output Channel11",
  3840. .info = msm_pcm_channel_weight_info,
  3841. .get = msm_pcm_channel_weight_get,
  3842. .put = msm_pcm_channel_weight_put,
  3843. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3844. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3845. },
  3846. {
  3847. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3848. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3849. .name = "MultiMedia18 Output Channel12",
  3850. .info = msm_pcm_channel_weight_info,
  3851. .get = msm_pcm_channel_weight_get,
  3852. .put = msm_pcm_channel_weight_put,
  3853. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3854. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3855. },
  3856. {
  3857. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3858. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3859. .name = "MultiMedia18 Output Channel13",
  3860. .info = msm_pcm_channel_weight_info,
  3861. .get = msm_pcm_channel_weight_get,
  3862. .put = msm_pcm_channel_weight_put,
  3863. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3864. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3865. },
  3866. {
  3867. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3868. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3869. .name = "MultiMedia18 Output Channel14",
  3870. .info = msm_pcm_channel_weight_info,
  3871. .get = msm_pcm_channel_weight_get,
  3872. .put = msm_pcm_channel_weight_put,
  3873. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3874. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3875. },
  3876. {
  3877. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3878. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3879. .name = "MultiMedia19 Output Channel1",
  3880. .info = msm_pcm_channel_weight_info,
  3881. .get = msm_pcm_channel_weight_get,
  3882. .put = msm_pcm_channel_weight_put,
  3883. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3884. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3885. },
  3886. {
  3887. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3888. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3889. .name = "MultiMedia19 Output Channel2",
  3890. .info = msm_pcm_channel_weight_info,
  3891. .get = msm_pcm_channel_weight_get,
  3892. .put = msm_pcm_channel_weight_put,
  3893. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3894. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3895. },
  3896. {
  3897. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3898. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3899. .name = "MultiMedia19 Output Channel3",
  3900. .info = msm_pcm_channel_weight_info,
  3901. .get = msm_pcm_channel_weight_get,
  3902. .put = msm_pcm_channel_weight_put,
  3903. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3904. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3905. },
  3906. {
  3907. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3908. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3909. .name = "MultiMedia19 Output Channel4",
  3910. .info = msm_pcm_channel_weight_info,
  3911. .get = msm_pcm_channel_weight_get,
  3912. .put = msm_pcm_channel_weight_put,
  3913. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3914. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3915. },
  3916. {
  3917. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3918. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3919. .name = "MultiMedia19 Output Channel5",
  3920. .info = msm_pcm_channel_weight_info,
  3921. .get = msm_pcm_channel_weight_get,
  3922. .put = msm_pcm_channel_weight_put,
  3923. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3924. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3925. },
  3926. {
  3927. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3928. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3929. .name = "MultiMedia19 Output Channel6",
  3930. .info = msm_pcm_channel_weight_info,
  3931. .get = msm_pcm_channel_weight_get,
  3932. .put = msm_pcm_channel_weight_put,
  3933. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3934. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  3935. },
  3936. {
  3937. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3938. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3939. .name = "MultiMedia19 Output Channel7",
  3940. .info = msm_pcm_channel_weight_info,
  3941. .get = msm_pcm_channel_weight_get,
  3942. .put = msm_pcm_channel_weight_put,
  3943. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3944. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  3945. },
  3946. {
  3947. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3948. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3949. .name = "MultiMedia19 Output Channel8",
  3950. .info = msm_pcm_channel_weight_info,
  3951. .get = msm_pcm_channel_weight_get,
  3952. .put = msm_pcm_channel_weight_put,
  3953. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3954. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  3955. },
  3956. {
  3957. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3958. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3959. .name = "MultiMedia19 Output Channel9",
  3960. .info = msm_pcm_channel_weight_info,
  3961. .get = msm_pcm_channel_weight_get,
  3962. .put = msm_pcm_channel_weight_put,
  3963. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3964. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  3965. },
  3966. {
  3967. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3968. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3969. .name = "MultiMedia19 Output Channel10",
  3970. .info = msm_pcm_channel_weight_info,
  3971. .get = msm_pcm_channel_weight_get,
  3972. .put = msm_pcm_channel_weight_put,
  3973. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3974. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  3975. },
  3976. {
  3977. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3978. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3979. .name = "MultiMedia19 Output Channel11",
  3980. .info = msm_pcm_channel_weight_info,
  3981. .get = msm_pcm_channel_weight_get,
  3982. .put = msm_pcm_channel_weight_put,
  3983. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3984. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  3985. },
  3986. {
  3987. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3988. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3989. .name = "MultiMedia19 Output Channel12",
  3990. .info = msm_pcm_channel_weight_info,
  3991. .get = msm_pcm_channel_weight_get,
  3992. .put = msm_pcm_channel_weight_put,
  3993. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3994. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  3995. },
  3996. {
  3997. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3998. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3999. .name = "MultiMedia19 Output Channel13",
  4000. .info = msm_pcm_channel_weight_info,
  4001. .get = msm_pcm_channel_weight_get,
  4002. .put = msm_pcm_channel_weight_put,
  4003. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4004. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4005. },
  4006. {
  4007. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4008. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4009. .name = "MultiMedia19 Output Channel14",
  4010. .info = msm_pcm_channel_weight_info,
  4011. .get = msm_pcm_channel_weight_get,
  4012. .put = msm_pcm_channel_weight_put,
  4013. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4014. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4015. },
  4016. {
  4017. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4018. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4019. .name = "MultiMedia28 Output Channel1",
  4020. .info = msm_pcm_channel_weight_info,
  4021. .get = msm_pcm_channel_weight_get,
  4022. .put = msm_pcm_channel_weight_put,
  4023. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4024. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4025. },
  4026. {
  4027. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4028. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4029. .name = "MultiMedia28 Output Channel2",
  4030. .info = msm_pcm_channel_weight_info,
  4031. .get = msm_pcm_channel_weight_get,
  4032. .put = msm_pcm_channel_weight_put,
  4033. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4034. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4035. },
  4036. {
  4037. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4038. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4039. .name = "MultiMedia28 Output Channel3",
  4040. .info = msm_pcm_channel_weight_info,
  4041. .get = msm_pcm_channel_weight_get,
  4042. .put = msm_pcm_channel_weight_put,
  4043. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4044. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4045. },
  4046. {
  4047. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4048. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4049. .name = "MultiMedia28 Output Channel4",
  4050. .info = msm_pcm_channel_weight_info,
  4051. .get = msm_pcm_channel_weight_get,
  4052. .put = msm_pcm_channel_weight_put,
  4053. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4054. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4055. },
  4056. {
  4057. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4058. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4059. .name = "MultiMedia28 Output Channel5",
  4060. .info = msm_pcm_channel_weight_info,
  4061. .get = msm_pcm_channel_weight_get,
  4062. .put = msm_pcm_channel_weight_put,
  4063. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4064. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4065. },
  4066. {
  4067. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4068. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4069. .name = "MultiMedia28 Output Channel6",
  4070. .info = msm_pcm_channel_weight_info,
  4071. .get = msm_pcm_channel_weight_get,
  4072. .put = msm_pcm_channel_weight_put,
  4073. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4074. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4075. },
  4076. {
  4077. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4078. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4079. .name = "MultiMedia28 Output Channel7",
  4080. .info = msm_pcm_channel_weight_info,
  4081. .get = msm_pcm_channel_weight_get,
  4082. .put = msm_pcm_channel_weight_put,
  4083. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4084. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4085. },
  4086. {
  4087. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4088. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4089. .name = "MultiMedia28 Output Channel8",
  4090. .info = msm_pcm_channel_weight_info,
  4091. .get = msm_pcm_channel_weight_get,
  4092. .put = msm_pcm_channel_weight_put,
  4093. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4094. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4095. },
  4096. {
  4097. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4098. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4099. .name = "MultiMedia28 Output Channel9",
  4100. .info = msm_pcm_channel_weight_info,
  4101. .get = msm_pcm_channel_weight_get,
  4102. .put = msm_pcm_channel_weight_put,
  4103. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4104. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4105. },
  4106. {
  4107. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4108. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4109. .name = "MultiMedia28 Output Channel10",
  4110. .info = msm_pcm_channel_weight_info,
  4111. .get = msm_pcm_channel_weight_get,
  4112. .put = msm_pcm_channel_weight_put,
  4113. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4114. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4115. },
  4116. {
  4117. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4118. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4119. .name = "MultiMedia28 Output Channel11",
  4120. .info = msm_pcm_channel_weight_info,
  4121. .get = msm_pcm_channel_weight_get,
  4122. .put = msm_pcm_channel_weight_put,
  4123. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4124. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4125. },
  4126. {
  4127. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4128. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4129. .name = "MultiMedia28 Output Channel12",
  4130. .info = msm_pcm_channel_weight_info,
  4131. .get = msm_pcm_channel_weight_get,
  4132. .put = msm_pcm_channel_weight_put,
  4133. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4134. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4135. },
  4136. {
  4137. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4138. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4139. .name = "MultiMedia28 Output Channel13",
  4140. .info = msm_pcm_channel_weight_info,
  4141. .get = msm_pcm_channel_weight_get,
  4142. .put = msm_pcm_channel_weight_put,
  4143. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4144. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4145. },
  4146. {
  4147. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4148. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4149. .name = "MultiMedia28 Output Channel14",
  4150. .info = msm_pcm_channel_weight_info,
  4151. .get = msm_pcm_channel_weight_get,
  4152. .put = msm_pcm_channel_weight_put,
  4153. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4154. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4155. },
  4156. {
  4157. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4158. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4159. .name = "MultiMedia29 Output Channel1",
  4160. .info = msm_pcm_channel_weight_info,
  4161. .get = msm_pcm_channel_weight_get,
  4162. .put = msm_pcm_channel_weight_put,
  4163. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4164. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4165. },
  4166. {
  4167. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4168. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4169. .name = "MultiMedia29 Output Channel2",
  4170. .info = msm_pcm_channel_weight_info,
  4171. .get = msm_pcm_channel_weight_get,
  4172. .put = msm_pcm_channel_weight_put,
  4173. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4174. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4175. },
  4176. {
  4177. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4178. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4179. .name = "MultiMedia29 Output Channel3",
  4180. .info = msm_pcm_channel_weight_info,
  4181. .get = msm_pcm_channel_weight_get,
  4182. .put = msm_pcm_channel_weight_put,
  4183. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4184. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4185. },
  4186. {
  4187. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4188. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4189. .name = "MultiMedia29 Output Channel4",
  4190. .info = msm_pcm_channel_weight_info,
  4191. .get = msm_pcm_channel_weight_get,
  4192. .put = msm_pcm_channel_weight_put,
  4193. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4194. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4195. },
  4196. {
  4197. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4198. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4199. .name = "MultiMedia29 Output Channel5",
  4200. .info = msm_pcm_channel_weight_info,
  4201. .get = msm_pcm_channel_weight_get,
  4202. .put = msm_pcm_channel_weight_put,
  4203. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4204. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4205. },
  4206. {
  4207. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4208. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4209. .name = "MultiMedia29 Output Channel6",
  4210. .info = msm_pcm_channel_weight_info,
  4211. .get = msm_pcm_channel_weight_get,
  4212. .put = msm_pcm_channel_weight_put,
  4213. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4214. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4215. },
  4216. {
  4217. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4218. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4219. .name = "MultiMedia29 Output Channel7",
  4220. .info = msm_pcm_channel_weight_info,
  4221. .get = msm_pcm_channel_weight_get,
  4222. .put = msm_pcm_channel_weight_put,
  4223. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4224. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4225. },
  4226. {
  4227. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4228. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4229. .name = "MultiMedia29 Output Channel8",
  4230. .info = msm_pcm_channel_weight_info,
  4231. .get = msm_pcm_channel_weight_get,
  4232. .put = msm_pcm_channel_weight_put,
  4233. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4234. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4235. },
  4236. {
  4237. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4238. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4239. .name = "MultiMedia29 Output Channel9",
  4240. .info = msm_pcm_channel_weight_info,
  4241. .get = msm_pcm_channel_weight_get,
  4242. .put = msm_pcm_channel_weight_put,
  4243. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4244. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4245. },
  4246. {
  4247. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4248. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4249. .name = "MultiMedia29 Output Channel10",
  4250. .info = msm_pcm_channel_weight_info,
  4251. .get = msm_pcm_channel_weight_get,
  4252. .put = msm_pcm_channel_weight_put,
  4253. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4254. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4255. },
  4256. {
  4257. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4258. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4259. .name = "MultiMedia29 Output Channel11",
  4260. .info = msm_pcm_channel_weight_info,
  4261. .get = msm_pcm_channel_weight_get,
  4262. .put = msm_pcm_channel_weight_put,
  4263. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4264. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4265. },
  4266. {
  4267. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4268. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4269. .name = "MultiMedia29 Output Channel12",
  4270. .info = msm_pcm_channel_weight_info,
  4271. .get = msm_pcm_channel_weight_get,
  4272. .put = msm_pcm_channel_weight_put,
  4273. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4274. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4275. },
  4276. {
  4277. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4278. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4279. .name = "MultiMedia29 Output Channel13",
  4280. .info = msm_pcm_channel_weight_info,
  4281. .get = msm_pcm_channel_weight_get,
  4282. .put = msm_pcm_channel_weight_put,
  4283. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4284. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4285. },
  4286. {
  4287. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4288. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4289. .name = "MultiMedia29 Output Channel14",
  4290. .info = msm_pcm_channel_weight_info,
  4291. .get = msm_pcm_channel_weight_get,
  4292. .put = msm_pcm_channel_weight_put,
  4293. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4294. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4295. },
  4296. {
  4297. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4298. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4299. .name = "MultiMedia30 Output Channel1",
  4300. .info = msm_pcm_channel_weight_info,
  4301. .get = msm_pcm_channel_weight_get,
  4302. .put = msm_pcm_channel_weight_put,
  4303. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4304. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4305. },
  4306. {
  4307. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4308. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4309. .name = "MultiMedia30 Output Channel2",
  4310. .info = msm_pcm_channel_weight_info,
  4311. .get = msm_pcm_channel_weight_get,
  4312. .put = msm_pcm_channel_weight_put,
  4313. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4314. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4315. },
  4316. {
  4317. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4318. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4319. .name = "MultiMedia30 Output Channel3",
  4320. .info = msm_pcm_channel_weight_info,
  4321. .get = msm_pcm_channel_weight_get,
  4322. .put = msm_pcm_channel_weight_put,
  4323. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4324. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4325. },
  4326. {
  4327. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4328. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4329. .name = "MultiMedia30 Output Channel4",
  4330. .info = msm_pcm_channel_weight_info,
  4331. .get = msm_pcm_channel_weight_get,
  4332. .put = msm_pcm_channel_weight_put,
  4333. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4334. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4335. },
  4336. {
  4337. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4338. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4339. .name = "MultiMedia30 Output Channel5",
  4340. .info = msm_pcm_channel_weight_info,
  4341. .get = msm_pcm_channel_weight_get,
  4342. .put = msm_pcm_channel_weight_put,
  4343. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4344. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4345. },
  4346. {
  4347. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4348. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4349. .name = "MultiMedia30 Output Channel6",
  4350. .info = msm_pcm_channel_weight_info,
  4351. .get = msm_pcm_channel_weight_get,
  4352. .put = msm_pcm_channel_weight_put,
  4353. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4354. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4355. },
  4356. {
  4357. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4358. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4359. .name = "MultiMedia30 Output Channel7",
  4360. .info = msm_pcm_channel_weight_info,
  4361. .get = msm_pcm_channel_weight_get,
  4362. .put = msm_pcm_channel_weight_put,
  4363. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4364. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4365. },
  4366. {
  4367. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4368. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4369. .name = "MultiMedia30 Output Channel8",
  4370. .info = msm_pcm_channel_weight_info,
  4371. .get = msm_pcm_channel_weight_get,
  4372. .put = msm_pcm_channel_weight_put,
  4373. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4374. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4375. },
  4376. {
  4377. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4378. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4379. .name = "MultiMedia30 Output Channel9",
  4380. .info = msm_pcm_channel_weight_info,
  4381. .get = msm_pcm_channel_weight_get,
  4382. .put = msm_pcm_channel_weight_put,
  4383. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4384. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4385. },
  4386. {
  4387. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4388. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4389. .name = "MultiMedia30 Output Channel10",
  4390. .info = msm_pcm_channel_weight_info,
  4391. .get = msm_pcm_channel_weight_get,
  4392. .put = msm_pcm_channel_weight_put,
  4393. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4394. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4395. },
  4396. {
  4397. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4398. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4399. .name = "MultiMedia30 Output Channel11",
  4400. .info = msm_pcm_channel_weight_info,
  4401. .get = msm_pcm_channel_weight_get,
  4402. .put = msm_pcm_channel_weight_put,
  4403. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4404. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4405. },
  4406. {
  4407. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4408. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4409. .name = "MultiMedia30 Output Channel12",
  4410. .info = msm_pcm_channel_weight_info,
  4411. .get = msm_pcm_channel_weight_get,
  4412. .put = msm_pcm_channel_weight_put,
  4413. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4414. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4415. },
  4416. {
  4417. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4418. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4419. .name = "MultiMedia30 Output Channel13",
  4420. .info = msm_pcm_channel_weight_info,
  4421. .get = msm_pcm_channel_weight_get,
  4422. .put = msm_pcm_channel_weight_put,
  4423. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4424. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4425. },
  4426. {
  4427. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4428. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4429. .name = "MultiMedia30 Output Channel14",
  4430. .info = msm_pcm_channel_weight_info,
  4431. .get = msm_pcm_channel_weight_get,
  4432. .put = msm_pcm_channel_weight_put,
  4433. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4434. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4435. },
  4436. {
  4437. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4438. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4439. .name = "MultiMedia1 Channel1",
  4440. .info = msm_pcm_channel_input_be_info,
  4441. .get = msm_pcm_channel_input_be_get,
  4442. .put = msm_pcm_channel_input_be_put,
  4443. .private_value = (unsigned long)&(mm1_ch1_enum)
  4444. },
  4445. {
  4446. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4447. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4448. .name = "MultiMedia1 Channel2",
  4449. .info = msm_pcm_channel_input_be_info,
  4450. .get = msm_pcm_channel_input_be_get,
  4451. .put = msm_pcm_channel_input_be_put,
  4452. .private_value = (unsigned long)&(mm1_ch2_enum)
  4453. },
  4454. {
  4455. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4456. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4457. .name = "MultiMedia1 Channel3",
  4458. .info = msm_pcm_channel_input_be_info,
  4459. .get = msm_pcm_channel_input_be_get,
  4460. .put = msm_pcm_channel_input_be_put,
  4461. .private_value = (unsigned long)&(mm1_ch3_enum)
  4462. },
  4463. {
  4464. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4465. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4466. .name = "MultiMedia1 Channel4",
  4467. .info = msm_pcm_channel_input_be_info,
  4468. .get = msm_pcm_channel_input_be_get,
  4469. .put = msm_pcm_channel_input_be_put,
  4470. .private_value = (unsigned long)&(mm1_ch4_enum)
  4471. },
  4472. {
  4473. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4474. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4475. .name = "MultiMedia1 Channel5",
  4476. .info = msm_pcm_channel_input_be_info,
  4477. .get = msm_pcm_channel_input_be_get,
  4478. .put = msm_pcm_channel_input_be_put,
  4479. .private_value = (unsigned long)&(mm1_ch5_enum)
  4480. },
  4481. {
  4482. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4483. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4484. .name = "MultiMedia1 Channel6",
  4485. .info = msm_pcm_channel_input_be_info,
  4486. .get = msm_pcm_channel_input_be_get,
  4487. .put = msm_pcm_channel_input_be_put,
  4488. .private_value = (unsigned long)&(mm1_ch6_enum)
  4489. },
  4490. {
  4491. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4492. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4493. .name = "MultiMedia1 Channel7",
  4494. .info = msm_pcm_channel_input_be_info,
  4495. .get = msm_pcm_channel_input_be_get,
  4496. .put = msm_pcm_channel_input_be_put,
  4497. .private_value = (unsigned long)&(mm1_ch7_enum)
  4498. },
  4499. {
  4500. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4501. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4502. .name = "MultiMedia1 Channel8",
  4503. .info = msm_pcm_channel_input_be_info,
  4504. .get = msm_pcm_channel_input_be_get,
  4505. .put = msm_pcm_channel_input_be_put,
  4506. .private_value = (unsigned long)&(mm1_ch8_enum)
  4507. },
  4508. {
  4509. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4510. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4511. .name = "MultiMedia18 Channel1",
  4512. .info = msm_pcm_channel_input_be_info,
  4513. .get = msm_pcm_channel_input_be_get,
  4514. .put = msm_pcm_channel_input_be_put,
  4515. .private_value = (unsigned long)&(mm18_ch1_enum)
  4516. },
  4517. {
  4518. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4519. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4520. .name = "MultiMedia18 Channel2",
  4521. .info = msm_pcm_channel_input_be_info,
  4522. .get = msm_pcm_channel_input_be_get,
  4523. .put = msm_pcm_channel_input_be_put,
  4524. .private_value = (unsigned long)&(mm18_ch2_enum)
  4525. },
  4526. {
  4527. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4528. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4529. .name = "MultiMedia19 Channel1",
  4530. .info = msm_pcm_channel_input_be_info,
  4531. .get = msm_pcm_channel_input_be_get,
  4532. .put = msm_pcm_channel_input_be_put,
  4533. .private_value = (unsigned long)&(mm19_ch1_enum)
  4534. },
  4535. {
  4536. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4537. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4538. .name = "MultiMedia19 Channel2",
  4539. .info = msm_pcm_channel_input_be_info,
  4540. .get = msm_pcm_channel_input_be_get,
  4541. .put = msm_pcm_channel_input_be_put,
  4542. .private_value = (unsigned long)&(mm19_ch2_enum)
  4543. },
  4544. {
  4545. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4546. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4547. .name = "MultiMedia28 Channel1",
  4548. .info = msm_pcm_channel_input_be_info,
  4549. .get = msm_pcm_channel_input_be_get,
  4550. .put = msm_pcm_channel_input_be_put,
  4551. .private_value = (unsigned long)&(mm28_ch1_enum)
  4552. },
  4553. {
  4554. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4555. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4556. .name = "MultiMedia28 Channel2",
  4557. .info = msm_pcm_channel_input_be_info,
  4558. .get = msm_pcm_channel_input_be_get,
  4559. .put = msm_pcm_channel_input_be_put,
  4560. .private_value = (unsigned long)&(mm28_ch2_enum)
  4561. },
  4562. {
  4563. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4564. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4565. .name = "MultiMedia29 Channel1",
  4566. .info = msm_pcm_channel_input_be_info,
  4567. .get = msm_pcm_channel_input_be_get,
  4568. .put = msm_pcm_channel_input_be_put,
  4569. .private_value = (unsigned long)&(mm29_ch1_enum)
  4570. },
  4571. {
  4572. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4573. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4574. .name = "MultiMedia29 Channel2",
  4575. .info = msm_pcm_channel_input_be_info,
  4576. .get = msm_pcm_channel_input_be_get,
  4577. .put = msm_pcm_channel_input_be_put,
  4578. .private_value = (unsigned long)&(mm29_ch2_enum)
  4579. },
  4580. {
  4581. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4582. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4583. .name = "MultiMedia30 Channel1",
  4584. .info = msm_pcm_channel_input_be_info,
  4585. .get = msm_pcm_channel_input_be_get,
  4586. .put = msm_pcm_channel_input_be_put,
  4587. .private_value = (unsigned long)&(mm30_ch1_enum)
  4588. },
  4589. {
  4590. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4591. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4592. .name = "MultiMedia30 Channel2",
  4593. .info = msm_pcm_channel_input_be_info,
  4594. .get = msm_pcm_channel_input_be_get,
  4595. .put = msm_pcm_channel_input_be_put,
  4596. .private_value = (unsigned long)&(mm30_ch2_enum)
  4597. },
  4598. {
  4599. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4600. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4601. .name = "MultiMedia1 Output Channel Map",
  4602. .info = msm_pcm_channel_output_map_info,
  4603. .get = msm_pcm_channel_output_map_get,
  4604. .put = msm_pcm_channel_output_map_put,
  4605. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4606. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4607. },
  4608. {
  4609. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4610. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4611. .name = "MultiMedia2 Output Channel Map",
  4612. .info = msm_pcm_channel_output_map_info,
  4613. .get = msm_pcm_channel_output_map_get,
  4614. .put = msm_pcm_channel_output_map_put,
  4615. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4616. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4617. },
  4618. {
  4619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4621. .name = "MultiMedia3 Output Channel Map",
  4622. .info = msm_pcm_channel_output_map_info,
  4623. .get = msm_pcm_channel_output_map_get,
  4624. .put = msm_pcm_channel_output_map_put,
  4625. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4626. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4627. },
  4628. {
  4629. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4630. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4631. .name = "MultiMedia4 Output Channel Map",
  4632. .info = msm_pcm_channel_output_map_info,
  4633. .get = msm_pcm_channel_output_map_get,
  4634. .put = msm_pcm_channel_output_map_put,
  4635. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4636. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4637. },
  4638. {
  4639. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4641. .name = "MultiMedia5 Output Channel Map",
  4642. .info = msm_pcm_channel_output_map_info,
  4643. .get = msm_pcm_channel_output_map_get,
  4644. .put = msm_pcm_channel_output_map_put,
  4645. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4646. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4647. },
  4648. {
  4649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4650. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4651. .name = "MultiMedia6 Output Channel Map",
  4652. .info = msm_pcm_channel_output_map_info,
  4653. .get = msm_pcm_channel_output_map_get,
  4654. .put = msm_pcm_channel_output_map_put,
  4655. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4656. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4657. },
  4658. {
  4659. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4660. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4661. .name = "MultiMedia18 Output Channel Map",
  4662. .info = msm_pcm_channel_output_map_info,
  4663. .get = msm_pcm_channel_output_map_get,
  4664. .put = msm_pcm_channel_output_map_put,
  4665. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4666. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4667. },
  4668. {
  4669. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4670. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4671. .name = "MultiMedia19 Output Channel Map",
  4672. .info = msm_pcm_channel_output_map_info,
  4673. .get = msm_pcm_channel_output_map_get,
  4674. .put = msm_pcm_channel_output_map_put,
  4675. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4676. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4677. },
  4678. {
  4679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4680. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4681. .name = "MultiMedia28 Output Channel Map",
  4682. .info = msm_pcm_channel_output_map_info,
  4683. .get = msm_pcm_channel_output_map_get,
  4684. .put = msm_pcm_channel_output_map_put,
  4685. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4686. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4687. },
  4688. {
  4689. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4690. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4691. .name = "MultiMedia29 Output Channel Map",
  4692. .info = msm_pcm_channel_output_map_info,
  4693. .get = msm_pcm_channel_output_map_get,
  4694. .put = msm_pcm_channel_output_map_put,
  4695. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4696. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4697. },
  4698. {
  4699. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4700. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4701. .name = "MultiMedia30 Output Channel Map",
  4702. .info = msm_pcm_channel_output_map_info,
  4703. .get = msm_pcm_channel_output_map_get,
  4704. .put = msm_pcm_channel_output_map_put,
  4705. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4706. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4707. },
  4708. };
  4709. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4710. struct snd_ctl_elem_value *ucontrol)
  4711. {
  4712. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4713. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4714. ucontrol->value.integer.value[0]);
  4715. return 0;
  4716. }
  4717. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4718. struct snd_ctl_elem_value *ucontrol)
  4719. {
  4720. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4721. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4722. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4723. return 0;
  4724. }
  4725. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4726. struct snd_ctl_elem_value *ucontrol)
  4727. {
  4728. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4729. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4730. ucontrol->value.integer.value[0]);
  4731. return 0;
  4732. }
  4733. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4734. struct snd_ctl_elem_value *ucontrol)
  4735. {
  4736. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4737. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4738. __func__, msm_ec_ref_ch_downmixed);
  4739. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4740. return 0;
  4741. }
  4742. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4743. struct snd_ctl_elem_value *ucontrol)
  4744. {
  4745. int i = 0, ret = 0;
  4746. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4747. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4748. kcontrol->private_value)->shift;
  4749. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4750. weights[i] = ucontrol->value.integer.value[i];
  4751. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4752. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4753. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4754. return ret;
  4755. }
  4756. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4757. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4758. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4759. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4760. struct snd_ctl_elem_value *ucontrol)
  4761. {
  4762. switch (msm_ec_ref_bit_format) {
  4763. case SNDRV_PCM_FORMAT_S24_LE:
  4764. ucontrol->value.integer.value[0] = 2;
  4765. break;
  4766. case SNDRV_PCM_FORMAT_S16_LE:
  4767. ucontrol->value.integer.value[0] = 1;
  4768. break;
  4769. default:
  4770. ucontrol->value.integer.value[0] = 0;
  4771. break;
  4772. }
  4773. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4774. __func__, ucontrol->value.integer.value[0]);
  4775. return 0;
  4776. }
  4777. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4778. struct snd_ctl_elem_value *ucontrol)
  4779. {
  4780. u16 bit_width = 0;
  4781. switch (ucontrol->value.integer.value[0]) {
  4782. case 2:
  4783. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4784. break;
  4785. case 1:
  4786. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4787. break;
  4788. default:
  4789. msm_ec_ref_bit_format = 0;
  4790. break;
  4791. }
  4792. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4793. bit_width = 16;
  4794. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4795. bit_width = 24;
  4796. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4797. __func__, msm_ec_ref_bit_format);
  4798. adm_ec_ref_rx_bit_width(bit_width);
  4799. return 0;
  4800. }
  4801. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4802. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4803. struct snd_ctl_elem_value *ucontrol)
  4804. {
  4805. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4806. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4807. __func__, ucontrol->value.integer.value[0]);
  4808. return 0;
  4809. }
  4810. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4811. struct snd_ctl_elem_value *ucontrol)
  4812. {
  4813. switch (ucontrol->value.integer.value[0]) {
  4814. case 0:
  4815. msm_ec_ref_sampling_rate = 0;
  4816. break;
  4817. case 1:
  4818. msm_ec_ref_sampling_rate = 8000;
  4819. break;
  4820. case 2:
  4821. msm_ec_ref_sampling_rate = 16000;
  4822. break;
  4823. case 3:
  4824. msm_ec_ref_sampling_rate = 32000;
  4825. break;
  4826. case 4:
  4827. msm_ec_ref_sampling_rate = 44100;
  4828. break;
  4829. case 5:
  4830. msm_ec_ref_sampling_rate = 48000;
  4831. break;
  4832. case 6:
  4833. msm_ec_ref_sampling_rate = 96000;
  4834. break;
  4835. case 7:
  4836. msm_ec_ref_sampling_rate = 192000;
  4837. break;
  4838. case 8:
  4839. msm_ec_ref_sampling_rate = 384000;
  4840. break;
  4841. default:
  4842. msm_ec_ref_sampling_rate = 48000;
  4843. break;
  4844. }
  4845. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4846. __func__, msm_ec_ref_sampling_rate);
  4847. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4848. return 0;
  4849. }
  4850. static int get_ec_ref_port_id(int value, int *index)
  4851. {
  4852. int port_id;
  4853. switch (value) {
  4854. case 0:
  4855. *index = 0;
  4856. port_id = AFE_PORT_INVALID;
  4857. break;
  4858. case 1:
  4859. *index = 1;
  4860. port_id = SLIMBUS_0_RX;
  4861. break;
  4862. case 2:
  4863. *index = 2;
  4864. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4865. break;
  4866. case 3:
  4867. *index = 3;
  4868. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4869. break;
  4870. case 4:
  4871. *index = 4;
  4872. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4873. break;
  4874. case 5:
  4875. *index = 5;
  4876. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4877. break;
  4878. case 6:
  4879. *index = 6;
  4880. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4881. break;
  4882. case 7:
  4883. *index = 7;
  4884. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4885. break;
  4886. case 9:
  4887. *index = 9;
  4888. port_id = SLIMBUS_5_RX;
  4889. break;
  4890. case 10:
  4891. *index = 10;
  4892. port_id = SLIMBUS_1_TX;
  4893. break;
  4894. case 11:
  4895. *index = 11;
  4896. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4897. break;
  4898. case 12:
  4899. *index = 12;
  4900. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4901. break;
  4902. case 13:
  4903. *index = 13;
  4904. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4905. break;
  4906. case 14:
  4907. *index = 14;
  4908. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4909. break;
  4910. case 15:
  4911. *index = 15;
  4912. port_id = SLIMBUS_6_RX;
  4913. break;
  4914. case 16:
  4915. *index = 16;
  4916. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4917. break;
  4918. case 17:
  4919. *index = 17;
  4920. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4921. break;
  4922. case 18:
  4923. *index = 18;
  4924. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4925. break;
  4926. case 19:
  4927. *index = 19;
  4928. port_id = AFE_PORT_ID_USB_RX;
  4929. break;
  4930. case 20:
  4931. *index = 20;
  4932. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4933. break;
  4934. case 21:
  4935. *index = 21;
  4936. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4937. break;
  4938. case 22:
  4939. *index = 22;
  4940. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4941. break;
  4942. case 23:
  4943. *index = 23;
  4944. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4945. break;
  4946. case 24:
  4947. *index = 24;
  4948. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4949. break;
  4950. case 25:
  4951. *index = 25;
  4952. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4953. break;
  4954. case 26:
  4955. *index = 26;
  4956. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4957. break;
  4958. case 27:
  4959. *index = 27;
  4960. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4961. break;
  4962. case 28:
  4963. *index = 28;
  4964. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  4965. break;
  4966. case 29:
  4967. *index = 29;
  4968. port_id = SLIMBUS_7_RX;
  4969. break;
  4970. case 30:
  4971. *index = 30;
  4972. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  4973. break;
  4974. case 31:
  4975. *index = 31;
  4976. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  4977. break;
  4978. case 32:
  4979. *index = 32;
  4980. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  4981. break;
  4982. case 33:
  4983. *index = 33;
  4984. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  4985. break;
  4986. case 34:
  4987. *index = 34;
  4988. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  4989. break;
  4990. case 35:
  4991. *index = 35;
  4992. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  4993. break;
  4994. case 36:
  4995. *index = 36;
  4996. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  4997. break;
  4998. case 37:
  4999. *index = 37;
  5000. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5001. break;
  5002. default:
  5003. *index = 0; /* NONE */
  5004. pr_err("%s: Invalid value %d\n", __func__, value);
  5005. port_id = AFE_PORT_INVALID;
  5006. break;
  5007. }
  5008. return port_id;
  5009. }
  5010. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5011. struct snd_ctl_elem_value *ucontrol)
  5012. {
  5013. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5014. mutex_lock(&routing_lock);
  5015. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5016. mutex_unlock(&routing_lock);
  5017. return 0;
  5018. }
  5019. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5020. struct snd_ctl_elem_value *ucontrol)
  5021. {
  5022. int value = ucontrol->value.integer.value[0];
  5023. mutex_lock(&routing_lock);
  5024. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5025. &afe_loopback_tx_port_index);
  5026. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5027. __func__, afe_loopback_tx_port_index);
  5028. mutex_unlock(&routing_lock);
  5029. return 0;
  5030. }
  5031. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5032. "32000", "44100", "48000", "96000", "192000", "384000"};
  5033. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5034. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5035. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5036. ec_ref_bit_format_text),
  5037. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5038. };
  5039. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5040. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5041. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5042. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5043. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5044. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5045. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5046. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5047. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5048. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5049. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5050. "DISPLAY_PORT1",
  5051. };
  5052. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5053. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5054. };
  5055. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5056. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5057. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5058. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5059. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5060. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5061. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5062. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5063. msm_route_ec_ref_params_enum[0],
  5064. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5065. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5066. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5067. msm_ec_ref_chmixer_weights_put),
  5068. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5069. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5070. msm_ec_ref_chmixer_weights_put),
  5071. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5072. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5073. msm_ec_ref_chmixer_weights_put),
  5074. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5075. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5076. msm_ec_ref_chmixer_weights_put),
  5077. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5078. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5079. msm_ec_ref_chmixer_weights_put),
  5080. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5081. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5082. msm_ec_ref_chmixer_weights_put),
  5083. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5084. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5085. };
  5086. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5087. struct snd_ctl_elem_value *ucontrol)
  5088. {
  5089. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5090. mutex_lock(&routing_lock);
  5091. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5092. mutex_unlock(&routing_lock);
  5093. return 0;
  5094. }
  5095. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5096. struct snd_ctl_elem_value *ucontrol)
  5097. {
  5098. int value = ucontrol->value.integer.value[0];
  5099. struct snd_soc_dapm_widget *widget =
  5100. snd_soc_dapm_kcontrol_widget(kcontrol);
  5101. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5102. struct snd_soc_dapm_update *update = NULL;
  5103. mutex_lock(&routing_lock);
  5104. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5105. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5106. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5107. __func__, msm_route_ec_ref_rx);
  5108. mutex_unlock(&routing_lock);
  5109. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5110. msm_route_ec_ref_rx, e, update);
  5111. return 0;
  5112. }
  5113. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5114. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5115. msm_route_ec_ref_rx_enum[0],
  5116. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5117. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5118. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5119. msm_route_ec_ref_rx_enum[0],
  5120. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5121. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5122. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5123. msm_route_ec_ref_rx_enum[0],
  5124. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5125. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5126. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5127. msm_route_ec_ref_rx_enum[0],
  5128. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5129. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5130. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5131. msm_route_ec_ref_rx_enum[0],
  5132. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5133. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5134. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5135. msm_route_ec_ref_rx_enum[0],
  5136. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5137. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5138. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5139. msm_route_ec_ref_rx_enum[0],
  5140. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5141. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5142. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5143. msm_route_ec_ref_rx_enum[0],
  5144. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5145. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5146. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5147. msm_route_ec_ref_rx_enum[0],
  5148. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5149. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5150. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5151. msm_route_ec_ref_rx_enum[0],
  5152. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5153. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5154. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5155. msm_route_ec_ref_rx_enum[0],
  5156. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5157. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5158. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5159. msm_route_ec_ref_rx_enum[0],
  5160. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5161. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5162. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5163. msm_route_ec_ref_rx_enum[0],
  5164. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5165. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5166. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5167. msm_route_ec_ref_rx_enum[0],
  5168. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5169. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5170. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5171. msm_route_ec_ref_rx_enum[0],
  5172. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5173. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5174. struct snd_ctl_elem_value *ucontrol)
  5175. {
  5176. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5177. mutex_lock(&routing_lock);
  5178. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5179. mutex_unlock(&routing_lock);
  5180. return 0;
  5181. }
  5182. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5183. struct snd_ctl_elem_value *ucontrol)
  5184. {
  5185. struct snd_soc_dapm_widget *widget =
  5186. snd_soc_dapm_kcontrol_widget(kcontrol);
  5187. int mux = ucontrol->value.enumerated.item[0];
  5188. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5189. int ret = 1;
  5190. bool state = true;
  5191. uint16_t ext_ec_ref_port_id;
  5192. struct snd_soc_dapm_update *update = NULL;
  5193. if (mux >= e->items) {
  5194. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5195. return -EINVAL;
  5196. }
  5197. mutex_lock(&routing_lock);
  5198. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5199. switch (msm_route_ext_ec_ref) {
  5200. case EXT_EC_REF_PRI_MI2S_TX:
  5201. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5202. break;
  5203. case EXT_EC_REF_SEC_MI2S_TX:
  5204. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5205. break;
  5206. case EXT_EC_REF_TERT_MI2S_TX:
  5207. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5208. break;
  5209. case EXT_EC_REF_QUAT_MI2S_TX:
  5210. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5211. break;
  5212. case EXT_EC_REF_QUIN_MI2S_TX:
  5213. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5214. break;
  5215. case EXT_EC_REF_SLIM_1_TX:
  5216. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5217. break;
  5218. case EXT_EC_REF_PRI_TDM_TX:
  5219. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5220. break;
  5221. case EXT_EC_REF_SEC_TDM_TX:
  5222. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5223. break;
  5224. case EXT_EC_REF_NONE:
  5225. default:
  5226. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5227. state = false;
  5228. break;
  5229. }
  5230. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5231. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5232. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5233. mutex_unlock(&routing_lock);
  5234. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5235. update);
  5236. } else {
  5237. ret = -EINVAL;
  5238. mutex_unlock(&routing_lock);
  5239. }
  5240. return ret;
  5241. }
  5242. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5243. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5244. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5245. "SLIM_1_TX", "PRI_TDM_TX",
  5246. "SEC_TDM_TX"};
  5247. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5248. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5249. };
  5250. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5251. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5252. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5253. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5254. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5255. MSM_BACKEND_DAI_PRI_I2S_RX,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5259. MSM_BACKEND_DAI_PRI_I2S_RX,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5263. MSM_BACKEND_DAI_PRI_I2S_RX,
  5264. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5265. msm_routing_put_audio_mixer),
  5266. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_PRI_I2S_RX,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5271. MSM_BACKEND_DAI_PRI_I2S_RX,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5275. MSM_BACKEND_DAI_PRI_I2S_RX,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_PRI_I2S_RX,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_PRI_I2S_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_PRI_I2S_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_PRI_I2S_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_PRI_I2S_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_PRI_I2S_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_PRI_I2S_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_PRI_I2S_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_PRI_I2S_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_PRI_I2S_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_PRI_I2S_RX,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5323. MSM_BACKEND_DAI_PRI_I2S_RX,
  5324. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5325. msm_routing_put_audio_mixer),
  5326. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5327. MSM_BACKEND_DAI_PRI_I2S_RX,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5331. MSM_BACKEND_DAI_PRI_I2S_RX,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5335. MSM_BACKEND_DAI_PRI_I2S_RX,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_PRI_I2S_RX,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_PRI_I2S_RX,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. };
  5347. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5348. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5349. MSM_BACKEND_DAI_SEC_I2S_RX,
  5350. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5351. msm_routing_put_audio_mixer),
  5352. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5353. MSM_BACKEND_DAI_SEC_I2S_RX,
  5354. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5355. msm_routing_put_audio_mixer),
  5356. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5357. MSM_BACKEND_DAI_SEC_I2S_RX,
  5358. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5359. msm_routing_put_audio_mixer),
  5360. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_SEC_I2S_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_SEC_I2S_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_SEC_I2S_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_SEC_I2S_RX,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_SEC_I2S_RX,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_SEC_I2S_RX,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_SEC_I2S_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_SEC_I2S_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_SEC_I2S_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_SEC_I2S_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_SEC_I2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_SEC_I2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_SEC_I2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_SEC_I2S_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_SEC_I2S_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_SEC_I2S_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_SEC_I2S_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_SEC_I2S_RX,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_SEC_I2S_RX,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_SEC_I2S_RX,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. };
  5441. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5442. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5443. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5444. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5445. msm_routing_put_audio_mixer),
  5446. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5447. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5448. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5449. msm_routing_put_audio_mixer),
  5450. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5451. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5452. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5453. msm_routing_put_audio_mixer),
  5454. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5459. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. };
  5535. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5536. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5537. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5541. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5545. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. };
  5629. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5630. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5631. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5635. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5636. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5637. msm_routing_put_audio_mixer),
  5638. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. };
  5699. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5700. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5701. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5702. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5703. msm_routing_put_audio_mixer),
  5704. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5705. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5709. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. };
  5793. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5794. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. };
  5887. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5888. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5889. MSM_BACKEND_DAI_MI2S_RX,
  5890. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5891. msm_routing_put_audio_mixer),
  5892. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5893. MSM_BACKEND_DAI_MI2S_RX,
  5894. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5895. msm_routing_put_audio_mixer),
  5896. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_MI2S_RX,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_MI2S_RX,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_MI2S_RX,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_MI2S_RX,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_MI2S_RX,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_MI2S_RX,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_MI2S_RX,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_MI2S_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_MI2S_RX,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_MI2S_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_MI2S_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_MI2S_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_MI2S_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_MI2S_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_MI2S_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_MI2S_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_MI2S_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_MI2S_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_MI2S_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_MI2S_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_MI2S_RX,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. };
  5981. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  5982. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. };
  6075. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6076. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6077. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6081. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. };
  6169. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6170. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. };
  6259. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6260. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6261. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6265. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6266. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6267. msm_routing_put_audio_mixer),
  6268. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6269. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6270. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6271. msm_routing_put_audio_mixer),
  6272. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. };
  6345. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6346. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6347. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6348. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6349. msm_routing_put_audio_mixer),
  6350. };
  6351. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6352. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6401. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6405. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6417. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6421. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6425. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6426. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6427. msm_routing_put_audio_mixer),
  6428. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6429. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6433. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6437. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. };
  6445. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6446. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6447. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6448. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6449. msm_routing_put_audio_mixer),
  6450. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6451. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6452. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6453. msm_routing_put_audio_mixer),
  6454. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6455. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6456. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6457. msm_routing_put_audio_mixer),
  6458. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6467. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6471. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6475. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6479. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6483. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6491. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6495. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6499. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6500. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6501. msm_routing_put_audio_mixer),
  6502. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6511. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6512. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6513. msm_routing_put_audio_mixer),
  6514. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6515. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6516. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6517. msm_routing_put_audio_mixer),
  6518. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6519. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6523. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6524. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6525. msm_routing_put_audio_mixer),
  6526. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. };
  6539. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6540. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6541. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6542. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6543. msm_routing_put_audio_mixer),
  6544. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6545. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6546. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6547. msm_routing_put_audio_mixer),
  6548. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6549. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6550. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6551. msm_routing_put_audio_mixer),
  6552. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6561. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6565. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6566. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6567. msm_routing_put_audio_mixer),
  6568. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6569. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6573. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6577. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6578. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6579. msm_routing_put_audio_mixer),
  6580. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6581. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6582. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6583. msm_routing_put_audio_mixer),
  6584. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6585. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6586. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6589. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6590. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6591. msm_routing_put_audio_mixer),
  6592. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6593. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6597. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6601. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. };
  6605. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6606. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6615. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6616. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6617. msm_routing_put_audio_mixer),
  6618. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6619. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6631. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6635. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6639. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6643. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6647. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6651. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6655. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6659. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. };
  6671. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6672. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6673. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6674. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6675. msm_routing_put_audio_mixer),
  6676. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6677. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6678. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6679. msm_routing_put_audio_mixer),
  6680. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6681. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6682. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6683. msm_routing_put_audio_mixer),
  6684. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6709. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6713. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6714. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6715. msm_routing_put_audio_mixer),
  6716. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. };
  6761. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6762. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6763. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6764. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6765. msm_routing_put_audio_mixer),
  6766. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6767. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6768. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6769. msm_routing_put_audio_mixer),
  6770. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6771. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6772. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6773. msm_routing_put_audio_mixer),
  6774. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6807. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6811. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. };
  6851. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6852. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6853. MSM_BACKEND_DAI_HDMI_RX,
  6854. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6855. msm_routing_put_audio_mixer),
  6856. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6857. MSM_BACKEND_DAI_HDMI_RX,
  6858. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6859. msm_routing_put_audio_mixer),
  6860. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6861. MSM_BACKEND_DAI_HDMI_RX,
  6862. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6863. msm_routing_put_audio_mixer),
  6864. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_HDMI_RX,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_HDMI_RX,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_HDMI_RX,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6877. MSM_BACKEND_DAI_HDMI_RX,
  6878. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6879. msm_routing_put_audio_mixer),
  6880. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_HDMI_RX,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_HDMI_RX,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_HDMI_RX,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_HDMI_RX,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_HDMI_RX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_HDMI_RX,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_HDMI_RX,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_HDMI_RX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_HDMI_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_HDMI_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_HDMI_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_HDMI_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_HDMI_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_HDMI_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_HDMI_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_HDMI_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. };
  6945. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  6946. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6947. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6951. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6952. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6953. msm_routing_put_audio_mixer),
  6954. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6955. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. };
  7015. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7016. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7017. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7018. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7019. msm_routing_put_audio_mixer),
  7020. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7021. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7022. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7023. msm_routing_put_audio_mixer),
  7024. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7025. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7026. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7027. msm_routing_put_audio_mixer),
  7028. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7057. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7073. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7074. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7075. msm_routing_put_audio_mixer),
  7076. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. };
  7085. /* incall music delivery mixer */
  7086. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7087. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. };
  7104. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7105. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7106. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7110. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7114. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. };
  7122. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7123. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7124. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7125. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7126. msm_routing_put_audio_mixer),
  7127. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7128. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. };
  7140. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7141. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7142. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7146. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. };
  7210. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7211. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7212. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7216. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7217. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7218. msm_routing_put_audio_mixer),
  7219. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7220. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. };
  7280. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7281. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7282. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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_WSA_CDC_DMA_RX_1,
  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 rx_cdc_dma_rx_0_mixer_controls[] = {
  7351. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7352. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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_RX_CDC_DMA_RX_0,
  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 rx_cdc_dma_rx_1_mixer_controls[] = {
  7421. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7422. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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_RX_CDC_DMA_RX_1,
  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 rx_cdc_dma_rx_2_mixer_controls[] = {
  7491. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7492. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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_RX_CDC_DMA_RX_2,
  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 rx_cdc_dma_rx_3_mixer_controls[] = {
  7561. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  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_RX_CDC_DMA_RX_3,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. };
  7630. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7631. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7632. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  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_RX_CDC_DMA_RX_4,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. };
  7700. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7701. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  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_RX_CDC_DMA_RX_5,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. };
  7770. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7771. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  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_RX_CDC_DMA_RX_6,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. };
  7840. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7841. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7842. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  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_RX_CDC_DMA_RX_7,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. };
  7910. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7911. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. };
  7980. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  7981. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8006. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8007. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8008. msm_routing_put_audio_mixer),
  8009. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. };
  8050. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8051. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_USB_RX,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_USB_RX,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_USB_RX,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_USB_RX,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_USB_RX,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_USB_RX,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_USB_RX,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_USB_RX,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_USB_RX,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_USB_RX,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_USB_RX,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_USB_RX,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_USB_RX,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_USB_RX,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_USB_RX,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_USB_RX,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_USB_RX,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. };
  8120. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8121. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. };
  8214. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8215. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. };
  8284. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8285. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_INT_FM_RX,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8290. MSM_BACKEND_DAI_INT_FM_RX,
  8291. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8292. msm_routing_put_audio_mixer),
  8293. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_INT_FM_RX,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_INT_FM_RX,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_INT_FM_RX,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_INT_FM_RX,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_INT_FM_RX,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_INT_FM_RX,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_INT_FM_RX,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_INT_FM_RX,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_INT_FM_RX,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_INT_FM_RX,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_INT_FM_RX,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_INT_FM_RX,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_INT_FM_RX,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_INT_FM_RX,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_INT_FM_RX,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_INT_FM_RX,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_INT_FM_RX,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_INT_FM_RX,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_INT_FM_RX,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_INT_FM_RX,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_INT_FM_RX,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. };
  8378. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8379. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_AFE_PCM_RX,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_AFE_PCM_RX,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_AFE_PCM_RX,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_AFE_PCM_RX,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_AFE_PCM_RX,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_AFE_PCM_RX,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_AFE_PCM_RX,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_AFE_PCM_RX,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_AFE_PCM_RX,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_AFE_PCM_RX,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_AFE_PCM_RX,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_AFE_PCM_RX,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_AFE_PCM_RX,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_AFE_PCM_RX,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_AFE_PCM_RX,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_AFE_PCM_RX,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_AFE_PCM_RX,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_AFE_PCM_RX,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_AFE_PCM_RX,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_AFE_PCM_RX,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_AFE_PCM_RX,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_AFE_PCM_RX,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_AFE_PCM_RX,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. };
  8472. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8473. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_AUXPCM_RX,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_AUXPCM_RX,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_AUXPCM_RX,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_AUXPCM_RX,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_AUXPCM_RX,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_AUXPCM_RX,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_AUXPCM_RX,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_AUXPCM_RX,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_AUXPCM_RX,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_AUXPCM_RX,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_AUXPCM_RX,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_AUXPCM_RX,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_AUXPCM_RX,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_AUXPCM_RX,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_AUXPCM_RX,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_AUXPCM_RX,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_AUXPCM_RX,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_AUXPCM_RX,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_AUXPCM_RX,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_AUXPCM_RX,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_AUXPCM_RX,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_AUXPCM_RX,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_AUXPCM_RX,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_AUXPCM_RX,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. };
  8570. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8571. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. };
  8668. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8669. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8670. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  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_TERT_AUXPCM_RX,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. };
  8738. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8739. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8740. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8741. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8742. msm_routing_put_audio_mixer),
  8743. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8744. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8745. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8746. msm_routing_put_audio_mixer),
  8747. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8748. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8749. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8750. msm_routing_put_audio_mixer),
  8751. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8752. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8753. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8754. msm_routing_put_audio_mixer),
  8755. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8764. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8765. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8766. msm_routing_put_audio_mixer),
  8767. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8768. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8769. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8770. msm_routing_put_audio_mixer),
  8771. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8772. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8773. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8774. msm_routing_put_audio_mixer),
  8775. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. };
  8808. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8809. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  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_QUIN_AUXPCM_RX,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. };
  8878. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8879. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. };
  8948. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  8949. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8954. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8955. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8956. msm_routing_put_audio_mixer),
  8957. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8958. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8959. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8960. msm_routing_put_audio_mixer),
  8961. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. };
  9022. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9023. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. };
  9096. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9097. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9098. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9099. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9100. msm_routing_put_audio_mixer),
  9101. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9102. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9103. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9104. msm_routing_put_audio_mixer),
  9105. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9106. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9107. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9108. msm_routing_put_audio_mixer),
  9109. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. };
  9170. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9171. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  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_PRI_TDM_RX_3,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. };
  9244. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9245. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  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_PRI_TDM_TX_0,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. };
  9310. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9311. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9312. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9313. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9314. msm_routing_put_audio_mixer),
  9315. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9316. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9317. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9318. msm_routing_put_audio_mixer),
  9319. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9320. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9321. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9322. msm_routing_put_audio_mixer),
  9323. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. };
  9384. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9385. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9386. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9387. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9388. msm_routing_put_audio_mixer),
  9389. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9390. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9391. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9392. msm_routing_put_audio_mixer),
  9393. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9394. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9395. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9396. msm_routing_put_audio_mixer),
  9397. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. };
  9458. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9459. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9460. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9461. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9462. msm_routing_put_audio_mixer),
  9463. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9464. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9465. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9466. msm_routing_put_audio_mixer),
  9467. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9468. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9469. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9470. msm_routing_put_audio_mixer),
  9471. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. };
  9532. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9533. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9534. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  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_SEC_TDM_RX_3,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. };
  9606. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9607. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9608. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. };
  9672. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9673. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9674. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9675. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9676. msm_routing_put_audio_mixer),
  9677. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9678. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9679. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9680. msm_routing_put_audio_mixer),
  9681. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9682. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9683. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9684. msm_routing_put_audio_mixer),
  9685. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. };
  9746. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9747. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9748. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9749. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9750. msm_routing_put_audio_mixer),
  9751. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9752. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9753. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9754. msm_routing_put_audio_mixer),
  9755. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9756. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9757. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9758. msm_routing_put_audio_mixer),
  9759. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9760. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9761. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9762. msm_routing_put_audio_mixer),
  9763. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9764. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9765. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9766. msm_routing_put_audio_mixer),
  9767. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9769. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9770. msm_routing_put_audio_mixer),
  9771. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9773. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9774. msm_routing_put_audio_mixer),
  9775. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9777. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9778. msm_routing_put_audio_mixer),
  9779. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. };
  9812. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  9813. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9814. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9815. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9816. msm_routing_put_audio_mixer),
  9817. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9819. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9820. msm_routing_put_audio_mixer),
  9821. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9822. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9823. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9824. msm_routing_put_audio_mixer),
  9825. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9827. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9828. msm_routing_put_audio_mixer),
  9829. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9832. msm_routing_put_audio_mixer),
  9833. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9835. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9836. msm_routing_put_audio_mixer),
  9837. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9838. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9839. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9840. msm_routing_put_audio_mixer),
  9841. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9842. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9843. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9844. msm_routing_put_audio_mixer),
  9845. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9846. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9848. msm_routing_put_audio_mixer),
  9849. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9850. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9851. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9852. msm_routing_put_audio_mixer),
  9853. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9855. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9856. msm_routing_put_audio_mixer),
  9857. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. };
  9886. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  9887. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9889. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9890. msm_routing_put_audio_mixer),
  9891. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9909. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9910. msm_routing_put_audio_mixer),
  9911. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9912. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9913. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9914. msm_routing_put_audio_mixer),
  9915. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9916. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9917. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9918. msm_routing_put_audio_mixer),
  9919. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9921. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9922. msm_routing_put_audio_mixer),
  9923. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9925. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9926. msm_routing_put_audio_mixer),
  9927. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9929. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9930. msm_routing_put_audio_mixer),
  9931. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. };
  9960. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  9961. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9963. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9964. msm_routing_put_audio_mixer),
  9965. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9967. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9968. msm_routing_put_audio_mixer),
  9969. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9971. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9972. msm_routing_put_audio_mixer),
  9973. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. };
  10034. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10035. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10036. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10038. msm_routing_put_audio_mixer),
  10039. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10040. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10041. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10042. msm_routing_put_audio_mixer),
  10043. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10044. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10045. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10046. msm_routing_put_audio_mixer),
  10047. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10061. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10062. msm_routing_put_audio_mixer),
  10063. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10081. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10082. msm_routing_put_audio_mixer),
  10083. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10085. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10086. msm_routing_put_audio_mixer),
  10087. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10088. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10089. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10090. msm_routing_put_audio_mixer),
  10091. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10092. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10093. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10094. msm_routing_put_audio_mixer),
  10095. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10096. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10097. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10098. msm_routing_put_audio_mixer),
  10099. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10100. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10101. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10102. msm_routing_put_audio_mixer),
  10103. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10104. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10105. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10106. msm_routing_put_audio_mixer),
  10107. };
  10108. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10109. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10167. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10168. msm_routing_put_audio_mixer),
  10169. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10172. msm_routing_put_audio_mixer),
  10173. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10175. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10176. msm_routing_put_audio_mixer),
  10177. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10179. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10180. msm_routing_put_audio_mixer),
  10181. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. };
  10186. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10187. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10194. msm_routing_put_audio_mixer),
  10195. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10198. msm_routing_put_audio_mixer),
  10199. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10245. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10246. msm_routing_put_audio_mixer),
  10247. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10249. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10250. msm_routing_put_audio_mixer),
  10251. };
  10252. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10253. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10323. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10324. msm_routing_put_audio_mixer),
  10325. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10327. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10328. msm_routing_put_audio_mixer),
  10329. };
  10330. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10331. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. };
  10408. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10409. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10456. msm_routing_put_audio_mixer),
  10457. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10459. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10460. msm_routing_put_audio_mixer),
  10461. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10463. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. };
  10486. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10487. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10489. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10490. msm_routing_put_audio_mixer),
  10491. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10494. msm_routing_put_audio_mixer),
  10495. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10542. msm_routing_put_audio_mixer),
  10543. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10544. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10545. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10546. msm_routing_put_audio_mixer),
  10547. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10548. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10549. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10550. msm_routing_put_audio_mixer),
  10551. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10552. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10553. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. };
  10564. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10565. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10567. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10623. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10624. msm_routing_put_audio_mixer),
  10625. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10627. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10628. msm_routing_put_audio_mixer),
  10629. };
  10630. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10631. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. };
  10708. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10709. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10710. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10711. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10712. msm_routing_put_audio_mixer),
  10713. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10715. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10716. msm_routing_put_audio_mixer),
  10717. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. };
  10786. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  10787. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. };
  10864. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  10865. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10867. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10868. msm_routing_put_audio_mixer),
  10869. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10870. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10871. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10872. msm_routing_put_audio_mixer),
  10873. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10874. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10875. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10876. msm_routing_put_audio_mixer),
  10877. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10879. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. };
  10938. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  10939. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10940. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10941. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10942. msm_routing_put_audio_mixer),
  10943. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10945. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10946. msm_routing_put_audio_mixer),
  10947. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10948. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10949. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10950. msm_routing_put_audio_mixer),
  10951. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10953. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10954. msm_routing_put_audio_mixer),
  10955. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10957. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10958. msm_routing_put_audio_mixer),
  10959. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10960. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10961. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10962. msm_routing_put_audio_mixer),
  10963. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10965. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10966. msm_routing_put_audio_mixer),
  10967. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10969. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10970. msm_routing_put_audio_mixer),
  10971. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10973. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10974. msm_routing_put_audio_mixer),
  10975. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10985. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10986. msm_routing_put_audio_mixer),
  10987. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10989. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10990. msm_routing_put_audio_mixer),
  10991. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10993. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10994. msm_routing_put_audio_mixer),
  10995. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10997. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. };
  11004. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11005. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11010. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11011. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11012. msm_routing_put_audio_mixer),
  11013. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11015. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11016. msm_routing_put_audio_mixer),
  11017. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11019. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11020. msm_routing_put_audio_mixer),
  11021. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11023. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11024. msm_routing_put_audio_mixer),
  11025. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11027. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11028. msm_routing_put_audio_mixer),
  11029. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11030. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11031. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11067. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11068. msm_routing_put_audio_mixer),
  11069. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11071. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11072. msm_routing_put_audio_mixer),
  11073. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11075. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11076. msm_routing_put_audio_mixer),
  11077. };
  11078. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11079. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11132. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11133. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11134. msm_routing_put_audio_mixer),
  11135. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11137. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11138. msm_routing_put_audio_mixer),
  11139. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11149. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11150. msm_routing_put_audio_mixer),
  11151. };
  11152. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11153. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11156. msm_routing_put_audio_mixer),
  11157. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11163. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11191. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11192. msm_routing_put_audio_mixer),
  11193. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11196. msm_routing_put_audio_mixer),
  11197. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11199. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11200. msm_routing_put_audio_mixer),
  11201. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11203. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11204. msm_routing_put_audio_mixer),
  11205. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11207. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11208. msm_routing_put_audio_mixer),
  11209. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11216. msm_routing_put_audio_mixer),
  11217. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11219. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11220. msm_routing_put_audio_mixer),
  11221. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11223. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11224. msm_routing_put_audio_mixer),
  11225. };
  11226. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11227. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_PRI_I2S_TX,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_MI2S_TX,
  11233. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11234. msm_routing_put_audio_mixer),
  11235. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11237. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11238. msm_routing_put_audio_mixer),
  11239. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11265. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11266. msm_routing_put_audio_mixer),
  11267. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_AUXPCM_TX,
  11269. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11270. msm_routing_put_audio_mixer),
  11271. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11273. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11278. msm_routing_put_audio_mixer),
  11279. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11281. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11282. msm_routing_put_audio_mixer),
  11283. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11289. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11290. msm_routing_put_audio_mixer),
  11291. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11293. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11294. msm_routing_put_audio_mixer),
  11295. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_INT_FM_TX,
  11297. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11298. msm_routing_put_audio_mixer),
  11299. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_AFE_PCM_TX,
  11301. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11302. msm_routing_put_audio_mixer),
  11303. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11306. msm_routing_put_audio_mixer),
  11307. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11309. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11310. msm_routing_put_audio_mixer),
  11311. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11313. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11314. msm_routing_put_audio_mixer),
  11315. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11317. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11318. msm_routing_put_audio_mixer),
  11319. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11321. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11322. msm_routing_put_audio_mixer),
  11323. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11325. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11326. msm_routing_put_audio_mixer),
  11327. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11329. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11330. msm_routing_put_audio_mixer),
  11331. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11333. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11334. msm_routing_put_audio_mixer),
  11335. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11337. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11338. msm_routing_put_audio_mixer),
  11339. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11341. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11342. msm_routing_put_audio_mixer),
  11343. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11345. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11346. msm_routing_put_audio_mixer),
  11347. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11349. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11350. msm_routing_put_audio_mixer),
  11351. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11353. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11354. msm_routing_put_audio_mixer),
  11355. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11357. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11358. msm_routing_put_audio_mixer),
  11359. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11361. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11362. msm_routing_put_audio_mixer),
  11363. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11381. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11382. msm_routing_put_audio_mixer),
  11383. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11385. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11386. msm_routing_put_audio_mixer),
  11387. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11401. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11402. msm_routing_put_audio_mixer),
  11403. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11409. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11410. msm_routing_put_audio_mixer),
  11411. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11413. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11417. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11418. msm_routing_put_audio_mixer),
  11419. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11420. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11421. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11422. msm_routing_put_audio_mixer),
  11423. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11424. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11425. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11426. msm_routing_put_audio_mixer),
  11427. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11428. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11429. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11430. msm_routing_put_audio_mixer),
  11431. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11432. MSM_BACKEND_DAI_USB_TX,
  11433. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11434. msm_routing_put_audio_mixer),
  11435. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11437. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11438. msm_routing_put_audio_mixer),
  11439. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11441. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11442. msm_routing_put_audio_mixer),
  11443. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11445. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11446. msm_routing_put_audio_mixer),
  11447. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11448. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11449. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11450. msm_routing_put_audio_mixer),
  11451. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11452. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11453. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11454. msm_routing_put_audio_mixer),
  11455. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11458. msm_routing_put_audio_mixer),
  11459. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11461. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11462. msm_routing_put_audio_mixer),
  11463. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11465. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11466. msm_routing_put_audio_mixer),
  11467. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11470. msm_routing_put_audio_mixer),
  11471. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11474. msm_routing_put_audio_mixer),
  11475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. };
  11500. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  11501. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11502. MSM_BACKEND_DAI_INT_FM_TX,
  11503. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11504. msm_routing_put_audio_mixer),
  11505. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11506. MSM_BACKEND_DAI_MI2S_TX,
  11507. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11508. msm_routing_put_audio_mixer),
  11509. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11510. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11511. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11512. msm_routing_put_audio_mixer),
  11513. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11515. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11516. msm_routing_put_audio_mixer),
  11517. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11520. msm_routing_put_audio_mixer),
  11521. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11523. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11524. msm_routing_put_audio_mixer),
  11525. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11528. msm_routing_put_audio_mixer),
  11529. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11531. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11532. msm_routing_put_audio_mixer),
  11533. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11535. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11536. msm_routing_put_audio_mixer),
  11537. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11539. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11544. msm_routing_put_audio_mixer),
  11545. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11547. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11548. msm_routing_put_audio_mixer),
  11549. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11551. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11552. msm_routing_put_audio_mixer),
  11553. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11554. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11555. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11556. msm_routing_put_audio_mixer),
  11557. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11558. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11559. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11560. msm_routing_put_audio_mixer),
  11561. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11563. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11564. msm_routing_put_audio_mixer),
  11565. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11576. msm_routing_put_audio_mixer),
  11577. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11580. msm_routing_put_audio_mixer),
  11581. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11583. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11584. msm_routing_put_audio_mixer),
  11585. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11587. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11588. msm_routing_put_audio_mixer),
  11589. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11591. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11596. msm_routing_put_audio_mixer),
  11597. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11600. msm_routing_put_audio_mixer),
  11601. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11610. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11611. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11612. msm_routing_put_audio_mixer),
  11613. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11614. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11615. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11616. msm_routing_put_audio_mixer),
  11617. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11619. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11620. msm_routing_put_audio_mixer),
  11621. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11623. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11624. msm_routing_put_audio_mixer),
  11625. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11627. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11628. msm_routing_put_audio_mixer),
  11629. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11631. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11632. msm_routing_put_audio_mixer),
  11633. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11635. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11636. msm_routing_put_audio_mixer),
  11637. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11639. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11640. msm_routing_put_audio_mixer),
  11641. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11643. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11652. msm_routing_put_audio_mixer),
  11653. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_USB_TX,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11712. msm_routing_put_audio_mixer),
  11713. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11715. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11716. msm_routing_put_audio_mixer),
  11717. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11719. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11720. msm_routing_put_audio_mixer),
  11721. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11723. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11724. msm_routing_put_audio_mixer),
  11725. };
  11726. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  11727. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11729. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11730. msm_routing_put_audio_mixer),
  11731. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11734. msm_routing_put_audio_mixer),
  11735. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_INT_FM_TX,
  11737. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11738. msm_routing_put_audio_mixer),
  11739. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_MI2S_TX,
  11741. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11742. msm_routing_put_audio_mixer),
  11743. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_AFE_PCM_TX,
  11745. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11746. msm_routing_put_audio_mixer),
  11747. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11749. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11750. msm_routing_put_audio_mixer),
  11751. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11752. MSM_BACKEND_DAI_AUXPCM_TX,
  11753. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11754. msm_routing_put_audio_mixer),
  11755. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11757. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11758. msm_routing_put_audio_mixer),
  11759. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11761. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11762. msm_routing_put_audio_mixer),
  11763. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11765. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11766. msm_routing_put_audio_mixer),
  11767. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11768. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11769. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11770. msm_routing_put_audio_mixer),
  11771. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11773. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11774. msm_routing_put_audio_mixer),
  11775. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11777. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11778. msm_routing_put_audio_mixer),
  11779. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11781. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11782. msm_routing_put_audio_mixer),
  11783. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11784. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11785. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11786. msm_routing_put_audio_mixer),
  11787. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11788. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11789. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11790. msm_routing_put_audio_mixer),
  11791. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11793. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11794. msm_routing_put_audio_mixer),
  11795. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11797. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11798. msm_routing_put_audio_mixer),
  11799. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11801. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11802. msm_routing_put_audio_mixer),
  11803. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11805. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11806. msm_routing_put_audio_mixer),
  11807. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11809. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11810. msm_routing_put_audio_mixer),
  11811. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11813. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11814. msm_routing_put_audio_mixer),
  11815. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11817. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11818. msm_routing_put_audio_mixer),
  11819. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11821. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11822. msm_routing_put_audio_mixer),
  11823. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11825. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11826. msm_routing_put_audio_mixer),
  11827. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11844. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11845. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11846. msm_routing_put_audio_mixer),
  11847. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11901. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11902. msm_routing_put_audio_mixer),
  11903. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11905. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11906. msm_routing_put_audio_mixer),
  11907. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11909. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11910. msm_routing_put_audio_mixer),
  11911. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11913. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11914. msm_routing_put_audio_mixer),
  11915. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11916. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11917. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11918. msm_routing_put_audio_mixer),
  11919. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11920. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11921. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11922. msm_routing_put_audio_mixer),
  11923. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11924. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11925. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11926. msm_routing_put_audio_mixer),
  11927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11929. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11930. msm_routing_put_audio_mixer),
  11931. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11934. msm_routing_put_audio_mixer),
  11935. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11936. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11937. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11938. msm_routing_put_audio_mixer),
  11939. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11941. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11942. msm_routing_put_audio_mixer),
  11943. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11945. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11946. msm_routing_put_audio_mixer),
  11947. };
  11948. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  11949. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11951. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11952. msm_routing_put_audio_mixer),
  11953. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11954. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11955. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11956. msm_routing_put_audio_mixer),
  11957. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11959. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11960. msm_routing_put_audio_mixer),
  11961. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_INT_FM_TX,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11964. msm_routing_put_audio_mixer),
  11965. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11967. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11968. msm_routing_put_audio_mixer),
  11969. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_AFE_PCM_TX,
  11971. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11972. msm_routing_put_audio_mixer),
  11973. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11975. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11976. msm_routing_put_audio_mixer),
  11977. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11979. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11980. msm_routing_put_audio_mixer),
  11981. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11982. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11983. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11984. msm_routing_put_audio_mixer),
  11985. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11987. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11988. msm_routing_put_audio_mixer),
  11989. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11991. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11992. msm_routing_put_audio_mixer),
  11993. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11995. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11996. msm_routing_put_audio_mixer),
  11997. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11999. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12000. msm_routing_put_audio_mixer),
  12001. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12003. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12004. msm_routing_put_audio_mixer),
  12005. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12008. msm_routing_put_audio_mixer),
  12009. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12011. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12012. msm_routing_put_audio_mixer),
  12013. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12015. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12016. msm_routing_put_audio_mixer),
  12017. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12020. msm_routing_put_audio_mixer),
  12021. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12023. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12024. msm_routing_put_audio_mixer),
  12025. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12027. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12028. msm_routing_put_audio_mixer),
  12029. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12031. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12032. msm_routing_put_audio_mixer),
  12033. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12035. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12036. msm_routing_put_audio_mixer),
  12037. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12038. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12039. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12040. msm_routing_put_audio_mixer),
  12041. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12047. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12048. msm_routing_put_audio_mixer),
  12049. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12051. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12056. msm_routing_put_audio_mixer),
  12057. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12059. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12064. msm_routing_put_audio_mixer),
  12065. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12067. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12068. msm_routing_put_audio_mixer),
  12069. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12071. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12072. msm_routing_put_audio_mixer),
  12073. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12074. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12075. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12076. msm_routing_put_audio_mixer),
  12077. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12079. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12080. msm_routing_put_audio_mixer),
  12081. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12083. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12084. msm_routing_put_audio_mixer),
  12085. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12087. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12088. msm_routing_put_audio_mixer),
  12089. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12091. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12092. msm_routing_put_audio_mixer),
  12093. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12095. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12096. msm_routing_put_audio_mixer),
  12097. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_USB_TX,
  12099. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12100. msm_routing_put_audio_mixer),
  12101. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12103. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12104. msm_routing_put_audio_mixer),
  12105. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12107. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12108. msm_routing_put_audio_mixer),
  12109. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12111. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12112. msm_routing_put_audio_mixer),
  12113. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12116. msm_routing_put_audio_mixer),
  12117. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12119. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12120. msm_routing_put_audio_mixer),
  12121. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12123. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12124. msm_routing_put_audio_mixer),
  12125. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12127. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12128. msm_routing_put_audio_mixer),
  12129. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12131. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, 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_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12136. msm_routing_put_audio_mixer),
  12137. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12139. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12140. msm_routing_put_audio_mixer),
  12141. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12143. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12144. msm_routing_put_audio_mixer),
  12145. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12147. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12148. msm_routing_put_audio_mixer),
  12149. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12151. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12159. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12160. msm_routing_put_audio_mixer),
  12161. };
  12162. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12163. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12165. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12166. msm_routing_put_audio_mixer),
  12167. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12169. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12170. msm_routing_put_audio_mixer),
  12171. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12172. MSM_BACKEND_DAI_INT_FM_TX,
  12173. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12174. msm_routing_put_audio_mixer),
  12175. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12176. MSM_BACKEND_DAI_MI2S_TX,
  12177. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12178. msm_routing_put_audio_mixer),
  12179. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_AFE_PCM_TX,
  12181. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12182. msm_routing_put_audio_mixer),
  12183. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12185. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12186. msm_routing_put_audio_mixer),
  12187. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_AUXPCM_TX,
  12189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12190. msm_routing_put_audio_mixer),
  12191. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12193. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12194. msm_routing_put_audio_mixer),
  12195. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12197. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12198. msm_routing_put_audio_mixer),
  12199. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12201. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12202. msm_routing_put_audio_mixer),
  12203. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12205. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12206. msm_routing_put_audio_mixer),
  12207. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12209. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12210. msm_routing_put_audio_mixer),
  12211. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12212. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12213. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12214. msm_routing_put_audio_mixer),
  12215. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12217. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12218. msm_routing_put_audio_mixer),
  12219. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12221. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12222. msm_routing_put_audio_mixer),
  12223. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12225. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12226. msm_routing_put_audio_mixer),
  12227. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12229. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12230. msm_routing_put_audio_mixer),
  12231. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12233. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12234. msm_routing_put_audio_mixer),
  12235. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12237. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12238. msm_routing_put_audio_mixer),
  12239. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12241. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12242. msm_routing_put_audio_mixer),
  12243. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12245. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12246. msm_routing_put_audio_mixer),
  12247. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12249. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12250. msm_routing_put_audio_mixer),
  12251. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12252. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12253. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12254. msm_routing_put_audio_mixer),
  12255. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12256. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12257. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12258. msm_routing_put_audio_mixer),
  12259. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12261. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12262. msm_routing_put_audio_mixer),
  12263. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12265. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12266. msm_routing_put_audio_mixer),
  12267. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12268. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12269. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12270. msm_routing_put_audio_mixer),
  12271. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12272. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12273. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12274. msm_routing_put_audio_mixer),
  12275. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12277. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12278. msm_routing_put_audio_mixer),
  12279. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12281. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12282. msm_routing_put_audio_mixer),
  12283. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12285. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12286. msm_routing_put_audio_mixer),
  12287. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12288. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12289. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12290. msm_routing_put_audio_mixer),
  12291. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12293. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12294. msm_routing_put_audio_mixer),
  12295. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12298. msm_routing_put_audio_mixer),
  12299. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12301. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12302. msm_routing_put_audio_mixer),
  12303. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12304. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12305. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12306. msm_routing_put_audio_mixer),
  12307. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12308. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12309. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12310. msm_routing_put_audio_mixer),
  12311. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12313. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12314. msm_routing_put_audio_mixer),
  12315. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12317. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12318. msm_routing_put_audio_mixer),
  12319. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12321. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12322. msm_routing_put_audio_mixer),
  12323. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12324. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12325. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12326. msm_routing_put_audio_mixer),
  12327. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12328. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12329. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12330. msm_routing_put_audio_mixer),
  12331. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12333. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12334. msm_routing_put_audio_mixer),
  12335. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12337. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12338. msm_routing_put_audio_mixer),
  12339. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_USB_TX,
  12341. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12342. msm_routing_put_audio_mixer),
  12343. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12344. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12345. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12346. msm_routing_put_audio_mixer),
  12347. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12349. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12350. msm_routing_put_audio_mixer),
  12351. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12353. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12354. msm_routing_put_audio_mixer),
  12355. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12357. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12358. msm_routing_put_audio_mixer),
  12359. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12361. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12362. msm_routing_put_audio_mixer),
  12363. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12365. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12366. msm_routing_put_audio_mixer),
  12367. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12369. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12370. msm_routing_put_audio_mixer),
  12371. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12373. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12374. msm_routing_put_audio_mixer),
  12375. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12377. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12378. msm_routing_put_audio_mixer),
  12379. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12382. msm_routing_put_audio_mixer),
  12383. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12385. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12386. msm_routing_put_audio_mixer),
  12387. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12389. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12390. msm_routing_put_audio_mixer),
  12391. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12393. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12394. msm_routing_put_audio_mixer),
  12395. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12397. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12398. msm_routing_put_audio_mixer),
  12399. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12401. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12402. msm_routing_put_audio_mixer),
  12403. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12405. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12406. msm_routing_put_audio_mixer),
  12407. };
  12408. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12409. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_INT_FM_TX,
  12411. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12412. msm_routing_put_audio_mixer),
  12413. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12415. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12416. msm_routing_put_audio_mixer),
  12417. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12419. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12420. msm_routing_put_audio_mixer),
  12421. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12423. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12424. msm_routing_put_audio_mixer),
  12425. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12427. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12428. msm_routing_put_audio_mixer),
  12429. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12431. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12432. msm_routing_put_audio_mixer),
  12433. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12435. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12436. msm_routing_put_audio_mixer),
  12437. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12439. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12440. msm_routing_put_audio_mixer),
  12441. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12443. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12444. msm_routing_put_audio_mixer),
  12445. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12447. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12448. msm_routing_put_audio_mixer),
  12449. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12451. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12452. msm_routing_put_audio_mixer),
  12453. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_AUXPCM_TX,
  12455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12456. msm_routing_put_audio_mixer),
  12457. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12459. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12460. msm_routing_put_audio_mixer),
  12461. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12463. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12464. msm_routing_put_audio_mixer),
  12465. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12467. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12468. msm_routing_put_audio_mixer),
  12469. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12471. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12472. msm_routing_put_audio_mixer),
  12473. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12475. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12476. msm_routing_put_audio_mixer),
  12477. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12479. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12480. msm_routing_put_audio_mixer),
  12481. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12483. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12484. msm_routing_put_audio_mixer),
  12485. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12487. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12488. msm_routing_put_audio_mixer),
  12489. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12491. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12492. msm_routing_put_audio_mixer),
  12493. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12495. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12496. msm_routing_put_audio_mixer),
  12497. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12499. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12500. msm_routing_put_audio_mixer),
  12501. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12503. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12504. msm_routing_put_audio_mixer),
  12505. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12507. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12508. msm_routing_put_audio_mixer),
  12509. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12511. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12512. msm_routing_put_audio_mixer),
  12513. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12515. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12516. msm_routing_put_audio_mixer),
  12517. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12519. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12520. msm_routing_put_audio_mixer),
  12521. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12523. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12524. msm_routing_put_audio_mixer),
  12525. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12527. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12528. msm_routing_put_audio_mixer),
  12529. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12531. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12532. msm_routing_put_audio_mixer),
  12533. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12536. msm_routing_put_audio_mixer),
  12537. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12539. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12540. msm_routing_put_audio_mixer),
  12541. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12544. msm_routing_put_audio_mixer),
  12545. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12547. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12548. msm_routing_put_audio_mixer),
  12549. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12551. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12552. msm_routing_put_audio_mixer),
  12553. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12555. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12556. msm_routing_put_audio_mixer),
  12557. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12559. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12560. msm_routing_put_audio_mixer),
  12561. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12563. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12564. msm_routing_put_audio_mixer),
  12565. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_USB_TX,
  12567. MSM_FRONTEND_DAI_MULTIMEDIA6, 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_MULTIMEDIA6, 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_MULTIMEDIA6, 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_MULTIMEDIA6, 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_MULTIMEDIA6, 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_MULTIMEDIA6, 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_MULTIMEDIA6, 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_MULTIMEDIA6, 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_MULTIMEDIA6, 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_MULTIMEDIA6, 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_MULTIMEDIA6, 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_MULTIMEDIA6, 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_MULTIMEDIA6, 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_MULTIMEDIA6, 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_MULTIMEDIA6, 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_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12628. msm_routing_put_audio_mixer),
  12629. };
  12630. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12631. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12633. MSM_FRONTEND_DAI_MULTIMEDIA8, 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_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12638. msm_routing_put_audio_mixer),
  12639. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12641. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12642. msm_routing_put_audio_mixer),
  12643. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12646. msm_routing_put_audio_mixer),
  12647. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA8, 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_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_INT_FM_TX,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_AFE_PCM_TX,
  12673. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12674. msm_routing_put_audio_mixer),
  12675. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12677. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12678. msm_routing_put_audio_mixer),
  12679. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12681. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12682. msm_routing_put_audio_mixer),
  12683. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12685. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12686. msm_routing_put_audio_mixer),
  12687. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12689. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12690. msm_routing_put_audio_mixer),
  12691. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12692. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12693. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12694. msm_routing_put_audio_mixer),
  12695. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12696. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12697. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12698. msm_routing_put_audio_mixer),
  12699. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12701. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12702. msm_routing_put_audio_mixer),
  12703. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12705. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12706. msm_routing_put_audio_mixer),
  12707. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12709. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12710. msm_routing_put_audio_mixer),
  12711. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12713. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12714. msm_routing_put_audio_mixer),
  12715. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12716. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12717. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12718. msm_routing_put_audio_mixer),
  12719. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12721. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12722. msm_routing_put_audio_mixer),
  12723. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12725. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12726. msm_routing_put_audio_mixer),
  12727. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12729. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12730. msm_routing_put_audio_mixer),
  12731. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12733. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12734. msm_routing_put_audio_mixer),
  12735. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12737. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12738. msm_routing_put_audio_mixer),
  12739. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12741. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12742. msm_routing_put_audio_mixer),
  12743. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12745. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12746. msm_routing_put_audio_mixer),
  12747. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12748. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12749. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12750. msm_routing_put_audio_mixer),
  12751. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12752. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12754. msm_routing_put_audio_mixer),
  12755. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12756. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12757. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12758. msm_routing_put_audio_mixer),
  12759. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12761. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12762. msm_routing_put_audio_mixer),
  12763. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12765. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12766. msm_routing_put_audio_mixer),
  12767. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12769. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12770. msm_routing_put_audio_mixer),
  12771. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12773. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12774. msm_routing_put_audio_mixer),
  12775. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12777. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12778. msm_routing_put_audio_mixer),
  12779. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12781. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12782. msm_routing_put_audio_mixer),
  12783. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12784. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12785. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12786. msm_routing_put_audio_mixer),
  12787. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12788. MSM_BACKEND_DAI_USB_TX,
  12789. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12790. msm_routing_put_audio_mixer),
  12791. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12792. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12793. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12794. msm_routing_put_audio_mixer),
  12795. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12797. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12798. msm_routing_put_audio_mixer),
  12799. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12802. msm_routing_put_audio_mixer),
  12803. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12804. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12805. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12806. msm_routing_put_audio_mixer),
  12807. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12808. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12809. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12810. msm_routing_put_audio_mixer),
  12811. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12812. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12813. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12814. msm_routing_put_audio_mixer),
  12815. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12818. msm_routing_put_audio_mixer),
  12819. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12822. msm_routing_put_audio_mixer),
  12823. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12824. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12825. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12826. msm_routing_put_audio_mixer),
  12827. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12829. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12830. msm_routing_put_audio_mixer),
  12831. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12834. msm_routing_put_audio_mixer),
  12835. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12837. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12838. msm_routing_put_audio_mixer),
  12839. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12842. msm_routing_put_audio_mixer),
  12843. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12845. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12846. msm_routing_put_audio_mixer),
  12847. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12849. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12850. msm_routing_put_audio_mixer),
  12851. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12854. msm_routing_put_audio_mixer),
  12855. };
  12856. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  12857. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12859. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12860. msm_routing_put_audio_mixer),
  12861. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12863. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12864. msm_routing_put_audio_mixer),
  12865. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12867. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12868. msm_routing_put_audio_mixer),
  12869. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12884. msm_routing_put_audio_mixer),
  12885. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12888. msm_routing_put_audio_mixer),
  12889. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_INT_FM_TX,
  12891. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12892. msm_routing_put_audio_mixer),
  12893. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12895. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_AFE_PCM_TX,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12911. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12912. msm_routing_put_audio_mixer),
  12913. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12915. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12916. msm_routing_put_audio_mixer),
  12917. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12919. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12920. msm_routing_put_audio_mixer),
  12921. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12923. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12924. msm_routing_put_audio_mixer),
  12925. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12927. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12928. msm_routing_put_audio_mixer),
  12929. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12931. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12932. msm_routing_put_audio_mixer),
  12933. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12935. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12936. msm_routing_put_audio_mixer),
  12937. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12939. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12940. msm_routing_put_audio_mixer),
  12941. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12943. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12944. msm_routing_put_audio_mixer),
  12945. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12946. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12947. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12948. msm_routing_put_audio_mixer),
  12949. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12950. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12951. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12952. msm_routing_put_audio_mixer),
  12953. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12954. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12955. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12956. msm_routing_put_audio_mixer),
  12957. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12959. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12960. msm_routing_put_audio_mixer),
  12961. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12963. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12964. msm_routing_put_audio_mixer),
  12965. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12966. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12967. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12968. msm_routing_put_audio_mixer),
  12969. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12971. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12972. msm_routing_put_audio_mixer),
  12973. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12975. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12976. msm_routing_put_audio_mixer),
  12977. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12979. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12980. msm_routing_put_audio_mixer),
  12981. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_USB_TX,
  12983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12984. msm_routing_put_audio_mixer),
  12985. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12986. MSM_BACKEND_DAI_MI2S_TX,
  12987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12988. msm_routing_put_audio_mixer),
  12989. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_AUXPCM_TX,
  12991. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12992. msm_routing_put_audio_mixer),
  12993. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12996. msm_routing_put_audio_mixer),
  12997. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12998. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13000. msm_routing_put_audio_mixer),
  13001. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13002. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13003. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13004. msm_routing_put_audio_mixer),
  13005. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13006. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13007. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13008. msm_routing_put_audio_mixer),
  13009. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13012. msm_routing_put_audio_mixer),
  13013. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13016. msm_routing_put_audio_mixer),
  13017. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13020. msm_routing_put_audio_mixer),
  13021. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13024. msm_routing_put_audio_mixer),
  13025. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13026. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13028. msm_routing_get_audio_mixer,
  13029. msm_routing_put_audio_mixer),
  13030. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13031. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13032. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13033. msm_routing_get_audio_mixer,
  13034. msm_routing_put_audio_mixer),
  13035. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13037. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13038. msm_routing_get_audio_mixer,
  13039. msm_routing_put_audio_mixer),
  13040. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13041. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13042. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13043. msm_routing_get_audio_mixer,
  13044. msm_routing_put_audio_mixer),
  13045. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13046. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13047. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13048. msm_routing_get_audio_mixer,
  13049. msm_routing_put_audio_mixer),
  13050. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13051. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13052. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13053. msm_routing_get_audio_mixer,
  13054. msm_routing_put_audio_mixer),
  13055. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13056. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13057. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13058. msm_routing_put_audio_mixer),
  13059. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13061. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13062. msm_routing_put_audio_mixer),
  13063. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13065. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13066. msm_routing_put_audio_mixer),
  13067. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13069. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. };
  13072. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13073. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13074. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13075. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13076. msm_routing_put_audio_mixer),
  13077. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13078. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13079. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13080. msm_routing_put_audio_mixer),
  13081. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13083. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13084. msm_routing_put_audio_mixer),
  13085. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_INT_FM_TX,
  13087. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13088. msm_routing_put_audio_mixer),
  13089. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13091. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13092. msm_routing_put_audio_mixer),
  13093. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_AFE_PCM_TX,
  13095. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13096. msm_routing_put_audio_mixer),
  13097. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13099. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13100. msm_routing_put_audio_mixer),
  13101. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13103. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13104. msm_routing_put_audio_mixer),
  13105. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13107. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13108. msm_routing_put_audio_mixer),
  13109. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13111. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13112. msm_routing_put_audio_mixer),
  13113. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13115. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13116. msm_routing_put_audio_mixer),
  13117. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13118. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13119. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13120. msm_routing_put_audio_mixer),
  13121. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13122. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13123. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13124. msm_routing_put_audio_mixer),
  13125. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13127. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13128. msm_routing_put_audio_mixer),
  13129. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13131. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13132. msm_routing_put_audio_mixer),
  13133. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13136. msm_routing_put_audio_mixer),
  13137. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13139. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13140. msm_routing_put_audio_mixer),
  13141. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13143. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13144. msm_routing_put_audio_mixer),
  13145. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13147. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13148. msm_routing_put_audio_mixer),
  13149. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13151. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13152. msm_routing_put_audio_mixer),
  13153. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13155. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13156. msm_routing_put_audio_mixer),
  13157. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13159. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13160. msm_routing_put_audio_mixer),
  13161. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13163. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13164. msm_routing_put_audio_mixer),
  13165. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13167. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13168. msm_routing_put_audio_mixer),
  13169. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13171. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13172. msm_routing_put_audio_mixer),
  13173. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13175. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13176. msm_routing_put_audio_mixer),
  13177. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13179. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13180. msm_routing_put_audio_mixer),
  13181. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13183. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13184. msm_routing_put_audio_mixer),
  13185. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13188. msm_routing_put_audio_mixer),
  13189. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13192. msm_routing_put_audio_mixer),
  13193. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13195. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13196. msm_routing_put_audio_mixer),
  13197. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13199. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13200. msm_routing_put_audio_mixer),
  13201. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13203. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13204. msm_routing_put_audio_mixer),
  13205. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13207. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13208. msm_routing_put_audio_mixer),
  13209. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13210. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13211. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13212. msm_routing_put_audio_mixer),
  13213. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13215. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13216. msm_routing_put_audio_mixer),
  13217. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13219. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13220. msm_routing_put_audio_mixer),
  13221. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13223. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13224. msm_routing_put_audio_mixer),
  13225. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13227. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13228. msm_routing_put_audio_mixer),
  13229. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13231. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13232. msm_routing_put_audio_mixer),
  13233. };
  13234. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13235. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13236. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13237. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13238. msm_routing_put_audio_mixer),
  13239. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13240. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13241. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13242. msm_routing_put_audio_mixer),
  13243. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13245. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13246. msm_routing_put_audio_mixer),
  13247. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_INT_FM_TX,
  13249. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13250. msm_routing_put_audio_mixer),
  13251. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13252. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13253. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13254. msm_routing_put_audio_mixer),
  13255. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_AFE_PCM_TX,
  13257. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13258. msm_routing_put_audio_mixer),
  13259. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13261. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13262. msm_routing_put_audio_mixer),
  13263. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13265. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13266. msm_routing_put_audio_mixer),
  13267. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13269. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13270. msm_routing_put_audio_mixer),
  13271. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13273. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13274. msm_routing_put_audio_mixer),
  13275. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13277. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13278. msm_routing_put_audio_mixer),
  13279. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13281. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13282. msm_routing_put_audio_mixer),
  13283. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13285. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13286. msm_routing_put_audio_mixer),
  13287. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13289. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13290. msm_routing_put_audio_mixer),
  13291. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13293. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13294. msm_routing_put_audio_mixer),
  13295. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13297. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13298. msm_routing_put_audio_mixer),
  13299. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13301. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13302. msm_routing_put_audio_mixer),
  13303. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13305. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13306. msm_routing_put_audio_mixer),
  13307. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_USB_TX,
  13309. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13310. msm_routing_put_audio_mixer),
  13311. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_MI2S_TX,
  13313. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13314. msm_routing_put_audio_mixer),
  13315. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_AUXPCM_TX,
  13317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13318. msm_routing_put_audio_mixer),
  13319. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13321. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13322. msm_routing_put_audio_mixer),
  13323. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13325. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13326. msm_routing_put_audio_mixer),
  13327. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13328. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13329. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13330. msm_routing_put_audio_mixer),
  13331. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13332. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13333. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13334. msm_routing_put_audio_mixer),
  13335. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13337. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13338. msm_routing_put_audio_mixer),
  13339. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13342. msm_routing_put_audio_mixer),
  13343. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13344. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13345. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13346. msm_routing_put_audio_mixer),
  13347. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13348. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13350. msm_routing_put_audio_mixer),
  13351. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13353. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13354. msm_routing_put_audio_mixer),
  13355. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13357. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13358. msm_routing_put_audio_mixer),
  13359. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13362. msm_routing_put_audio_mixer),
  13363. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13366. msm_routing_put_audio_mixer),
  13367. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13370. msm_routing_get_audio_mixer,
  13371. msm_routing_put_audio_mixer),
  13372. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13373. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13374. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13375. msm_routing_get_audio_mixer,
  13376. msm_routing_put_audio_mixer),
  13377. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13378. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13379. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13380. msm_routing_get_audio_mixer,
  13381. msm_routing_put_audio_mixer),
  13382. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13383. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13384. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13385. msm_routing_get_audio_mixer,
  13386. msm_routing_put_audio_mixer),
  13387. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13389. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13390. msm_routing_get_audio_mixer,
  13391. msm_routing_put_audio_mixer),
  13392. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13393. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13394. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13395. msm_routing_get_audio_mixer,
  13396. msm_routing_put_audio_mixer),
  13397. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13398. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13399. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13400. msm_routing_put_audio_mixer),
  13401. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13402. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13403. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13404. msm_routing_put_audio_mixer),
  13405. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13406. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13407. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13408. msm_routing_put_audio_mixer),
  13409. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13411. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13412. msm_routing_put_audio_mixer),
  13413. };
  13414. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13415. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13417. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13418. msm_routing_put_audio_mixer),
  13419. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13420. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13421. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13422. msm_routing_put_audio_mixer),
  13423. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13425. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13426. msm_routing_put_audio_mixer),
  13427. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13429. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13430. msm_routing_put_audio_mixer),
  13431. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_INT_FM_TX,
  13433. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_AFE_PCM_TX,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13442. msm_routing_put_audio_mixer),
  13443. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13444. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13445. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13446. msm_routing_put_audio_mixer),
  13447. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13449. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13450. msm_routing_put_audio_mixer),
  13451. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13453. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13454. msm_routing_put_audio_mixer),
  13455. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13456. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13457. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13458. msm_routing_put_audio_mixer),
  13459. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13461. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13462. msm_routing_put_audio_mixer),
  13463. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13486. msm_routing_get_audio_mixer,
  13487. msm_routing_put_audio_mixer),
  13488. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13489. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13490. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13491. msm_routing_get_audio_mixer,
  13492. msm_routing_put_audio_mixer),
  13493. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13494. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13495. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13496. msm_routing_get_audio_mixer,
  13497. msm_routing_put_audio_mixer),
  13498. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13499. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13500. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13501. msm_routing_get_audio_mixer,
  13502. msm_routing_put_audio_mixer),
  13503. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13505. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13506. msm_routing_get_audio_mixer,
  13507. msm_routing_put_audio_mixer),
  13508. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13509. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13510. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13511. msm_routing_get_audio_mixer,
  13512. msm_routing_put_audio_mixer),
  13513. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13514. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13515. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13516. msm_routing_put_audio_mixer),
  13517. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13518. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13519. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13520. msm_routing_put_audio_mixer),
  13521. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13522. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13523. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13524. msm_routing_put_audio_mixer),
  13525. };
  13526. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  13527. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13529. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13530. msm_routing_put_audio_mixer),
  13531. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13533. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13534. msm_routing_put_audio_mixer),
  13535. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13537. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13538. msm_routing_put_audio_mixer),
  13539. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13549. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13550. msm_routing_put_audio_mixer),
  13551. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13553. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13554. msm_routing_put_audio_mixer),
  13555. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_INT_FM_TX,
  13557. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13558. msm_routing_put_audio_mixer),
  13559. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13561. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13562. msm_routing_put_audio_mixer),
  13563. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_AFE_PCM_TX,
  13565. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13566. msm_routing_put_audio_mixer),
  13567. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13569. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13570. msm_routing_put_audio_mixer),
  13571. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13573. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13574. msm_routing_put_audio_mixer),
  13575. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13577. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13578. msm_routing_put_audio_mixer),
  13579. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13581. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13582. msm_routing_put_audio_mixer),
  13583. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13585. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13586. msm_routing_put_audio_mixer),
  13587. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13589. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13590. msm_routing_put_audio_mixer),
  13591. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13593. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13594. msm_routing_put_audio_mixer),
  13595. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13597. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13598. msm_routing_put_audio_mixer),
  13599. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13601. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13602. msm_routing_get_audio_mixer,
  13603. msm_routing_put_audio_mixer),
  13604. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13605. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13606. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13607. msm_routing_get_audio_mixer,
  13608. msm_routing_put_audio_mixer),
  13609. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13610. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13611. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13612. msm_routing_get_audio_mixer,
  13613. msm_routing_put_audio_mixer),
  13614. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13615. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13616. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13617. msm_routing_get_audio_mixer,
  13618. msm_routing_put_audio_mixer),
  13619. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13621. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13622. msm_routing_get_audio_mixer,
  13623. msm_routing_put_audio_mixer),
  13624. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13625. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13626. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13627. msm_routing_get_audio_mixer,
  13628. msm_routing_put_audio_mixer),
  13629. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13630. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13631. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13632. msm_routing_put_audio_mixer),
  13633. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13634. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13635. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13636. msm_routing_put_audio_mixer),
  13637. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13638. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13639. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13640. msm_routing_put_audio_mixer),
  13641. };
  13642. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  13643. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13644. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13645. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13646. msm_routing_put_audio_mixer),
  13647. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13648. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13649. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13650. msm_routing_put_audio_mixer),
  13651. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13652. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13653. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13654. msm_routing_put_audio_mixer),
  13655. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13656. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13657. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13658. msm_routing_put_audio_mixer),
  13659. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13660. MSM_BACKEND_DAI_INT_FM_TX,
  13661. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13662. msm_routing_put_audio_mixer),
  13663. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13665. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13666. msm_routing_put_audio_mixer),
  13667. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_AFE_PCM_TX,
  13669. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13670. msm_routing_put_audio_mixer),
  13671. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13673. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13674. msm_routing_put_audio_mixer),
  13675. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13677. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13678. msm_routing_put_audio_mixer),
  13679. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13681. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13682. msm_routing_put_audio_mixer),
  13683. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13685. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13686. msm_routing_put_audio_mixer),
  13687. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13689. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13690. msm_routing_put_audio_mixer),
  13691. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13693. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13694. msm_routing_put_audio_mixer),
  13695. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13697. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13698. msm_routing_put_audio_mixer),
  13699. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13701. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13702. msm_routing_put_audio_mixer),
  13703. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13705. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13706. msm_routing_put_audio_mixer),
  13707. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13709. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13710. msm_routing_put_audio_mixer),
  13711. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13713. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13714. msm_routing_put_audio_mixer),
  13715. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13717. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13718. msm_routing_get_audio_mixer,
  13719. msm_routing_put_audio_mixer),
  13720. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13721. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13722. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13723. msm_routing_get_audio_mixer,
  13724. msm_routing_put_audio_mixer),
  13725. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13726. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13727. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13728. msm_routing_get_audio_mixer,
  13729. msm_routing_put_audio_mixer),
  13730. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13731. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13732. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13733. msm_routing_get_audio_mixer,
  13734. msm_routing_put_audio_mixer),
  13735. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13736. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13737. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13738. msm_routing_get_audio_mixer,
  13739. msm_routing_put_audio_mixer),
  13740. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13741. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13742. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13743. msm_routing_get_audio_mixer,
  13744. msm_routing_put_audio_mixer),
  13745. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13747. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13748. msm_routing_put_audio_mixer),
  13749. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13750. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13751. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13752. msm_routing_put_audio_mixer),
  13753. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13755. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13756. msm_routing_put_audio_mixer),
  13757. };
  13758. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  13759. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13760. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13761. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13762. msm_routing_put_audio_mixer),
  13763. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13764. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13765. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13766. msm_routing_put_audio_mixer),
  13767. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13768. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13769. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13770. msm_routing_put_audio_mixer),
  13771. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13773. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13774. msm_routing_put_audio_mixer),
  13775. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13777. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13778. msm_routing_put_audio_mixer),
  13779. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13781. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13782. msm_routing_put_audio_mixer),
  13783. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13785. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13786. msm_routing_put_audio_mixer),
  13787. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13789. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13790. msm_routing_put_audio_mixer),
  13791. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13793. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13794. msm_routing_put_audio_mixer),
  13795. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13797. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13798. msm_routing_put_audio_mixer),
  13799. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13801. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13802. msm_routing_put_audio_mixer),
  13803. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13804. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13805. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13806. msm_routing_put_audio_mixer),
  13807. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13808. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13809. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13810. msm_routing_put_audio_mixer),
  13811. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13813. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13814. msm_routing_put_audio_mixer),
  13815. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13817. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13818. msm_routing_put_audio_mixer),
  13819. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13821. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13822. msm_routing_put_audio_mixer),
  13823. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13824. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13825. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13826. msm_routing_put_audio_mixer),
  13827. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13828. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13829. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13830. msm_routing_put_audio_mixer),
  13831. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13832. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13833. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13834. msm_routing_put_audio_mixer),
  13835. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13837. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13838. msm_routing_put_audio_mixer),
  13839. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13841. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13842. msm_routing_put_audio_mixer),
  13843. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13845. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13846. msm_routing_put_audio_mixer),
  13847. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13848. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13849. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13850. msm_routing_put_audio_mixer),
  13851. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13852. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13853. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13854. msm_routing_put_audio_mixer),
  13855. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13857. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13858. msm_routing_put_audio_mixer),
  13859. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13861. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13862. msm_routing_put_audio_mixer),
  13863. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13865. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13866. msm_routing_put_audio_mixer),
  13867. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13869. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13870. msm_routing_put_audio_mixer),
  13871. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13873. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13874. msm_routing_put_audio_mixer),
  13875. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13877. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13878. msm_routing_put_audio_mixer),
  13879. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13881. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13882. msm_routing_put_audio_mixer),
  13883. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13885. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13886. msm_routing_put_audio_mixer),
  13887. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13889. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13890. msm_routing_put_audio_mixer),
  13891. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13893. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13894. msm_routing_put_audio_mixer),
  13895. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13897. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13898. msm_routing_put_audio_mixer),
  13899. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13900. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13901. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13902. msm_routing_put_audio_mixer),
  13903. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13904. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13905. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13906. msm_routing_put_audio_mixer),
  13907. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13909. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13910. msm_routing_put_audio_mixer),
  13911. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13912. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13913. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13914. msm_routing_put_audio_mixer),
  13915. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13916. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13917. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13918. msm_routing_put_audio_mixer),
  13919. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13920. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13921. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13922. msm_routing_put_audio_mixer),
  13923. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13925. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13926. msm_routing_put_audio_mixer),
  13927. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13929. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13930. msm_routing_put_audio_mixer),
  13931. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13933. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13934. msm_routing_put_audio_mixer),
  13935. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13936. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13937. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13938. msm_routing_put_audio_mixer),
  13939. };
  13940. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  13941. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13942. MSM_BACKEND_DAI_AUXPCM_TX,
  13943. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13944. msm_routing_put_audio_mixer),
  13945. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13946. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13947. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13948. msm_routing_put_audio_mixer),
  13949. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13950. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13951. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13952. msm_routing_put_audio_mixer),
  13953. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13954. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13955. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13956. msm_routing_put_audio_mixer),
  13957. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13958. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13959. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13960. msm_routing_put_audio_mixer),
  13961. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13963. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13964. msm_routing_put_audio_mixer),
  13965. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13966. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13967. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13968. msm_routing_put_audio_mixer),
  13969. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13970. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13971. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13972. msm_routing_put_audio_mixer),
  13973. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13974. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13975. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13976. msm_routing_put_audio_mixer),
  13977. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13978. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13979. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13980. msm_routing_put_audio_mixer),
  13981. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13982. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13983. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13984. msm_routing_put_audio_mixer),
  13985. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13986. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13987. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13988. msm_routing_put_audio_mixer),
  13989. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13990. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13991. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13992. msm_routing_put_audio_mixer),
  13993. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13995. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13996. msm_routing_put_audio_mixer),
  13997. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14000. msm_routing_put_audio_mixer),
  14001. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14003. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14004. msm_routing_put_audio_mixer),
  14005. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14007. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14008. msm_routing_put_audio_mixer),
  14009. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14011. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14012. msm_routing_put_audio_mixer),
  14013. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14015. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14016. msm_routing_put_audio_mixer),
  14017. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14019. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14020. msm_routing_put_audio_mixer),
  14021. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14023. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14035. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14036. msm_routing_put_audio_mixer),
  14037. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14039. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14040. msm_routing_put_audio_mixer),
  14041. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14043. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14044. msm_routing_put_audio_mixer),
  14045. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14047. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14048. msm_routing_put_audio_mixer),
  14049. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14051. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14052. msm_routing_put_audio_mixer),
  14053. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14055. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14056. msm_routing_put_audio_mixer),
  14057. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14059. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14060. msm_routing_put_audio_mixer),
  14061. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14062. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14063. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14064. msm_routing_put_audio_mixer),
  14065. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14066. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14067. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14068. msm_routing_put_audio_mixer),
  14069. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14071. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14072. msm_routing_put_audio_mixer),
  14073. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14074. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14075. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14076. msm_routing_put_audio_mixer),
  14077. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14079. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14080. msm_routing_put_audio_mixer),
  14081. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14082. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14083. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14084. msm_routing_put_audio_mixer),
  14085. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14086. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14087. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14088. msm_routing_put_audio_mixer),
  14089. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14091. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14092. msm_routing_put_audio_mixer),
  14093. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14094. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14095. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14096. msm_routing_put_audio_mixer),
  14097. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14098. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14099. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14100. msm_routing_put_audio_mixer),
  14101. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14103. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14104. msm_routing_put_audio_mixer),
  14105. };
  14106. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14107. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14108. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14109. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14110. msm_routing_put_audio_mixer),
  14111. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14112. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14113. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14114. msm_routing_put_audio_mixer),
  14115. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14116. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14117. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14118. msm_routing_put_audio_mixer),
  14119. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14120. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14121. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14122. msm_routing_put_audio_mixer),
  14123. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14125. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14126. msm_routing_put_audio_mixer),
  14127. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14128. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14129. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14130. msm_routing_put_audio_mixer),
  14131. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14133. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14134. msm_routing_put_audio_mixer),
  14135. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14136. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14137. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14138. msm_routing_put_audio_mixer),
  14139. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14140. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14141. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14142. msm_routing_put_audio_mixer),
  14143. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14144. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14145. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14146. msm_routing_put_audio_mixer),
  14147. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14148. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14149. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14150. msm_routing_put_audio_mixer),
  14151. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14153. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14154. msm_routing_put_audio_mixer),
  14155. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14156. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14157. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14158. msm_routing_put_audio_mixer),
  14159. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14160. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14161. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14162. msm_routing_put_audio_mixer),
  14163. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14164. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14165. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14166. msm_routing_put_audio_mixer),
  14167. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14168. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14169. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14170. msm_routing_put_audio_mixer),
  14171. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14173. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14174. msm_routing_put_audio_mixer),
  14175. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14177. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14178. msm_routing_put_audio_mixer),
  14179. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14180. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14181. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14182. msm_routing_put_audio_mixer),
  14183. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14184. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14185. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14186. msm_routing_put_audio_mixer),
  14187. };
  14188. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  14189. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14190. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14191. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14192. msm_routing_put_audio_mixer),
  14193. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14194. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14195. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14196. msm_routing_put_audio_mixer),
  14197. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14199. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14200. msm_routing_put_audio_mixer),
  14201. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14203. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14204. msm_routing_put_audio_mixer),
  14205. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14207. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14208. msm_routing_put_audio_mixer),
  14209. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14211. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14212. msm_routing_put_audio_mixer),
  14213. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14215. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14216. msm_routing_put_audio_mixer),
  14217. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14219. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14220. msm_routing_put_audio_mixer),
  14221. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14223. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14224. msm_routing_put_audio_mixer),
  14225. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14227. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14228. msm_routing_put_audio_mixer),
  14229. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14231. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14232. msm_routing_put_audio_mixer),
  14233. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14235. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14236. msm_routing_put_audio_mixer),
  14237. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14239. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14240. msm_routing_put_audio_mixer),
  14241. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14243. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14244. msm_routing_put_audio_mixer),
  14245. };
  14246. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  14247. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14248. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14249. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14250. msm_routing_put_audio_mixer),
  14251. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14252. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14253. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14254. msm_routing_put_audio_mixer),
  14255. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14256. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14257. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14258. msm_routing_put_audio_mixer),
  14259. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14260. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14261. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14262. msm_routing_put_audio_mixer),
  14263. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14264. MSM_BACKEND_DAI_INT_FM_TX,
  14265. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14266. msm_routing_put_audio_mixer),
  14267. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14268. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14269. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14270. msm_routing_put_audio_mixer),
  14271. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14272. MSM_BACKEND_DAI_AFE_PCM_TX,
  14273. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14274. msm_routing_put_audio_mixer),
  14275. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14276. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14277. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14278. msm_routing_put_audio_mixer),
  14279. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14280. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14281. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14282. msm_routing_put_audio_mixer),
  14283. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14285. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14286. msm_routing_put_audio_mixer),
  14287. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14288. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14289. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14290. msm_routing_put_audio_mixer),
  14291. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14292. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14293. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14294. msm_routing_put_audio_mixer),
  14295. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14296. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14297. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14298. msm_routing_put_audio_mixer),
  14299. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14300. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14301. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14302. msm_routing_put_audio_mixer),
  14303. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14304. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14305. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14306. msm_routing_put_audio_mixer),
  14307. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14308. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14309. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14310. msm_routing_put_audio_mixer),
  14311. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14312. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14313. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14314. msm_routing_put_audio_mixer),
  14315. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14316. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14317. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14318. msm_routing_put_audio_mixer),
  14319. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14320. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14321. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14322. msm_routing_get_audio_mixer,
  14323. msm_routing_put_audio_mixer),
  14324. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14325. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14326. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14327. msm_routing_get_audio_mixer,
  14328. msm_routing_put_audio_mixer),
  14329. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14330. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14331. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14332. msm_routing_get_audio_mixer,
  14333. msm_routing_put_audio_mixer),
  14334. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14335. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14336. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14337. msm_routing_get_audio_mixer,
  14338. msm_routing_put_audio_mixer),
  14339. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14340. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14341. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14342. msm_routing_get_audio_mixer,
  14343. msm_routing_put_audio_mixer),
  14344. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14345. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14346. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14347. msm_routing_get_audio_mixer,
  14348. msm_routing_put_audio_mixer),
  14349. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14351. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14352. msm_routing_put_audio_mixer),
  14353. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14354. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14355. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14356. msm_routing_put_audio_mixer),
  14357. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14358. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14359. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14360. msm_routing_put_audio_mixer),
  14361. };
  14362. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  14363. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14364. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14365. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14366. msm_routing_put_audio_mixer),
  14367. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14369. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14370. msm_routing_put_audio_mixer),
  14371. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14372. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14373. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14374. msm_routing_put_audio_mixer),
  14375. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14377. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14378. msm_routing_put_audio_mixer),
  14379. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_INT_FM_TX,
  14381. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14382. msm_routing_put_audio_mixer),
  14383. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14384. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14385. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14386. msm_routing_put_audio_mixer),
  14387. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14388. MSM_BACKEND_DAI_AFE_PCM_TX,
  14389. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14390. msm_routing_put_audio_mixer),
  14391. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14392. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14393. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14394. msm_routing_put_audio_mixer),
  14395. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14396. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14397. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14398. msm_routing_put_audio_mixer),
  14399. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14400. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14401. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14402. msm_routing_put_audio_mixer),
  14403. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14404. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14405. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14406. msm_routing_put_audio_mixer),
  14407. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14409. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14410. msm_routing_put_audio_mixer),
  14411. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14413. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14414. msm_routing_put_audio_mixer),
  14415. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14416. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14417. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14418. msm_routing_put_audio_mixer),
  14419. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14420. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14421. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14422. msm_routing_put_audio_mixer),
  14423. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14424. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14425. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14426. msm_routing_put_audio_mixer),
  14427. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14429. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14430. msm_routing_put_audio_mixer),
  14431. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14432. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14433. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14434. msm_routing_put_audio_mixer),
  14435. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14437. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14438. msm_routing_get_audio_mixer,
  14439. msm_routing_put_audio_mixer),
  14440. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14441. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14442. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14443. msm_routing_get_audio_mixer,
  14444. msm_routing_put_audio_mixer),
  14445. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14447. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14448. msm_routing_get_audio_mixer,
  14449. msm_routing_put_audio_mixer),
  14450. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14451. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14452. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14453. msm_routing_get_audio_mixer,
  14454. msm_routing_put_audio_mixer),
  14455. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14456. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14457. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14458. msm_routing_get_audio_mixer,
  14459. msm_routing_put_audio_mixer),
  14460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14462. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14463. msm_routing_get_audio_mixer,
  14464. msm_routing_put_audio_mixer),
  14465. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14467. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14468. msm_routing_put_audio_mixer),
  14469. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14470. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14471. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14472. msm_routing_put_audio_mixer),
  14473. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14474. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14475. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14476. msm_routing_put_audio_mixer),
  14477. };
  14478. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  14479. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14480. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14481. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14482. msm_routing_put_audio_mixer),
  14483. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14484. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14485. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14486. msm_routing_put_audio_mixer),
  14487. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14488. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14489. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14490. msm_routing_put_audio_mixer),
  14491. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14492. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14493. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14494. msm_routing_put_audio_mixer),
  14495. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14496. MSM_BACKEND_DAI_INT_FM_TX,
  14497. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14498. msm_routing_put_audio_mixer),
  14499. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14500. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14501. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14502. msm_routing_put_audio_mixer),
  14503. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14504. MSM_BACKEND_DAI_AFE_PCM_TX,
  14505. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14506. msm_routing_put_audio_mixer),
  14507. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14508. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14509. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14510. msm_routing_put_audio_mixer),
  14511. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14512. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14513. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14514. msm_routing_put_audio_mixer),
  14515. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14516. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14517. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14518. msm_routing_put_audio_mixer),
  14519. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14520. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14521. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14522. msm_routing_put_audio_mixer),
  14523. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14524. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14525. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14526. msm_routing_put_audio_mixer),
  14527. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14528. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14529. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14530. msm_routing_put_audio_mixer),
  14531. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14533. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14534. msm_routing_put_audio_mixer),
  14535. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14536. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14537. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14538. msm_routing_put_audio_mixer),
  14539. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14541. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14542. msm_routing_put_audio_mixer),
  14543. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14544. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14545. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14546. msm_routing_put_audio_mixer),
  14547. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14548. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14549. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14550. msm_routing_get_audio_mixer,
  14551. msm_routing_put_audio_mixer),
  14552. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14553. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14554. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14555. msm_routing_get_audio_mixer,
  14556. msm_routing_put_audio_mixer),
  14557. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14558. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14559. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14560. msm_routing_get_audio_mixer,
  14561. msm_routing_put_audio_mixer),
  14562. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14563. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14564. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14565. msm_routing_get_audio_mixer,
  14566. msm_routing_put_audio_mixer),
  14567. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14568. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14569. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14570. msm_routing_get_audio_mixer,
  14571. msm_routing_put_audio_mixer),
  14572. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14573. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14574. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14575. msm_routing_get_audio_mixer,
  14576. msm_routing_put_audio_mixer),
  14577. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14578. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14579. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14580. msm_routing_put_audio_mixer),
  14581. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14582. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14583. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14584. msm_routing_put_audio_mixer),
  14585. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14586. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14587. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14588. msm_routing_put_audio_mixer),
  14589. };
  14590. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  14591. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_PRI_I2S_RX,
  14593. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14594. msm_routing_put_voice_mixer),
  14595. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14596. MSM_BACKEND_DAI_PRI_I2S_RX,
  14597. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14598. msm_routing_put_voice_mixer),
  14599. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14600. MSM_BACKEND_DAI_PRI_I2S_RX,
  14601. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14602. msm_routing_put_voice_mixer),
  14603. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_PRI_I2S_RX,
  14605. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14606. msm_routing_put_voice_mixer),
  14607. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_PRI_I2S_RX,
  14609. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14610. msm_routing_put_voice_mixer),
  14611. };
  14612. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  14613. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14614. MSM_BACKEND_DAI_SEC_I2S_RX,
  14615. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14616. msm_routing_put_voice_mixer),
  14617. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_SEC_I2S_RX,
  14619. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14620. msm_routing_put_voice_mixer),
  14621. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_SEC_I2S_RX,
  14623. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14624. msm_routing_put_voice_mixer),
  14625. };
  14626. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  14627. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14628. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14629. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14630. msm_routing_put_voice_mixer),
  14631. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14632. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14633. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14634. msm_routing_put_voice_mixer),
  14635. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14636. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14637. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14638. msm_routing_put_voice_mixer),
  14639. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14640. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14641. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14642. msm_routing_put_voice_mixer),
  14643. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14645. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14646. msm_routing_put_voice_mixer),
  14647. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14648. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14649. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14650. msm_routing_put_voice_mixer),
  14651. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14652. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14653. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14654. msm_routing_put_voice_mixer),
  14655. };
  14656. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  14657. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14658. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14659. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14660. msm_routing_put_voice_mixer),
  14661. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14662. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14663. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14664. msm_routing_put_voice_mixer),
  14665. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14667. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14668. msm_routing_put_voice_mixer),
  14669. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14671. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14672. msm_routing_put_voice_mixer),
  14673. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14675. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14676. msm_routing_put_voice_mixer),
  14677. };
  14678. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  14679. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14680. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14681. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14682. msm_routing_put_voice_mixer),
  14683. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14685. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14686. msm_routing_put_voice_mixer),
  14687. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14688. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14689. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14690. msm_routing_put_voice_mixer),
  14691. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14692. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14693. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14694. msm_routing_put_voice_mixer),
  14695. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14696. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14697. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14698. msm_routing_put_voice_mixer),
  14699. };
  14700. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  14701. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14702. MSM_BACKEND_DAI_USB_RX,
  14703. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14704. msm_routing_put_voice_mixer),
  14705. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_USB_RX,
  14707. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14708. msm_routing_put_voice_mixer),
  14709. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14710. MSM_BACKEND_DAI_USB_RX,
  14711. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14712. msm_routing_put_voice_mixer),
  14713. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14714. MSM_BACKEND_DAI_USB_RX,
  14715. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14716. msm_routing_put_voice_mixer),
  14717. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14718. MSM_BACKEND_DAI_USB_RX,
  14719. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14720. msm_routing_put_voice_mixer),
  14721. };
  14722. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  14723. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14725. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14726. msm_routing_put_voice_mixer),
  14727. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14728. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14729. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14730. msm_routing_put_voice_mixer),
  14731. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14732. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14733. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14734. msm_routing_put_voice_mixer),
  14735. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14737. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14738. msm_routing_put_voice_mixer),
  14739. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14740. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14741. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14742. msm_routing_put_voice_mixer),
  14743. };
  14744. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  14745. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14747. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14748. msm_routing_put_voice_mixer),
  14749. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14750. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14751. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14752. msm_routing_put_voice_mixer),
  14753. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14754. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14755. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14756. msm_routing_put_voice_mixer),
  14757. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14758. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14759. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14760. msm_routing_put_voice_mixer),
  14761. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14763. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14764. msm_routing_put_voice_mixer),
  14765. };
  14766. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  14767. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14768. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14769. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14770. msm_routing_put_voice_mixer),
  14771. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14773. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14774. msm_routing_put_voice_mixer),
  14775. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14777. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14778. msm_routing_put_voice_mixer),
  14779. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14780. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14781. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14782. msm_routing_put_voice_mixer),
  14783. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14785. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14786. msm_routing_put_voice_mixer),
  14787. };
  14788. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  14789. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14790. MSM_BACKEND_DAI_MI2S_RX,
  14791. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14792. msm_routing_put_voice_mixer),
  14793. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14794. MSM_BACKEND_DAI_MI2S_RX,
  14795. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14796. msm_routing_put_voice_mixer),
  14797. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14798. MSM_BACKEND_DAI_MI2S_RX,
  14799. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14800. msm_routing_put_voice_mixer),
  14801. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14802. MSM_BACKEND_DAI_MI2S_RX,
  14803. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14804. msm_routing_put_voice_mixer),
  14805. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_MI2S_RX,
  14807. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14808. msm_routing_put_voice_mixer),
  14809. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_MI2S_RX,
  14811. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14812. msm_routing_put_voice_mixer),
  14813. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14814. MSM_BACKEND_DAI_MI2S_RX,
  14815. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14816. msm_routing_put_voice_mixer),
  14817. };
  14818. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  14819. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14820. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14821. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14822. msm_routing_put_voice_mixer),
  14823. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14824. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14825. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14826. msm_routing_put_voice_mixer),
  14827. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14829. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14830. msm_routing_put_voice_mixer),
  14831. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14833. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14834. msm_routing_put_voice_mixer),
  14835. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14837. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14838. msm_routing_put_voice_mixer),
  14839. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14840. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14841. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14842. msm_routing_put_voice_mixer),
  14843. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14844. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14845. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14846. msm_routing_put_voice_mixer),
  14847. };
  14848. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  14849. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14850. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14851. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14852. msm_routing_put_voice_mixer),
  14853. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14855. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14856. msm_routing_put_voice_mixer),
  14857. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14859. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14860. msm_routing_put_voice_mixer),
  14861. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14862. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14863. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14864. msm_routing_put_voice_mixer),
  14865. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14867. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14868. msm_routing_put_voice_mixer),
  14869. };
  14870. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  14871. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14872. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14873. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14874. msm_routing_put_voice_mixer),
  14875. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14876. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14877. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14878. msm_routing_put_voice_mixer),
  14879. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14880. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14881. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14882. msm_routing_put_voice_mixer),
  14883. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14884. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14885. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14886. msm_routing_put_voice_mixer),
  14887. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14889. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14890. msm_routing_put_voice_mixer),
  14891. };
  14892. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  14893. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14894. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14895. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14896. msm_routing_put_voice_mixer),
  14897. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14899. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14900. msm_routing_put_voice_mixer),
  14901. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14902. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14903. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14904. msm_routing_put_voice_mixer),
  14905. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14907. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14908. msm_routing_put_voice_mixer),
  14909. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14910. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14911. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14912. msm_routing_put_voice_mixer),
  14913. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14914. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14915. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14916. msm_routing_put_voice_mixer),
  14917. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14918. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14919. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14920. msm_routing_put_voice_mixer),
  14921. };
  14922. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  14923. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14924. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14925. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14926. msm_routing_put_voice_mixer),
  14927. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14928. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14929. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14930. msm_routing_put_voice_mixer),
  14931. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14932. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14933. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14934. msm_routing_put_voice_mixer),
  14935. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14936. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14937. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14938. msm_routing_put_voice_mixer),
  14939. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14941. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14942. msm_routing_put_voice_mixer),
  14943. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14945. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14946. msm_routing_put_voice_mixer),
  14947. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14949. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14950. msm_routing_put_voice_mixer),
  14951. };
  14952. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  14953. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14954. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14955. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14956. msm_routing_put_voice_mixer),
  14957. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14958. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14959. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14960. msm_routing_put_voice_stub_mixer),
  14961. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14962. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14963. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14964. msm_routing_put_voice_stub_mixer),
  14965. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14966. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14967. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14968. msm_routing_put_voice_mixer),
  14969. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14970. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14971. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14972. msm_routing_put_voice_mixer),
  14973. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14974. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14975. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14976. msm_routing_put_voice_mixer),
  14977. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14978. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14979. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14980. msm_routing_put_voice_mixer),
  14981. };
  14982. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  14983. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14984. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14985. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14986. msm_routing_put_voice_mixer),
  14987. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14988. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14989. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14990. msm_routing_put_voice_mixer),
  14991. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14993. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14994. msm_routing_put_voice_mixer),
  14995. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14997. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14998. msm_routing_put_voice_mixer),
  14999. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15001. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15002. msm_routing_put_voice_mixer),
  15003. };
  15004. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15005. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15006. MSM_BACKEND_DAI_AFE_PCM_RX,
  15007. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15008. msm_routing_put_voice_mixer),
  15009. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15010. MSM_BACKEND_DAI_AFE_PCM_RX,
  15011. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15012. msm_routing_put_voice_mixer),
  15013. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15014. MSM_BACKEND_DAI_AFE_PCM_RX,
  15015. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15016. msm_routing_put_voice_mixer),
  15017. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15018. MSM_BACKEND_DAI_AFE_PCM_RX,
  15019. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15020. msm_routing_put_voice_mixer),
  15021. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_AFE_PCM_RX,
  15023. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15024. msm_routing_put_voice_mixer),
  15025. };
  15026. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15027. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15028. MSM_BACKEND_DAI_AUXPCM_RX,
  15029. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15030. msm_routing_put_voice_mixer),
  15031. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15032. MSM_BACKEND_DAI_AUXPCM_RX,
  15033. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15034. msm_routing_put_voice_mixer),
  15035. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15036. MSM_BACKEND_DAI_AUXPCM_RX,
  15037. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15038. msm_routing_put_voice_mixer),
  15039. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_AUXPCM_RX,
  15041. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15042. msm_routing_put_voice_mixer),
  15043. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_AUXPCM_RX,
  15045. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15046. msm_routing_put_voice_mixer),
  15047. };
  15048. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15049. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15050. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15051. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15052. msm_routing_put_voice_mixer),
  15053. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15054. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15055. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15056. msm_routing_put_voice_mixer),
  15057. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15058. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15059. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15060. msm_routing_put_voice_mixer),
  15061. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15063. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15064. msm_routing_put_voice_mixer),
  15065. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15066. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15067. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15068. msm_routing_put_voice_mixer),
  15069. };
  15070. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  15071. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15073. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15074. msm_routing_put_voice_mixer),
  15075. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15076. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15077. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15078. msm_routing_put_voice_mixer),
  15079. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15080. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15081. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15082. msm_routing_put_voice_mixer),
  15083. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15085. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15086. msm_routing_put_voice_mixer),
  15087. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15089. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15090. msm_routing_put_voice_mixer),
  15091. };
  15092. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  15093. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15094. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15095. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15096. msm_routing_put_voice_mixer),
  15097. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15098. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15099. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15100. msm_routing_put_voice_mixer),
  15101. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15103. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15104. msm_routing_put_voice_mixer),
  15105. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15106. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15107. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15108. msm_routing_put_voice_mixer),
  15109. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15111. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15112. msm_routing_put_voice_mixer),
  15113. };
  15114. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  15115. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15116. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15117. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15118. msm_routing_put_voice_mixer),
  15119. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15120. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15121. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15122. msm_routing_put_voice_mixer),
  15123. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15124. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15125. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15126. msm_routing_put_voice_mixer),
  15127. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15129. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15130. msm_routing_put_voice_mixer),
  15131. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15132. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15133. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15134. msm_routing_put_voice_mixer),
  15135. };
  15136. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  15137. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15138. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15139. msm_routing_put_voice_mixer),
  15140. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15141. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15142. msm_routing_put_voice_mixer),
  15143. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15144. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15145. msm_routing_put_voice_mixer),
  15146. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15147. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15148. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15149. msm_routing_put_voice_mixer),
  15150. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15151. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15152. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15153. msm_routing_put_voice_mixer),
  15154. };
  15155. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  15156. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15157. MSM_BACKEND_DAI_HDMI_RX,
  15158. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15159. msm_routing_put_voice_mixer),
  15160. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15161. MSM_BACKEND_DAI_HDMI_RX,
  15162. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15163. msm_routing_put_voice_mixer),
  15164. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15165. MSM_BACKEND_DAI_HDMI_RX,
  15166. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15167. msm_routing_put_voice_mixer),
  15168. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15169. MSM_BACKEND_DAI_HDMI_RX,
  15170. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15171. msm_routing_put_voice_mixer),
  15172. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15173. MSM_BACKEND_DAI_HDMI_RX,
  15174. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15175. msm_routing_put_voice_mixer),
  15176. };
  15177. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  15178. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15179. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15180. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15181. msm_routing_put_voice_mixer),
  15182. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15183. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15184. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15185. msm_routing_put_voice_mixer),
  15186. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15187. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15188. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15189. msm_routing_put_voice_mixer),
  15190. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15191. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15192. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15193. msm_routing_put_voice_mixer),
  15194. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15195. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15196. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15197. msm_routing_put_voice_mixer),
  15198. };
  15199. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  15200. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15201. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15202. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15203. msm_routing_put_voice_mixer),
  15204. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15205. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15206. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15207. msm_routing_put_voice_mixer),
  15208. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15209. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15210. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15211. msm_routing_put_voice_mixer),
  15212. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15213. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15214. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15215. msm_routing_put_voice_mixer),
  15216. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15217. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15218. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15219. msm_routing_put_voice_mixer),
  15220. };
  15221. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  15222. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15223. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15224. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15225. msm_routing_put_voice_mixer),
  15226. };
  15227. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  15228. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15229. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15230. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15231. msm_routing_put_voice_mixer),
  15232. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15233. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15234. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15235. msm_routing_put_voice_mixer),
  15236. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15237. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15238. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15239. msm_routing_put_voice_mixer),
  15240. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15242. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15243. msm_routing_put_voice_mixer),
  15244. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15245. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15246. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15247. msm_routing_put_voice_mixer),
  15248. };
  15249. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  15250. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15251. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15252. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15253. msm_routing_put_voice_mixer),
  15254. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15255. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15256. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15257. msm_routing_put_voice_mixer),
  15258. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15259. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15260. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15261. msm_routing_put_voice_mixer),
  15262. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15263. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15264. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15265. msm_routing_put_voice_mixer),
  15266. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15267. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15268. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15269. msm_routing_put_voice_mixer),
  15270. };
  15271. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  15272. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15273. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15274. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15275. msm_routing_put_voice_mixer),
  15276. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15277. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15278. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15279. msm_routing_put_voice_mixer),
  15280. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15281. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15282. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15283. msm_routing_put_voice_mixer),
  15284. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15285. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15286. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15287. msm_routing_put_voice_mixer),
  15288. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15289. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15290. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15291. msm_routing_put_voice_mixer),
  15292. };
  15293. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  15294. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15295. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15296. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15297. msm_routing_put_voice_mixer),
  15298. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15299. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15300. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15301. msm_routing_put_voice_mixer),
  15302. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15303. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15304. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15305. msm_routing_put_voice_mixer),
  15306. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15307. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15308. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15309. msm_routing_put_voice_mixer),
  15310. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15311. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15312. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15313. msm_routing_put_voice_mixer),
  15314. };
  15315. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  15316. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15317. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15318. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15319. msm_routing_put_voice_mixer),
  15320. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15321. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15322. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15323. msm_routing_put_voice_mixer),
  15324. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15325. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15326. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15327. msm_routing_put_voice_mixer),
  15328. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15329. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15330. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15331. msm_routing_put_voice_mixer),
  15332. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15334. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15335. msm_routing_put_voice_mixer),
  15336. };
  15337. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  15338. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15339. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15340. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15341. msm_routing_put_voice_mixer),
  15342. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15343. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15344. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15345. msm_routing_put_voice_mixer),
  15346. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15347. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15348. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15349. msm_routing_put_voice_mixer),
  15350. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15351. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15352. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15353. msm_routing_put_voice_mixer),
  15354. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15355. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15356. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15357. msm_routing_put_voice_mixer),
  15358. };
  15359. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  15360. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15361. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15362. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15363. msm_routing_put_voice_mixer),
  15364. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15365. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15366. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15367. msm_routing_put_voice_mixer),
  15368. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15369. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15370. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15371. msm_routing_put_voice_mixer),
  15372. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15374. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15375. msm_routing_put_voice_mixer),
  15376. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15378. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15379. msm_routing_put_voice_mixer),
  15380. };
  15381. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  15382. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15383. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15384. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15385. msm_routing_put_voice_mixer),
  15386. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15387. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15388. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15389. msm_routing_put_voice_mixer),
  15390. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15391. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15392. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15393. msm_routing_put_voice_mixer),
  15394. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15396. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15397. msm_routing_put_voice_mixer),
  15398. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15400. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15401. msm_routing_put_voice_mixer),
  15402. };
  15403. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  15404. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15405. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15406. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15407. msm_routing_put_voice_mixer),
  15408. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15409. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15410. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15411. msm_routing_put_voice_mixer),
  15412. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15413. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15414. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15415. msm_routing_put_voice_mixer),
  15416. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15417. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15418. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15419. msm_routing_put_voice_mixer),
  15420. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15421. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15422. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15423. msm_routing_put_voice_mixer),
  15424. };
  15425. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  15426. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15427. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15428. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15429. msm_routing_put_voice_mixer),
  15430. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15431. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15432. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15433. msm_routing_put_voice_mixer),
  15434. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15435. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15436. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15437. msm_routing_put_voice_mixer),
  15438. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15439. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15440. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15441. msm_routing_put_voice_mixer),
  15442. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15443. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15444. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15445. msm_routing_put_voice_mixer),
  15446. };
  15447. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  15448. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15450. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15451. msm_routing_put_voice_mixer),
  15452. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15454. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15455. msm_routing_put_voice_stub_mixer),
  15456. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15457. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15458. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15459. msm_routing_put_voice_stub_mixer),
  15460. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15462. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15463. msm_routing_put_voice_mixer),
  15464. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15466. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15467. msm_routing_put_voice_mixer),
  15468. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15469. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15470. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15471. msm_routing_put_voice_mixer),
  15472. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15473. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15474. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15475. msm_routing_put_voice_mixer),
  15476. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15477. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15478. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15479. msm_routing_put_voice_mixer),
  15480. };
  15481. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  15482. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15483. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15484. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15485. msm_routing_put_voice_mixer),
  15486. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15487. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15488. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15489. msm_routing_put_voice_stub_mixer),
  15490. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15491. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15492. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15493. msm_routing_put_voice_stub_mixer),
  15494. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15496. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15497. msm_routing_put_voice_mixer),
  15498. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15499. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15500. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15501. msm_routing_put_voice_mixer),
  15502. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15504. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15505. msm_routing_put_voice_mixer),
  15506. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15508. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15509. msm_routing_put_voice_mixer),
  15510. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15512. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15513. msm_routing_put_voice_mixer),
  15514. };
  15515. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  15516. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15517. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15518. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15519. msm_routing_put_voice_mixer),
  15520. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15521. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15522. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15523. msm_routing_put_voice_stub_mixer),
  15524. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15525. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15526. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15527. msm_routing_put_voice_stub_mixer),
  15528. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15529. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15530. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15531. msm_routing_put_voice_mixer),
  15532. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15534. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15535. msm_routing_put_voice_mixer),
  15536. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15538. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15539. msm_routing_put_voice_mixer),
  15540. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15542. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15543. msm_routing_put_voice_mixer),
  15544. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15545. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15546. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15547. msm_routing_put_voice_mixer),
  15548. };
  15549. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  15550. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15551. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15552. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15553. msm_routing_put_voice_mixer),
  15554. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15555. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15556. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15557. msm_routing_put_voice_stub_mixer),
  15558. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15559. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15560. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15561. msm_routing_put_voice_stub_mixer),
  15562. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15564. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15565. msm_routing_put_voice_mixer),
  15566. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15568. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15569. msm_routing_put_voice_mixer),
  15570. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15571. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15572. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15573. msm_routing_put_voice_mixer),
  15574. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15575. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15576. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15577. msm_routing_put_voice_mixer),
  15578. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15579. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15580. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15581. msm_routing_put_voice_mixer),
  15582. };
  15583. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  15584. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15585. MSM_BACKEND_DAI_EXTPROC_RX,
  15586. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15587. msm_routing_put_voice_mixer),
  15588. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15589. MSM_BACKEND_DAI_EXTPROC_RX,
  15590. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15591. msm_routing_put_voice_mixer),
  15592. };
  15593. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  15594. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15595. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15596. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15597. msm_routing_put_voice_mixer),
  15598. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15599. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15600. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15601. msm_routing_put_voice_mixer),
  15602. };
  15603. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  15604. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15605. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15606. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15607. msm_routing_put_voice_mixer),
  15608. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15609. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15610. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15611. msm_routing_put_voice_mixer),
  15612. };
  15613. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  15614. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  15615. MSM_BACKEND_DAI_PRI_I2S_TX,
  15616. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15617. msm_routing_put_voice_mixer),
  15618. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  15619. MSM_BACKEND_DAI_MI2S_TX,
  15620. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15621. msm_routing_put_voice_mixer),
  15622. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  15623. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15624. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15625. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  15626. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15627. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15628. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  15629. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15630. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15631. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15632. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15633. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15634. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15635. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15636. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15637. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15638. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15639. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15640. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15641. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15642. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15643. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15644. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15645. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15646. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15647. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15648. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15649. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  15650. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15651. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15652. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  15653. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15654. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15655. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15656. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15657. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15658. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15660. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15661. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  15662. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15663. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15664. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  15665. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15666. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15667. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  15668. MSM_BACKEND_DAI_USB_TX,
  15669. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15670. msm_routing_put_voice_mixer),
  15671. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15673. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15674. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15675. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15676. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15677. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15678. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15679. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15680. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15681. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15682. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15683. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15685. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15686. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15687. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15688. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15689. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15690. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15691. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15692. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  15693. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15694. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15695. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  15696. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  15697. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15698. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  15700. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15701. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15702. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15703. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15704. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  15705. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15706. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15707. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  15708. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15709. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15710. };
  15711. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  15712. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  15713. MSM_BACKEND_DAI_PRI_I2S_TX,
  15714. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15715. msm_routing_put_voice_mixer),
  15716. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  15717. MSM_BACKEND_DAI_MI2S_TX,
  15718. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15719. msm_routing_put_voice_mixer),
  15720. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  15721. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15722. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15723. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  15724. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15725. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15726. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  15727. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15728. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15729. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15730. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15731. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15732. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15733. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15734. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15735. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15737. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15738. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15739. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15740. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15741. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15742. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15743. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15744. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15745. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15746. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15747. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15749. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15750. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15752. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15753. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15754. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15755. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15756. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  15757. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15758. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15759. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15761. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15762. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  15763. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15764. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15765. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  15766. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15767. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15768. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15769. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15770. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15771. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15772. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15773. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15774. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15775. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15776. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15777. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15778. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15779. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15780. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15781. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15782. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15783. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15784. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15785. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15786. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  15787. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15788. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15789. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  15790. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  15791. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15792. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  15793. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  15794. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15795. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15796. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15797. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15798. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  15799. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15800. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15801. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  15802. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15803. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15804. };
  15805. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  15806. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  15807. MSM_BACKEND_DAI_PRI_I2S_TX,
  15808. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15809. msm_routing_put_voice_mixer),
  15810. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  15811. MSM_BACKEND_DAI_MI2S_TX,
  15812. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15813. msm_routing_put_voice_mixer),
  15814. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  15815. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15816. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15817. msm_routing_put_voice_mixer),
  15818. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  15819. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15820. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15821. msm_routing_put_voice_mixer),
  15822. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  15823. MSM_BACKEND_DAI_AFE_PCM_TX,
  15824. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15825. msm_routing_put_voice_mixer),
  15826. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15827. MSM_BACKEND_DAI_AUXPCM_TX,
  15828. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15829. msm_routing_put_voice_mixer),
  15830. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15831. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15832. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15833. msm_routing_put_voice_mixer),
  15834. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15835. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15836. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15837. msm_routing_put_voice_mixer),
  15838. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15839. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15840. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15841. msm_routing_put_voice_mixer),
  15842. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15843. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15844. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15845. msm_routing_put_voice_mixer),
  15846. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15847. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15848. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15849. msm_routing_put_voice_mixer),
  15850. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  15851. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15852. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15853. msm_routing_put_voice_mixer),
  15854. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  15855. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15856. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15857. msm_routing_put_voice_mixer),
  15858. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15860. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15861. msm_routing_put_voice_mixer),
  15862. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  15863. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15864. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15865. msm_routing_put_voice_mixer),
  15866. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15868. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15869. msm_routing_put_voice_mixer),
  15870. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  15871. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15872. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15873. msm_routing_put_voice_mixer),
  15874. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  15875. MSM_BACKEND_DAI_USB_TX,
  15876. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15877. msm_routing_put_voice_mixer),
  15878. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15880. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15881. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15882. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15883. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15884. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15885. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15886. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15887. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15888. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15889. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15890. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15892. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15893. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15894. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15895. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15896. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  15897. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  15898. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15899. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  15901. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15902. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  15903. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  15904. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15905. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15906. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15907. msm_routing_put_voice_mixer),
  15908. };
  15909. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  15910. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15911. MSM_BACKEND_DAI_EXTPROC_TX,
  15912. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15913. msm_routing_put_voice_stub_mixer),
  15914. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15916. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15917. msm_routing_put_voice_stub_mixer),
  15918. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15919. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15920. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15921. msm_routing_put_voice_stub_mixer),
  15922. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15923. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15924. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15925. msm_routing_put_voice_stub_mixer),
  15926. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15927. MSM_BACKEND_DAI_MI2S_TX,
  15928. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15929. msm_routing_put_voice_stub_mixer),
  15930. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15931. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15932. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15933. msm_routing_put_voice_stub_mixer),
  15934. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15935. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15936. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15937. msm_routing_put_voice_stub_mixer),
  15938. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15939. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15940. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15941. msm_routing_put_voice_stub_mixer),
  15942. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15943. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15944. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15945. msm_routing_put_voice_stub_mixer),
  15946. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15947. MSM_BACKEND_DAI_AUXPCM_TX,
  15948. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15949. msm_routing_put_voice_stub_mixer),
  15950. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15951. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15952. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15953. msm_routing_put_voice_stub_mixer),
  15954. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15955. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15956. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15957. msm_routing_put_voice_stub_mixer),
  15958. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15959. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15960. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15961. msm_routing_put_voice_stub_mixer),
  15962. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15963. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15964. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15965. msm_routing_put_voice_stub_mixer),
  15966. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15967. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15968. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15969. msm_routing_put_voice_stub_mixer),
  15970. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15972. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15973. msm_routing_put_voice_stub_mixer),
  15974. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15975. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15976. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15977. msm_routing_put_voice_stub_mixer),
  15978. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_AFE_PCM_TX,
  15980. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15981. msm_routing_put_voice_stub_mixer),
  15982. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15983. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15984. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15985. msm_routing_put_voice_stub_mixer),
  15986. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15987. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15988. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15989. msm_routing_put_voice_stub_mixer),
  15990. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15991. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  15992. 1, 0, msm_routing_get_voice_stub_mixer,
  15993. msm_routing_put_voice_stub_mixer),
  15994. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15995. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  15996. 1, 0, msm_routing_get_voice_stub_mixer,
  15997. msm_routing_put_voice_stub_mixer),
  15998. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16000. 1, 0, msm_routing_get_voice_stub_mixer,
  16001. msm_routing_put_voice_stub_mixer),
  16002. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16003. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16004. 1, 0, msm_routing_get_voice_stub_mixer,
  16005. msm_routing_put_voice_stub_mixer),
  16006. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16008. 1, 0, msm_routing_get_voice_stub_mixer,
  16009. msm_routing_put_voice_stub_mixer),
  16010. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16012. 1, 0, msm_routing_get_voice_stub_mixer,
  16013. msm_routing_put_voice_stub_mixer),
  16014. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16016. 1, 0, msm_routing_get_voice_stub_mixer,
  16017. msm_routing_put_voice_stub_mixer),
  16018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16020. 1, 0, msm_routing_get_voice_stub_mixer,
  16021. msm_routing_put_voice_stub_mixer),
  16022. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16024. 1, 0, msm_routing_get_voice_stub_mixer,
  16025. msm_routing_put_voice_stub_mixer),
  16026. };
  16027. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16028. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_EXTPROC_TX,
  16030. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16031. msm_routing_put_voice_stub_mixer),
  16032. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16034. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16035. msm_routing_put_voice_stub_mixer),
  16036. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16038. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16039. msm_routing_put_voice_stub_mixer),
  16040. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_AUXPCM_TX,
  16042. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16043. msm_routing_put_voice_stub_mixer),
  16044. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16045. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16046. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16047. msm_routing_put_voice_stub_mixer),
  16048. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16049. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16050. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16051. msm_routing_put_voice_stub_mixer),
  16052. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16053. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16054. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16055. msm_routing_put_voice_stub_mixer),
  16056. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16057. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16058. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16059. msm_routing_put_voice_stub_mixer),
  16060. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16061. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16062. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16063. msm_routing_put_voice_stub_mixer),
  16064. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16065. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16066. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16067. msm_routing_put_voice_stub_mixer),
  16068. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16069. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16070. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16071. msm_routing_put_voice_stub_mixer),
  16072. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16073. MSM_BACKEND_DAI_AFE_PCM_TX,
  16074. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16075. msm_routing_put_voice_stub_mixer),
  16076. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16077. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16078. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16079. msm_routing_put_voice_stub_mixer),
  16080. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16081. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16082. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16083. msm_routing_put_voice_stub_mixer),
  16084. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16085. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16086. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16087. msm_routing_put_voice_stub_mixer),
  16088. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16089. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16090. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16091. msm_routing_put_voice_stub_mixer),
  16092. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16093. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16094. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16095. msm_routing_put_voice_stub_mixer),
  16096. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16097. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16098. 1, 0, msm_routing_get_voice_stub_mixer,
  16099. msm_routing_put_voice_stub_mixer),
  16100. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16101. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16102. 1, 0, msm_routing_get_voice_stub_mixer,
  16103. msm_routing_put_voice_stub_mixer),
  16104. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16105. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16106. 1, 0, msm_routing_get_voice_stub_mixer,
  16107. msm_routing_put_voice_stub_mixer),
  16108. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16109. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16110. 1, 0, msm_routing_get_voice_stub_mixer,
  16111. msm_routing_put_voice_stub_mixer),
  16112. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16113. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16114. 1, 0, msm_routing_get_voice_stub_mixer,
  16115. msm_routing_put_voice_stub_mixer),
  16116. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16117. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16118. 1, 0, msm_routing_get_voice_stub_mixer,
  16119. msm_routing_put_voice_stub_mixer),
  16120. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16121. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  16122. 1, 0, msm_routing_get_voice_stub_mixer,
  16123. msm_routing_put_voice_stub_mixer),
  16124. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16125. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  16126. 1, 0, msm_routing_get_voice_stub_mixer,
  16127. msm_routing_put_voice_stub_mixer),
  16128. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16129. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  16130. 1, 0, msm_routing_get_voice_stub_mixer,
  16131. msm_routing_put_voice_stub_mixer),
  16132. };
  16133. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  16134. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16135. MSM_BACKEND_DAI_EXTPROC_TX,
  16136. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16137. msm_routing_put_voice_stub_mixer),
  16138. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16139. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16140. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16141. msm_routing_put_voice_stub_mixer),
  16142. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16143. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16144. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16145. msm_routing_put_voice_stub_mixer),
  16146. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16147. MSM_BACKEND_DAI_AUXPCM_TX,
  16148. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16149. msm_routing_put_voice_stub_mixer),
  16150. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16151. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16152. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16153. msm_routing_put_voice_stub_mixer),
  16154. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16156. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16157. msm_routing_put_voice_stub_mixer),
  16158. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16159. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16160. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16161. msm_routing_put_voice_stub_mixer),
  16162. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16164. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16165. msm_routing_put_voice_stub_mixer),
  16166. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16167. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16168. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16169. msm_routing_put_voice_stub_mixer),
  16170. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16171. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16172. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16173. msm_routing_put_voice_stub_mixer),
  16174. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16175. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16176. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16177. msm_routing_put_voice_stub_mixer),
  16178. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16179. MSM_BACKEND_DAI_AFE_PCM_TX,
  16180. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16181. msm_routing_put_voice_stub_mixer),
  16182. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16183. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16184. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16185. msm_routing_put_voice_stub_mixer),
  16186. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16187. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16188. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16189. msm_routing_put_voice_stub_mixer),
  16190. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16191. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16192. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16193. msm_routing_put_voice_stub_mixer),
  16194. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16195. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16196. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16197. msm_routing_put_voice_stub_mixer),
  16198. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16199. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16200. 1, 0, msm_routing_get_voice_stub_mixer,
  16201. msm_routing_put_voice_stub_mixer),
  16202. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16203. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16204. 1, 0, msm_routing_get_voice_stub_mixer,
  16205. msm_routing_put_voice_stub_mixer),
  16206. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16207. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16208. 1, 0, msm_routing_get_voice_stub_mixer,
  16209. msm_routing_put_voice_stub_mixer),
  16210. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16211. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16212. 1, 0, msm_routing_get_voice_stub_mixer,
  16213. msm_routing_put_voice_stub_mixer),
  16214. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16215. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16216. 1, 0, msm_routing_get_voice_stub_mixer,
  16217. msm_routing_put_voice_stub_mixer),
  16218. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16219. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16220. 1, 0, msm_routing_get_voice_stub_mixer,
  16221. msm_routing_put_voice_stub_mixer),
  16222. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16223. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  16224. 1, 0, msm_routing_get_voice_stub_mixer,
  16225. msm_routing_put_voice_stub_mixer),
  16226. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16227. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  16228. 1, 0, msm_routing_get_voice_stub_mixer,
  16229. msm_routing_put_voice_stub_mixer),
  16230. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16231. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  16232. 1, 0, msm_routing_get_voice_stub_mixer,
  16233. msm_routing_put_voice_stub_mixer),
  16234. };
  16235. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  16236. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  16237. MSM_BACKEND_DAI_PRI_I2S_TX,
  16238. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16239. msm_routing_put_voice_mixer),
  16240. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  16241. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16242. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16243. msm_routing_put_voice_mixer),
  16244. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  16245. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16246. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  16247. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16248. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  16249. MSM_BACKEND_DAI_AFE_PCM_TX,
  16250. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16251. msm_routing_put_voice_mixer),
  16252. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_AUXPCM_TX,
  16254. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16255. msm_routing_put_voice_mixer),
  16256. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16258. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16259. msm_routing_put_voice_mixer),
  16260. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16261. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16262. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16263. msm_routing_put_voice_mixer),
  16264. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16265. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16266. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16267. msm_routing_put_voice_mixer),
  16268. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16269. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16270. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16271. msm_routing_put_voice_mixer),
  16272. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16273. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16274. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16275. msm_routing_put_voice_mixer),
  16276. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  16277. MSM_BACKEND_DAI_MI2S_TX,
  16278. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16279. msm_routing_put_voice_mixer),
  16280. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16281. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16282. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16283. msm_routing_put_voice_mixer),
  16284. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16285. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16286. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16287. msm_routing_put_voice_mixer),
  16288. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16289. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16290. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16291. msm_routing_put_voice_mixer),
  16292. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  16293. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16294. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16295. msm_routing_put_voice_mixer),
  16296. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  16297. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16298. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16299. msm_routing_put_voice_mixer),
  16300. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  16301. MSM_BACKEND_DAI_USB_TX,
  16302. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16303. msm_routing_put_voice_mixer),
  16304. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16305. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16306. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16307. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16308. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16309. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16310. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16311. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16312. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16313. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16314. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16315. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16316. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16317. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16318. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16319. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16320. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16321. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16322. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  16323. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  16324. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16325. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  16326. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  16327. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16328. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  16329. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  16330. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16331. };
  16332. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  16333. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16334. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16335. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16336. msm_routing_put_port_mixer),
  16337. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16338. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16339. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16340. msm_routing_put_port_mixer),
  16341. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16342. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16343. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16344. msm_routing_put_port_mixer),
  16345. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16346. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16347. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16348. msm_routing_put_port_mixer),
  16349. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16350. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16351. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16352. msm_routing_put_port_mixer),
  16353. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16354. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16355. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16356. msm_routing_put_port_mixer),
  16357. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16358. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16359. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16360. msm_routing_put_port_mixer),
  16361. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16362. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16363. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16364. msm_routing_put_port_mixer),
  16365. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16366. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16367. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16368. msm_routing_put_port_mixer),
  16369. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16370. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16371. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16372. msm_routing_put_port_mixer),
  16373. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16374. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16375. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16376. msm_routing_put_port_mixer),
  16377. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16378. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16379. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16380. msm_routing_put_port_mixer),
  16381. };
  16382. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  16383. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16384. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16385. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16386. msm_routing_put_port_mixer),
  16387. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16388. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16389. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16390. msm_routing_put_port_mixer),
  16391. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16392. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16393. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16394. msm_routing_put_port_mixer),
  16395. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16396. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16397. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16398. msm_routing_put_port_mixer),
  16399. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16400. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16401. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16402. msm_routing_put_port_mixer),
  16403. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16404. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16405. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16406. msm_routing_put_port_mixer),
  16407. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16408. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16409. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16410. msm_routing_put_port_mixer),
  16411. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16412. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16413. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16414. msm_routing_put_port_mixer),
  16415. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16416. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16417. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16418. msm_routing_put_port_mixer),
  16419. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16420. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16421. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16422. msm_routing_put_port_mixer),
  16423. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16424. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16425. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16426. msm_routing_put_port_mixer),
  16427. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16428. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16429. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16430. msm_routing_put_port_mixer),
  16431. };
  16432. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  16433. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16434. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16435. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16436. msm_routing_put_port_mixer),
  16437. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16438. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16439. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16440. msm_routing_put_port_mixer),
  16441. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16442. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16443. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16444. msm_routing_put_port_mixer),
  16445. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16446. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16447. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16448. msm_routing_put_port_mixer),
  16449. };
  16450. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  16451. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16452. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16454. msm_routing_put_port_mixer),
  16455. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16456. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16457. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16458. msm_routing_put_port_mixer),
  16459. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16460. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16461. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16462. msm_routing_put_port_mixer),
  16463. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16464. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16465. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16466. msm_routing_put_port_mixer),
  16467. };
  16468. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  16469. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16470. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16471. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16472. msm_routing_put_port_mixer),
  16473. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16474. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16475. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16476. msm_routing_put_port_mixer),
  16477. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16478. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16479. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16480. msm_routing_put_port_mixer),
  16481. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16482. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16483. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16484. msm_routing_put_port_mixer),
  16485. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16486. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16487. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16488. msm_routing_put_port_mixer),
  16489. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16490. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16491. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16492. msm_routing_put_port_mixer),
  16493. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16494. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16495. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16496. msm_routing_put_port_mixer),
  16497. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16498. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16499. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16500. msm_routing_put_port_mixer),
  16501. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16502. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16503. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16504. msm_routing_put_port_mixer),
  16505. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16506. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16507. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16508. msm_routing_put_port_mixer),
  16509. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16510. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16511. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16512. msm_routing_put_port_mixer),
  16513. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16514. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16515. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16516. msm_routing_put_port_mixer),
  16517. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16518. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16519. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16520. msm_routing_put_port_mixer),
  16521. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16522. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16523. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16524. msm_routing_put_port_mixer),
  16525. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16527. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16528. msm_routing_put_port_mixer),
  16529. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16530. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16531. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16532. msm_routing_put_port_mixer),
  16533. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16534. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16535. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16536. msm_routing_put_port_mixer),
  16537. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16538. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16539. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16540. msm_routing_put_port_mixer),
  16541. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16542. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16543. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16544. msm_routing_put_port_mixer),
  16545. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  16546. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16547. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16548. msm_routing_put_port_mixer),
  16549. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  16550. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16551. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16552. msm_routing_put_port_mixer),
  16553. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  16554. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16555. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16556. msm_routing_put_port_mixer),
  16557. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  16558. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16559. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16560. msm_routing_put_port_mixer),
  16561. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  16562. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16563. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16564. msm_routing_put_port_mixer),
  16565. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  16566. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16567. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16568. msm_routing_put_port_mixer),
  16569. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16570. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16571. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16572. msm_routing_put_port_mixer),
  16573. };
  16574. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  16575. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16576. MSM_BACKEND_DAI_AUXPCM_RX,
  16577. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16578. msm_routing_put_port_mixer),
  16579. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16580. MSM_BACKEND_DAI_AUXPCM_RX,
  16581. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16582. msm_routing_put_port_mixer),
  16583. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16584. MSM_BACKEND_DAI_AUXPCM_RX,
  16585. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16586. msm_routing_put_port_mixer),
  16587. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16588. MSM_BACKEND_DAI_AUXPCM_RX,
  16589. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16590. msm_routing_put_port_mixer),
  16591. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16592. MSM_BACKEND_DAI_AUXPCM_RX,
  16593. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16594. msm_routing_put_port_mixer),
  16595. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16596. MSM_BACKEND_DAI_AUXPCM_RX,
  16597. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16598. msm_routing_put_port_mixer),
  16599. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16600. MSM_BACKEND_DAI_AUXPCM_RX,
  16601. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16602. msm_routing_put_port_mixer),
  16603. };
  16604. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  16605. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16606. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16607. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16608. msm_routing_put_port_mixer),
  16609. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16610. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16611. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16612. msm_routing_put_port_mixer),
  16613. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16614. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16615. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16616. msm_routing_put_port_mixer),
  16617. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16619. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16620. msm_routing_put_port_mixer),
  16621. };
  16622. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  16623. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16624. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16625. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16626. msm_routing_put_port_mixer),
  16627. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16628. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16629. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16630. msm_routing_put_port_mixer),
  16631. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16632. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16633. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16634. msm_routing_put_port_mixer),
  16635. };
  16636. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  16637. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16638. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16639. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16640. msm_routing_put_port_mixer),
  16641. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16642. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16643. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16644. msm_routing_put_port_mixer),
  16645. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16646. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16647. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16648. msm_routing_put_port_mixer),
  16649. };
  16650. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  16651. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16652. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16653. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16654. msm_routing_put_port_mixer),
  16655. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16656. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16657. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16658. msm_routing_put_port_mixer),
  16659. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16660. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16661. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16662. msm_routing_put_port_mixer),
  16663. };
  16664. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  16665. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16666. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16667. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16668. msm_routing_put_port_mixer),
  16669. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16670. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16671. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16672. msm_routing_put_port_mixer),
  16673. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16674. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16675. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16676. msm_routing_put_port_mixer),
  16677. };
  16678. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  16679. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16680. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16681. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16682. msm_routing_put_port_mixer),
  16683. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16684. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16685. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  16686. msm_routing_put_port_mixer),
  16687. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16688. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16689. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16690. msm_routing_put_port_mixer),
  16691. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16692. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16693. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16694. msm_routing_put_port_mixer),
  16695. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16696. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16697. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16698. msm_routing_put_port_mixer),
  16699. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16700. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16701. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16702. msm_routing_put_port_mixer),
  16703. };
  16704. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  16705. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  16706. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16707. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  16708. msm_routing_put_port_mixer),
  16709. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16710. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16711. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16712. msm_routing_put_port_mixer),
  16713. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  16714. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16715. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  16716. msm_routing_put_port_mixer),
  16717. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  16718. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16719. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  16720. msm_routing_put_port_mixer),
  16721. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  16722. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16723. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  16724. msm_routing_put_port_mixer),
  16725. };
  16726. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  16727. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16728. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16729. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16730. msm_routing_put_port_mixer),
  16731. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16732. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16733. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16734. msm_routing_put_port_mixer),
  16735. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16736. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16737. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16738. msm_routing_put_port_mixer),
  16739. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16740. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16741. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16742. msm_routing_put_port_mixer),
  16743. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16744. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16745. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16746. msm_routing_put_port_mixer),
  16747. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16748. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16749. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16750. msm_routing_put_port_mixer),
  16751. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16752. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16753. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16754. msm_routing_put_port_mixer),
  16755. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16756. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16757. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16758. msm_routing_put_port_mixer),
  16759. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16760. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16761. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16762. msm_routing_put_port_mixer),
  16763. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16764. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16765. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16766. msm_routing_put_port_mixer),
  16767. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16768. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16769. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16770. msm_routing_put_port_mixer),
  16771. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16772. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16773. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16774. msm_routing_put_port_mixer),
  16775. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16776. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16777. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16778. msm_routing_put_port_mixer),
  16779. };
  16780. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  16781. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16782. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16783. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16784. msm_routing_put_port_mixer),
  16785. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16786. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16787. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16788. msm_routing_put_port_mixer),
  16789. };
  16790. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  16791. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16792. MSM_BACKEND_DAI_AFE_PCM_RX,
  16793. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16794. msm_routing_put_port_mixer),
  16795. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16796. MSM_BACKEND_DAI_AFE_PCM_RX,
  16797. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16798. msm_routing_put_port_mixer),
  16799. };
  16800. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  16801. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16802. MSM_BACKEND_DAI_HDMI_RX,
  16803. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16804. msm_routing_put_port_mixer),
  16805. };
  16806. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  16807. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16808. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  16809. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16810. msm_routing_put_port_mixer),
  16811. };
  16812. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  16813. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16814. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  16815. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16816. msm_routing_put_port_mixer),
  16817. };
  16818. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  16819. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16820. MSM_BACKEND_DAI_SEC_I2S_RX,
  16821. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16822. msm_routing_put_port_mixer),
  16823. };
  16824. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  16825. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16826. MSM_BACKEND_DAI_MI2S_RX,
  16827. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16828. msm_routing_put_port_mixer),
  16829. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16830. MSM_BACKEND_DAI_MI2S_RX,
  16831. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16832. msm_routing_put_port_mixer),
  16833. };
  16834. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  16835. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16836. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16837. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16838. msm_routing_put_port_mixer),
  16839. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16840. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16841. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16842. msm_routing_put_port_mixer),
  16843. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16844. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16845. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16846. msm_routing_put_port_mixer),
  16847. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16848. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16849. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16850. msm_routing_put_port_mixer),
  16851. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16853. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16854. msm_routing_put_port_mixer),
  16855. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16856. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16857. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16858. msm_routing_put_port_mixer),
  16859. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16860. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16861. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16862. msm_routing_put_port_mixer),
  16863. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16864. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16865. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16866. msm_routing_put_port_mixer),
  16867. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16868. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16869. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16870. msm_routing_put_port_mixer),
  16871. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16872. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16873. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16874. msm_routing_put_port_mixer),
  16875. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16876. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16877. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16878. msm_routing_put_port_mixer),
  16879. };
  16880. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  16881. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  16882. MSM_BACKEND_DAI_USB_RX,
  16883. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  16884. msm_routing_put_port_mixer),
  16885. };
  16886. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  16887. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16888. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16889. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16890. msm_routing_put_port_mixer),
  16891. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16892. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16893. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16894. msm_routing_put_port_mixer),
  16895. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16896. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16897. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16898. msm_routing_put_port_mixer),
  16899. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16900. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16901. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16902. msm_routing_put_port_mixer),
  16903. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16904. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16905. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16906. msm_routing_put_port_mixer),
  16907. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16908. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16909. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16910. msm_routing_put_port_mixer),
  16911. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16912. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16913. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16914. msm_routing_put_port_mixer),
  16915. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16916. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16917. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16918. msm_routing_put_port_mixer),
  16919. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16920. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16921. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16922. msm_routing_put_port_mixer),
  16923. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16924. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16925. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16926. msm_routing_put_port_mixer),
  16927. };
  16928. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  16929. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16930. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16931. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16932. msm_routing_put_port_mixer),
  16933. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16934. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16935. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16936. msm_routing_put_port_mixer),
  16937. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16938. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16939. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16940. msm_routing_put_port_mixer),
  16941. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16942. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16943. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16944. msm_routing_put_port_mixer),
  16945. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16946. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16947. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16948. msm_routing_put_port_mixer),
  16949. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16950. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16951. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16952. msm_routing_put_port_mixer),
  16953. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16955. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16956. msm_routing_put_port_mixer),
  16957. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16958. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16959. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16960. msm_routing_put_port_mixer),
  16961. };
  16962. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  16963. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16964. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16965. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16966. msm_routing_put_port_mixer),
  16967. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16968. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16969. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16970. msm_routing_put_port_mixer),
  16971. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16972. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16973. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16974. msm_routing_put_port_mixer),
  16975. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16976. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16977. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16978. msm_routing_put_port_mixer),
  16979. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16980. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16981. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16982. msm_routing_put_port_mixer),
  16983. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16984. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16985. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16986. msm_routing_put_port_mixer),
  16987. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16988. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16989. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16990. msm_routing_put_port_mixer),
  16991. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16992. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16993. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16994. msm_routing_put_port_mixer),
  16995. };
  16996. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  16997. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16998. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16999. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17000. msm_routing_get_port_mixer,
  17001. msm_routing_put_port_mixer),
  17002. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17003. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17004. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17005. msm_routing_get_port_mixer,
  17006. msm_routing_put_port_mixer),
  17007. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17008. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17009. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17010. msm_routing_get_port_mixer,
  17011. msm_routing_put_port_mixer),
  17012. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17013. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17014. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17015. msm_routing_get_port_mixer,
  17016. msm_routing_put_port_mixer),
  17017. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17018. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17019. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17020. msm_routing_get_port_mixer,
  17021. msm_routing_put_port_mixer),
  17022. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17023. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17024. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17025. msm_routing_get_port_mixer,
  17026. msm_routing_put_port_mixer),
  17027. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17028. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17029. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17030. msm_routing_get_port_mixer,
  17031. msm_routing_put_port_mixer),
  17032. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17033. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17034. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17035. msm_routing_get_port_mixer,
  17036. msm_routing_put_port_mixer),
  17037. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17038. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17039. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17040. msm_routing_get_port_mixer,
  17041. msm_routing_put_port_mixer),
  17042. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17043. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17044. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17045. msm_routing_get_port_mixer,
  17046. msm_routing_put_port_mixer),
  17047. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17048. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17049. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17050. msm_routing_get_port_mixer,
  17051. msm_routing_put_port_mixer),
  17052. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17053. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17054. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17055. msm_routing_get_port_mixer,
  17056. msm_routing_put_port_mixer),
  17057. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17058. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17059. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17060. msm_routing_get_port_mixer,
  17061. msm_routing_put_port_mixer),
  17062. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17063. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17064. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17065. msm_routing_get_port_mixer,
  17066. msm_routing_put_port_mixer),
  17067. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17068. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17069. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17070. msm_routing_get_port_mixer,
  17071. msm_routing_put_port_mixer),
  17072. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17073. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17074. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17075. msm_routing_get_port_mixer,
  17076. msm_routing_put_port_mixer),
  17077. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17078. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17079. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17080. msm_routing_get_port_mixer,
  17081. msm_routing_put_port_mixer),
  17082. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17083. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17084. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17085. msm_routing_get_port_mixer,
  17086. msm_routing_put_port_mixer),
  17087. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17088. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17089. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17090. msm_routing_get_port_mixer,
  17091. msm_routing_put_port_mixer),
  17092. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17093. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17094. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17095. msm_routing_get_port_mixer,
  17096. msm_routing_put_port_mixer),
  17097. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17098. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17099. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17100. msm_routing_get_port_mixer,
  17101. msm_routing_put_port_mixer),
  17102. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17103. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17104. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17105. msm_routing_get_port_mixer,
  17106. msm_routing_put_port_mixer),
  17107. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17108. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17109. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17110. msm_routing_get_port_mixer,
  17111. msm_routing_put_port_mixer),
  17112. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17113. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17114. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17115. msm_routing_get_port_mixer,
  17116. msm_routing_put_port_mixer),
  17117. };
  17118. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  17119. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17120. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17121. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17122. msm_routing_get_port_mixer,
  17123. msm_routing_put_port_mixer),
  17124. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17125. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17126. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17127. msm_routing_get_port_mixer,
  17128. msm_routing_put_port_mixer),
  17129. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17130. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17131. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17132. msm_routing_get_port_mixer,
  17133. msm_routing_put_port_mixer),
  17134. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17135. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17136. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17137. msm_routing_get_port_mixer,
  17138. msm_routing_put_port_mixer),
  17139. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17140. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17141. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17142. msm_routing_get_port_mixer,
  17143. msm_routing_put_port_mixer),
  17144. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17145. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17146. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17147. msm_routing_get_port_mixer,
  17148. msm_routing_put_port_mixer),
  17149. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17150. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17151. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17152. msm_routing_get_port_mixer,
  17153. msm_routing_put_port_mixer),
  17154. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17155. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17156. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17157. msm_routing_get_port_mixer,
  17158. msm_routing_put_port_mixer),
  17159. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17160. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17161. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17162. msm_routing_get_port_mixer,
  17163. msm_routing_put_port_mixer),
  17164. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17165. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17166. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17167. msm_routing_get_port_mixer,
  17168. msm_routing_put_port_mixer),
  17169. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17170. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17171. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17172. msm_routing_get_port_mixer,
  17173. msm_routing_put_port_mixer),
  17174. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17175. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17176. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17177. msm_routing_get_port_mixer,
  17178. msm_routing_put_port_mixer),
  17179. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17180. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17181. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17182. msm_routing_get_port_mixer,
  17183. msm_routing_put_port_mixer),
  17184. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17185. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17186. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17187. msm_routing_get_port_mixer,
  17188. msm_routing_put_port_mixer),
  17189. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17190. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17191. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17192. msm_routing_get_port_mixer,
  17193. msm_routing_put_port_mixer),
  17194. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17195. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17196. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17197. msm_routing_get_port_mixer,
  17198. msm_routing_put_port_mixer),
  17199. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17200. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17201. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17202. msm_routing_get_port_mixer,
  17203. msm_routing_put_port_mixer),
  17204. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17205. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17206. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17207. msm_routing_get_port_mixer,
  17208. msm_routing_put_port_mixer),
  17209. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17210. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17211. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17212. msm_routing_get_port_mixer,
  17213. msm_routing_put_port_mixer),
  17214. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17215. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17216. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17217. msm_routing_get_port_mixer,
  17218. msm_routing_put_port_mixer),
  17219. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17220. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17221. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17222. msm_routing_get_port_mixer,
  17223. msm_routing_put_port_mixer),
  17224. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17225. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17226. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17227. msm_routing_get_port_mixer,
  17228. msm_routing_put_port_mixer),
  17229. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17230. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17231. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17232. msm_routing_get_port_mixer,
  17233. msm_routing_put_port_mixer),
  17234. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17235. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17236. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17237. msm_routing_get_port_mixer,
  17238. msm_routing_put_port_mixer),
  17239. };
  17240. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  17241. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17242. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17243. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17244. msm_routing_get_port_mixer,
  17245. msm_routing_put_port_mixer),
  17246. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17247. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17248. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17249. msm_routing_get_port_mixer,
  17250. msm_routing_put_port_mixer),
  17251. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17252. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17253. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17254. msm_routing_get_port_mixer,
  17255. msm_routing_put_port_mixer),
  17256. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17257. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17258. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17259. msm_routing_get_port_mixer,
  17260. msm_routing_put_port_mixer),
  17261. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17262. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17263. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17264. msm_routing_get_port_mixer,
  17265. msm_routing_put_port_mixer),
  17266. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17267. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17268. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17269. msm_routing_get_port_mixer,
  17270. msm_routing_put_port_mixer),
  17271. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17272. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17273. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17274. msm_routing_get_port_mixer,
  17275. msm_routing_put_port_mixer),
  17276. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17277. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17278. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17279. msm_routing_get_port_mixer,
  17280. msm_routing_put_port_mixer),
  17281. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17282. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17283. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17284. msm_routing_get_port_mixer,
  17285. msm_routing_put_port_mixer),
  17286. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17287. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17288. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17289. msm_routing_get_port_mixer,
  17290. msm_routing_put_port_mixer),
  17291. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17292. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17293. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17294. msm_routing_get_port_mixer,
  17295. msm_routing_put_port_mixer),
  17296. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17297. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17298. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17299. msm_routing_get_port_mixer,
  17300. msm_routing_put_port_mixer),
  17301. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17302. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17303. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17304. msm_routing_get_port_mixer,
  17305. msm_routing_put_port_mixer),
  17306. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17307. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17308. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17309. msm_routing_get_port_mixer,
  17310. msm_routing_put_port_mixer),
  17311. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17312. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17313. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17314. msm_routing_get_port_mixer,
  17315. msm_routing_put_port_mixer),
  17316. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17317. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17318. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17319. msm_routing_get_port_mixer,
  17320. msm_routing_put_port_mixer),
  17321. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17322. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17323. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17324. msm_routing_get_port_mixer,
  17325. msm_routing_put_port_mixer),
  17326. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17327. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17328. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17329. msm_routing_get_port_mixer,
  17330. msm_routing_put_port_mixer),
  17331. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17332. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17333. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17334. msm_routing_get_port_mixer,
  17335. msm_routing_put_port_mixer),
  17336. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17337. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17338. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17339. msm_routing_get_port_mixer,
  17340. msm_routing_put_port_mixer),
  17341. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17342. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17343. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17344. msm_routing_get_port_mixer,
  17345. msm_routing_put_port_mixer),
  17346. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17347. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17348. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17349. msm_routing_get_port_mixer,
  17350. msm_routing_put_port_mixer),
  17351. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17352. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17353. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17354. msm_routing_get_port_mixer,
  17355. msm_routing_put_port_mixer),
  17356. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17357. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17358. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17359. msm_routing_get_port_mixer,
  17360. msm_routing_put_port_mixer),
  17361. };
  17362. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  17363. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17364. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17365. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17366. msm_routing_get_port_mixer,
  17367. msm_routing_put_port_mixer),
  17368. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17369. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17370. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17371. msm_routing_get_port_mixer,
  17372. msm_routing_put_port_mixer),
  17373. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17374. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17375. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17376. msm_routing_get_port_mixer,
  17377. msm_routing_put_port_mixer),
  17378. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17379. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17380. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17381. msm_routing_get_port_mixer,
  17382. msm_routing_put_port_mixer),
  17383. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17384. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17385. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17386. msm_routing_get_port_mixer,
  17387. msm_routing_put_port_mixer),
  17388. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17389. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17390. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17391. msm_routing_get_port_mixer,
  17392. msm_routing_put_port_mixer),
  17393. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17394. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17395. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17396. msm_routing_get_port_mixer,
  17397. msm_routing_put_port_mixer),
  17398. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17399. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17400. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17401. msm_routing_get_port_mixer,
  17402. msm_routing_put_port_mixer),
  17403. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17404. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17405. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17406. msm_routing_get_port_mixer,
  17407. msm_routing_put_port_mixer),
  17408. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17409. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17410. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17411. msm_routing_get_port_mixer,
  17412. msm_routing_put_port_mixer),
  17413. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17414. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17415. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17416. msm_routing_get_port_mixer,
  17417. msm_routing_put_port_mixer),
  17418. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17419. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17420. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17421. msm_routing_get_port_mixer,
  17422. msm_routing_put_port_mixer),
  17423. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17424. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17425. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17426. msm_routing_get_port_mixer,
  17427. msm_routing_put_port_mixer),
  17428. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17429. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17430. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17431. msm_routing_get_port_mixer,
  17432. msm_routing_put_port_mixer),
  17433. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17434. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17435. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17436. msm_routing_get_port_mixer,
  17437. msm_routing_put_port_mixer),
  17438. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17439. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17440. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17441. msm_routing_get_port_mixer,
  17442. msm_routing_put_port_mixer),
  17443. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17444. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17445. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17446. msm_routing_get_port_mixer,
  17447. msm_routing_put_port_mixer),
  17448. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17449. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17450. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17451. msm_routing_get_port_mixer,
  17452. msm_routing_put_port_mixer),
  17453. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17454. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17455. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17456. msm_routing_get_port_mixer,
  17457. msm_routing_put_port_mixer),
  17458. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17459. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17460. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17461. msm_routing_get_port_mixer,
  17462. msm_routing_put_port_mixer),
  17463. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17464. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17465. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17466. msm_routing_get_port_mixer,
  17467. msm_routing_put_port_mixer),
  17468. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17469. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17470. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17471. msm_routing_get_port_mixer,
  17472. msm_routing_put_port_mixer),
  17473. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17474. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17475. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17476. msm_routing_get_port_mixer,
  17477. msm_routing_put_port_mixer),
  17478. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17479. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17480. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17481. msm_routing_get_port_mixer,
  17482. msm_routing_put_port_mixer),
  17483. };
  17484. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  17485. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17486. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17487. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17488. msm_routing_get_port_mixer,
  17489. msm_routing_put_port_mixer),
  17490. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17491. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17492. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17493. msm_routing_get_port_mixer,
  17494. msm_routing_put_port_mixer),
  17495. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17496. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17497. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17498. msm_routing_get_port_mixer,
  17499. msm_routing_put_port_mixer),
  17500. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17501. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17502. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17503. msm_routing_get_port_mixer,
  17504. msm_routing_put_port_mixer),
  17505. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17506. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17507. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17508. msm_routing_get_port_mixer,
  17509. msm_routing_put_port_mixer),
  17510. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17511. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17512. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17513. msm_routing_get_port_mixer,
  17514. msm_routing_put_port_mixer),
  17515. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17516. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17517. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17518. msm_routing_get_port_mixer,
  17519. msm_routing_put_port_mixer),
  17520. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17521. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17522. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17523. msm_routing_get_port_mixer,
  17524. msm_routing_put_port_mixer),
  17525. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17526. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17527. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17528. msm_routing_get_port_mixer,
  17529. msm_routing_put_port_mixer),
  17530. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17531. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17532. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17533. msm_routing_get_port_mixer,
  17534. msm_routing_put_port_mixer),
  17535. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17536. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17537. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17538. msm_routing_get_port_mixer,
  17539. msm_routing_put_port_mixer),
  17540. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17541. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17542. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17543. msm_routing_get_port_mixer,
  17544. msm_routing_put_port_mixer),
  17545. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17546. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17547. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17548. msm_routing_get_port_mixer,
  17549. msm_routing_put_port_mixer),
  17550. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17551. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17552. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17553. msm_routing_get_port_mixer,
  17554. msm_routing_put_port_mixer),
  17555. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17556. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17557. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17558. msm_routing_get_port_mixer,
  17559. msm_routing_put_port_mixer),
  17560. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17561. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17562. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17563. msm_routing_get_port_mixer,
  17564. msm_routing_put_port_mixer),
  17565. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17566. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17567. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17568. msm_routing_get_port_mixer,
  17569. msm_routing_put_port_mixer),
  17570. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17571. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17572. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17573. msm_routing_get_port_mixer,
  17574. msm_routing_put_port_mixer),
  17575. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17576. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17577. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17578. msm_routing_get_port_mixer,
  17579. msm_routing_put_port_mixer),
  17580. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17581. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17582. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17583. msm_routing_get_port_mixer,
  17584. msm_routing_put_port_mixer),
  17585. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17586. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17587. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17588. msm_routing_get_port_mixer,
  17589. msm_routing_put_port_mixer),
  17590. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17591. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17592. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17593. msm_routing_get_port_mixer,
  17594. msm_routing_put_port_mixer),
  17595. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17596. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17597. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17598. msm_routing_get_port_mixer,
  17599. msm_routing_put_port_mixer),
  17600. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17601. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17602. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17603. msm_routing_get_port_mixer,
  17604. msm_routing_put_port_mixer),
  17605. };
  17606. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  17607. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17608. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17609. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17610. msm_routing_get_port_mixer,
  17611. msm_routing_put_port_mixer),
  17612. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17613. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17614. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17615. msm_routing_get_port_mixer,
  17616. msm_routing_put_port_mixer),
  17617. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17618. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17619. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17620. msm_routing_get_port_mixer,
  17621. msm_routing_put_port_mixer),
  17622. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17623. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17624. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17625. msm_routing_get_port_mixer,
  17626. msm_routing_put_port_mixer),
  17627. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17628. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17629. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17630. msm_routing_get_port_mixer,
  17631. msm_routing_put_port_mixer),
  17632. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17633. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17634. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17635. msm_routing_get_port_mixer,
  17636. msm_routing_put_port_mixer),
  17637. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17638. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17639. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17640. msm_routing_get_port_mixer,
  17641. msm_routing_put_port_mixer),
  17642. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17643. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17644. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17645. msm_routing_get_port_mixer,
  17646. msm_routing_put_port_mixer),
  17647. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17648. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17649. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17650. msm_routing_get_port_mixer,
  17651. msm_routing_put_port_mixer),
  17652. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17653. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17654. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17655. msm_routing_get_port_mixer,
  17656. msm_routing_put_port_mixer),
  17657. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17658. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17659. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17660. msm_routing_get_port_mixer,
  17661. msm_routing_put_port_mixer),
  17662. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17663. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17664. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17665. msm_routing_get_port_mixer,
  17666. msm_routing_put_port_mixer),
  17667. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17668. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17669. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17670. msm_routing_get_port_mixer,
  17671. msm_routing_put_port_mixer),
  17672. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17673. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17674. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17675. msm_routing_get_port_mixer,
  17676. msm_routing_put_port_mixer),
  17677. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17678. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17679. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17680. msm_routing_get_port_mixer,
  17681. msm_routing_put_port_mixer),
  17682. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17683. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17684. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17685. msm_routing_get_port_mixer,
  17686. msm_routing_put_port_mixer),
  17687. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17688. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17689. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17690. msm_routing_get_port_mixer,
  17691. msm_routing_put_port_mixer),
  17692. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17693. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17694. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17695. msm_routing_get_port_mixer,
  17696. msm_routing_put_port_mixer),
  17697. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17698. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17699. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17700. msm_routing_get_port_mixer,
  17701. msm_routing_put_port_mixer),
  17702. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17703. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17704. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17705. msm_routing_get_port_mixer,
  17706. msm_routing_put_port_mixer),
  17707. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17708. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17709. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17710. msm_routing_get_port_mixer,
  17711. msm_routing_put_port_mixer),
  17712. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17713. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17714. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17715. msm_routing_get_port_mixer,
  17716. msm_routing_put_port_mixer),
  17717. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17718. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17719. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17720. msm_routing_get_port_mixer,
  17721. msm_routing_put_port_mixer),
  17722. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17723. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17724. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17725. msm_routing_get_port_mixer,
  17726. msm_routing_put_port_mixer),
  17727. };
  17728. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  17729. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17730. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17731. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17732. msm_routing_get_port_mixer,
  17733. msm_routing_put_port_mixer),
  17734. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17735. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17736. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17737. msm_routing_get_port_mixer,
  17738. msm_routing_put_port_mixer),
  17739. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17740. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17741. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17742. msm_routing_get_port_mixer,
  17743. msm_routing_put_port_mixer),
  17744. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17745. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17746. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17747. msm_routing_get_port_mixer,
  17748. msm_routing_put_port_mixer),
  17749. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17750. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17751. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17752. msm_routing_get_port_mixer,
  17753. msm_routing_put_port_mixer),
  17754. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17755. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17756. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17757. msm_routing_get_port_mixer,
  17758. msm_routing_put_port_mixer),
  17759. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17760. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17761. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17762. msm_routing_get_port_mixer,
  17763. msm_routing_put_port_mixer),
  17764. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17765. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17766. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17767. msm_routing_get_port_mixer,
  17768. msm_routing_put_port_mixer),
  17769. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17770. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17771. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17772. msm_routing_get_port_mixer,
  17773. msm_routing_put_port_mixer),
  17774. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17775. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17776. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17777. msm_routing_get_port_mixer,
  17778. msm_routing_put_port_mixer),
  17779. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17780. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17781. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17782. msm_routing_get_port_mixer,
  17783. msm_routing_put_port_mixer),
  17784. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17785. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17786. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17787. msm_routing_get_port_mixer,
  17788. msm_routing_put_port_mixer),
  17789. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17790. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17791. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17792. msm_routing_get_port_mixer,
  17793. msm_routing_put_port_mixer),
  17794. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17795. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17796. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17797. msm_routing_get_port_mixer,
  17798. msm_routing_put_port_mixer),
  17799. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17800. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17801. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17802. msm_routing_get_port_mixer,
  17803. msm_routing_put_port_mixer),
  17804. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17805. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17806. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17807. msm_routing_get_port_mixer,
  17808. msm_routing_put_port_mixer),
  17809. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17810. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17811. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17812. msm_routing_get_port_mixer,
  17813. msm_routing_put_port_mixer),
  17814. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17815. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17816. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17817. msm_routing_get_port_mixer,
  17818. msm_routing_put_port_mixer),
  17819. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17820. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17821. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17822. msm_routing_get_port_mixer,
  17823. msm_routing_put_port_mixer),
  17824. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17825. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17826. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17827. msm_routing_get_port_mixer,
  17828. msm_routing_put_port_mixer),
  17829. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17830. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17831. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17832. msm_routing_get_port_mixer,
  17833. msm_routing_put_port_mixer),
  17834. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17835. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17836. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17837. msm_routing_get_port_mixer,
  17838. msm_routing_put_port_mixer),
  17839. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17840. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17841. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17842. msm_routing_get_port_mixer,
  17843. msm_routing_put_port_mixer),
  17844. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17845. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17846. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17847. msm_routing_get_port_mixer,
  17848. msm_routing_put_port_mixer),
  17849. };
  17850. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  17851. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17852. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17853. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17854. msm_routing_get_port_mixer,
  17855. msm_routing_put_port_mixer),
  17856. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17857. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17858. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17859. msm_routing_get_port_mixer,
  17860. msm_routing_put_port_mixer),
  17861. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17862. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17863. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17864. msm_routing_get_port_mixer,
  17865. msm_routing_put_port_mixer),
  17866. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17867. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17868. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17869. msm_routing_get_port_mixer,
  17870. msm_routing_put_port_mixer),
  17871. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17872. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17873. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17874. msm_routing_get_port_mixer,
  17875. msm_routing_put_port_mixer),
  17876. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17877. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17878. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17879. msm_routing_get_port_mixer,
  17880. msm_routing_put_port_mixer),
  17881. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17882. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17883. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17884. msm_routing_get_port_mixer,
  17885. msm_routing_put_port_mixer),
  17886. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17887. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17888. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17889. msm_routing_get_port_mixer,
  17890. msm_routing_put_port_mixer),
  17891. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17892. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17893. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17894. msm_routing_get_port_mixer,
  17895. msm_routing_put_port_mixer),
  17896. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17897. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17898. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17899. msm_routing_get_port_mixer,
  17900. msm_routing_put_port_mixer),
  17901. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17902. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17903. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17904. msm_routing_get_port_mixer,
  17905. msm_routing_put_port_mixer),
  17906. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17907. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17908. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17909. msm_routing_get_port_mixer,
  17910. msm_routing_put_port_mixer),
  17911. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17912. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17913. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17914. msm_routing_get_port_mixer,
  17915. msm_routing_put_port_mixer),
  17916. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17917. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17918. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17919. msm_routing_get_port_mixer,
  17920. msm_routing_put_port_mixer),
  17921. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17922. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17923. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17924. msm_routing_get_port_mixer,
  17925. msm_routing_put_port_mixer),
  17926. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17927. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17928. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17929. msm_routing_get_port_mixer,
  17930. msm_routing_put_port_mixer),
  17931. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17932. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17933. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17934. msm_routing_get_port_mixer,
  17935. msm_routing_put_port_mixer),
  17936. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17937. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17938. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17939. msm_routing_get_port_mixer,
  17940. msm_routing_put_port_mixer),
  17941. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17942. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17943. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17944. msm_routing_get_port_mixer,
  17945. msm_routing_put_port_mixer),
  17946. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17947. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17948. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17949. msm_routing_get_port_mixer,
  17950. msm_routing_put_port_mixer),
  17951. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17952. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17953. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17954. msm_routing_get_port_mixer,
  17955. msm_routing_put_port_mixer),
  17956. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17957. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17958. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17959. msm_routing_get_port_mixer,
  17960. msm_routing_put_port_mixer),
  17961. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17962. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17963. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17964. msm_routing_get_port_mixer,
  17965. msm_routing_put_port_mixer),
  17966. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17967. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17968. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17969. msm_routing_get_port_mixer,
  17970. msm_routing_put_port_mixer),
  17971. };
  17972. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  17973. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  17974. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  17975. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  17976. msm_routing_get_port_mixer,
  17977. msm_routing_put_port_mixer),
  17978. };
  17979. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  17980. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17981. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17982. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17983. msm_routing_get_port_mixer,
  17984. msm_routing_put_port_mixer),
  17985. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17986. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17987. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17988. msm_routing_get_port_mixer,
  17989. msm_routing_put_port_mixer),
  17990. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17991. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17992. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17993. msm_routing_get_port_mixer,
  17994. msm_routing_put_port_mixer),
  17995. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17996. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17997. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17998. msm_routing_get_port_mixer,
  17999. msm_routing_put_port_mixer),
  18000. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18001. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18002. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18003. msm_routing_get_port_mixer,
  18004. msm_routing_put_port_mixer),
  18005. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18006. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18007. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18008. msm_routing_get_port_mixer,
  18009. msm_routing_put_port_mixer),
  18010. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18011. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18012. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18013. msm_routing_get_port_mixer,
  18014. msm_routing_put_port_mixer),
  18015. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18016. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18017. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18018. msm_routing_get_port_mixer,
  18019. msm_routing_put_port_mixer),
  18020. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18021. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18022. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18023. msm_routing_get_port_mixer,
  18024. msm_routing_put_port_mixer),
  18025. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18026. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18027. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18028. msm_routing_get_port_mixer,
  18029. msm_routing_put_port_mixer),
  18030. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18031. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18032. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18033. msm_routing_get_port_mixer,
  18034. msm_routing_put_port_mixer),
  18035. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18036. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18037. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18038. msm_routing_get_port_mixer,
  18039. msm_routing_put_port_mixer),
  18040. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18041. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18042. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18043. msm_routing_get_port_mixer,
  18044. msm_routing_put_port_mixer),
  18045. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18046. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18047. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18048. msm_routing_get_port_mixer,
  18049. msm_routing_put_port_mixer),
  18050. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18051. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18052. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18053. msm_routing_get_port_mixer,
  18054. msm_routing_put_port_mixer),
  18055. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18056. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18057. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18058. msm_routing_get_port_mixer,
  18059. msm_routing_put_port_mixer),
  18060. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18061. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18062. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18063. msm_routing_get_port_mixer,
  18064. msm_routing_put_port_mixer),
  18065. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18066. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18067. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18068. msm_routing_get_port_mixer,
  18069. msm_routing_put_port_mixer),
  18070. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18071. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18072. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18073. msm_routing_get_port_mixer,
  18074. msm_routing_put_port_mixer),
  18075. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18076. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18077. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18078. msm_routing_get_port_mixer,
  18079. msm_routing_put_port_mixer),
  18080. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18081. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18082. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18083. msm_routing_get_port_mixer,
  18084. msm_routing_put_port_mixer),
  18085. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18086. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18087. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18088. msm_routing_get_port_mixer,
  18089. msm_routing_put_port_mixer),
  18090. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18091. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18092. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18093. msm_routing_get_port_mixer,
  18094. msm_routing_put_port_mixer),
  18095. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18096. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18097. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18098. msm_routing_get_port_mixer,
  18099. msm_routing_put_port_mixer),
  18100. };
  18101. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  18102. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18103. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18104. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18105. msm_routing_get_port_mixer,
  18106. msm_routing_put_port_mixer),
  18107. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18108. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18109. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18110. msm_routing_get_port_mixer,
  18111. msm_routing_put_port_mixer),
  18112. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18113. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18114. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18115. msm_routing_get_port_mixer,
  18116. msm_routing_put_port_mixer),
  18117. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18118. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18119. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18120. msm_routing_get_port_mixer,
  18121. msm_routing_put_port_mixer),
  18122. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18123. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18124. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18125. msm_routing_get_port_mixer,
  18126. msm_routing_put_port_mixer),
  18127. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18128. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18129. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18130. msm_routing_get_port_mixer,
  18131. msm_routing_put_port_mixer),
  18132. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18133. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18134. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18135. msm_routing_get_port_mixer,
  18136. msm_routing_put_port_mixer),
  18137. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18138. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18139. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18140. msm_routing_get_port_mixer,
  18141. msm_routing_put_port_mixer),
  18142. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18143. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18144. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18145. msm_routing_get_port_mixer,
  18146. msm_routing_put_port_mixer),
  18147. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18148. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18149. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18150. msm_routing_get_port_mixer,
  18151. msm_routing_put_port_mixer),
  18152. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18153. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18154. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18155. msm_routing_get_port_mixer,
  18156. msm_routing_put_port_mixer),
  18157. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18158. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18159. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18160. msm_routing_get_port_mixer,
  18161. msm_routing_put_port_mixer),
  18162. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18163. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18164. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18165. msm_routing_get_port_mixer,
  18166. msm_routing_put_port_mixer),
  18167. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18168. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18169. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18170. msm_routing_get_port_mixer,
  18171. msm_routing_put_port_mixer),
  18172. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18173. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18174. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18175. msm_routing_get_port_mixer,
  18176. msm_routing_put_port_mixer),
  18177. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18178. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18179. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18180. msm_routing_get_port_mixer,
  18181. msm_routing_put_port_mixer),
  18182. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18183. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18184. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18185. msm_routing_get_port_mixer,
  18186. msm_routing_put_port_mixer),
  18187. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18188. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18189. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18190. msm_routing_get_port_mixer,
  18191. msm_routing_put_port_mixer),
  18192. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18193. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18194. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18195. msm_routing_get_port_mixer,
  18196. msm_routing_put_port_mixer),
  18197. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18198. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18199. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18200. msm_routing_get_port_mixer,
  18201. msm_routing_put_port_mixer),
  18202. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18203. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18204. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18205. msm_routing_get_port_mixer,
  18206. msm_routing_put_port_mixer),
  18207. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18208. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18209. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18210. msm_routing_get_port_mixer,
  18211. msm_routing_put_port_mixer),
  18212. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18213. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18214. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18215. msm_routing_get_port_mixer,
  18216. msm_routing_put_port_mixer),
  18217. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18218. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18219. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18220. msm_routing_get_port_mixer,
  18221. msm_routing_put_port_mixer),
  18222. };
  18223. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  18224. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18225. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18226. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18227. msm_routing_get_port_mixer,
  18228. msm_routing_put_port_mixer),
  18229. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18230. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18231. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18232. msm_routing_get_port_mixer,
  18233. msm_routing_put_port_mixer),
  18234. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18235. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18236. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18237. msm_routing_get_port_mixer,
  18238. msm_routing_put_port_mixer),
  18239. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18240. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18241. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18242. msm_routing_get_port_mixer,
  18243. msm_routing_put_port_mixer),
  18244. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18245. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18246. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18247. msm_routing_get_port_mixer,
  18248. msm_routing_put_port_mixer),
  18249. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18250. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18251. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18252. msm_routing_get_port_mixer,
  18253. msm_routing_put_port_mixer),
  18254. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18255. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18256. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18257. msm_routing_get_port_mixer,
  18258. msm_routing_put_port_mixer),
  18259. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18260. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18261. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18262. msm_routing_get_port_mixer,
  18263. msm_routing_put_port_mixer),
  18264. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18265. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18266. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18267. msm_routing_get_port_mixer,
  18268. msm_routing_put_port_mixer),
  18269. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18270. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18271. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18272. msm_routing_get_port_mixer,
  18273. msm_routing_put_port_mixer),
  18274. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18275. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18276. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18277. msm_routing_get_port_mixer,
  18278. msm_routing_put_port_mixer),
  18279. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18280. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18281. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18282. msm_routing_get_port_mixer,
  18283. msm_routing_put_port_mixer),
  18284. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18285. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18286. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18287. msm_routing_get_port_mixer,
  18288. msm_routing_put_port_mixer),
  18289. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18290. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18291. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18292. msm_routing_get_port_mixer,
  18293. msm_routing_put_port_mixer),
  18294. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18295. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18296. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18297. msm_routing_get_port_mixer,
  18298. msm_routing_put_port_mixer),
  18299. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18300. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18301. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18302. msm_routing_get_port_mixer,
  18303. msm_routing_put_port_mixer),
  18304. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18305. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18306. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18307. msm_routing_get_port_mixer,
  18308. msm_routing_put_port_mixer),
  18309. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18310. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18311. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18312. msm_routing_get_port_mixer,
  18313. msm_routing_put_port_mixer),
  18314. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18315. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18316. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18317. msm_routing_get_port_mixer,
  18318. msm_routing_put_port_mixer),
  18319. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18320. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18321. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18322. msm_routing_get_port_mixer,
  18323. msm_routing_put_port_mixer),
  18324. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18325. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18326. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18327. msm_routing_get_port_mixer,
  18328. msm_routing_put_port_mixer),
  18329. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18330. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18331. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18332. msm_routing_get_port_mixer,
  18333. msm_routing_put_port_mixer),
  18334. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18335. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18336. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18337. msm_routing_get_port_mixer,
  18338. msm_routing_put_port_mixer),
  18339. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18340. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18341. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18342. msm_routing_get_port_mixer,
  18343. msm_routing_put_port_mixer),
  18344. };
  18345. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  18346. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18347. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18348. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18349. msm_routing_get_port_mixer,
  18350. msm_routing_put_port_mixer),
  18351. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18352. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18353. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18354. msm_routing_get_port_mixer,
  18355. msm_routing_put_port_mixer),
  18356. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18357. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18358. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18359. msm_routing_get_port_mixer,
  18360. msm_routing_put_port_mixer),
  18361. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18362. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18363. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18364. msm_routing_get_port_mixer,
  18365. msm_routing_put_port_mixer),
  18366. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18367. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18368. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18369. msm_routing_get_port_mixer,
  18370. msm_routing_put_port_mixer),
  18371. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18372. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18373. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18374. msm_routing_get_port_mixer,
  18375. msm_routing_put_port_mixer),
  18376. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18377. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18378. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18379. msm_routing_get_port_mixer,
  18380. msm_routing_put_port_mixer),
  18381. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18382. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18383. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18384. msm_routing_get_port_mixer,
  18385. msm_routing_put_port_mixer),
  18386. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18387. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18388. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18389. msm_routing_get_port_mixer,
  18390. msm_routing_put_port_mixer),
  18391. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18392. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18393. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18394. msm_routing_get_port_mixer,
  18395. msm_routing_put_port_mixer),
  18396. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18397. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18398. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18399. msm_routing_get_port_mixer,
  18400. msm_routing_put_port_mixer),
  18401. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18402. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18403. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18404. msm_routing_get_port_mixer,
  18405. msm_routing_put_port_mixer),
  18406. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18407. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18408. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18409. msm_routing_get_port_mixer,
  18410. msm_routing_put_port_mixer),
  18411. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18412. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18413. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18414. msm_routing_get_port_mixer,
  18415. msm_routing_put_port_mixer),
  18416. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18417. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18418. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18419. msm_routing_get_port_mixer,
  18420. msm_routing_put_port_mixer),
  18421. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18422. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18423. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18424. msm_routing_get_port_mixer,
  18425. msm_routing_put_port_mixer),
  18426. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18427. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18428. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18429. msm_routing_get_port_mixer,
  18430. msm_routing_put_port_mixer),
  18431. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18432. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18433. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18434. msm_routing_get_port_mixer,
  18435. msm_routing_put_port_mixer),
  18436. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18437. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18438. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18439. msm_routing_get_port_mixer,
  18440. msm_routing_put_port_mixer),
  18441. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18442. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18443. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18444. msm_routing_get_port_mixer,
  18445. msm_routing_put_port_mixer),
  18446. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18447. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18448. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18449. msm_routing_get_port_mixer,
  18450. msm_routing_put_port_mixer),
  18451. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18452. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18453. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18454. msm_routing_get_port_mixer,
  18455. msm_routing_put_port_mixer),
  18456. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18457. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18458. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18459. msm_routing_get_port_mixer,
  18460. msm_routing_put_port_mixer),
  18461. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18462. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18463. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18464. msm_routing_get_port_mixer,
  18465. msm_routing_put_port_mixer),
  18466. };
  18467. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  18468. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18469. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18470. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18471. msm_routing_get_port_mixer,
  18472. msm_routing_put_port_mixer),
  18473. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18474. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18475. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18476. msm_routing_get_port_mixer,
  18477. msm_routing_put_port_mixer),
  18478. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18479. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18480. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18481. msm_routing_get_port_mixer,
  18482. msm_routing_put_port_mixer),
  18483. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18484. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18485. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18486. msm_routing_get_port_mixer,
  18487. msm_routing_put_port_mixer),
  18488. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18489. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18490. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18491. msm_routing_get_port_mixer,
  18492. msm_routing_put_port_mixer),
  18493. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18494. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18495. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18496. msm_routing_get_port_mixer,
  18497. msm_routing_put_port_mixer),
  18498. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18499. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18500. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18501. msm_routing_get_port_mixer,
  18502. msm_routing_put_port_mixer),
  18503. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18504. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18505. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18506. msm_routing_get_port_mixer,
  18507. msm_routing_put_port_mixer),
  18508. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18509. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18510. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18511. msm_routing_get_port_mixer,
  18512. msm_routing_put_port_mixer),
  18513. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18514. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18515. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18516. msm_routing_get_port_mixer,
  18517. msm_routing_put_port_mixer),
  18518. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18519. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18520. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18521. msm_routing_get_port_mixer,
  18522. msm_routing_put_port_mixer),
  18523. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18524. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18525. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18526. msm_routing_get_port_mixer,
  18527. msm_routing_put_port_mixer),
  18528. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18529. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18530. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18531. msm_routing_get_port_mixer,
  18532. msm_routing_put_port_mixer),
  18533. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18534. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18535. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18536. msm_routing_get_port_mixer,
  18537. msm_routing_put_port_mixer),
  18538. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18539. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18540. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18541. msm_routing_get_port_mixer,
  18542. msm_routing_put_port_mixer),
  18543. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18544. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18545. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18546. msm_routing_get_port_mixer,
  18547. msm_routing_put_port_mixer),
  18548. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18549. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18550. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18551. msm_routing_get_port_mixer,
  18552. msm_routing_put_port_mixer),
  18553. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18554. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18555. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18556. msm_routing_get_port_mixer,
  18557. msm_routing_put_port_mixer),
  18558. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18559. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18560. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18561. msm_routing_get_port_mixer,
  18562. msm_routing_put_port_mixer),
  18563. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18564. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18565. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18566. msm_routing_get_port_mixer,
  18567. msm_routing_put_port_mixer),
  18568. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18569. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18570. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18571. msm_routing_get_port_mixer,
  18572. msm_routing_put_port_mixer),
  18573. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18574. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18575. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18576. msm_routing_get_port_mixer,
  18577. msm_routing_put_port_mixer),
  18578. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18579. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18580. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18581. msm_routing_get_port_mixer,
  18582. msm_routing_put_port_mixer),
  18583. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18584. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18585. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18586. msm_routing_get_port_mixer,
  18587. msm_routing_put_port_mixer),
  18588. };
  18589. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  18590. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18591. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18592. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18593. msm_routing_get_port_mixer,
  18594. msm_routing_put_port_mixer),
  18595. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18596. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18597. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18598. msm_routing_get_port_mixer,
  18599. msm_routing_put_port_mixer),
  18600. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18601. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18602. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18603. msm_routing_get_port_mixer,
  18604. msm_routing_put_port_mixer),
  18605. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18606. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18607. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18608. msm_routing_get_port_mixer,
  18609. msm_routing_put_port_mixer),
  18610. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18611. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18612. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18613. msm_routing_get_port_mixer,
  18614. msm_routing_put_port_mixer),
  18615. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18616. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18617. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18618. msm_routing_get_port_mixer,
  18619. msm_routing_put_port_mixer),
  18620. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18621. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18622. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18623. msm_routing_get_port_mixer,
  18624. msm_routing_put_port_mixer),
  18625. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18626. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18627. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18628. msm_routing_get_port_mixer,
  18629. msm_routing_put_port_mixer),
  18630. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18631. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18632. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18633. msm_routing_get_port_mixer,
  18634. msm_routing_put_port_mixer),
  18635. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18636. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18637. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18638. msm_routing_get_port_mixer,
  18639. msm_routing_put_port_mixer),
  18640. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18641. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18642. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18643. msm_routing_get_port_mixer,
  18644. msm_routing_put_port_mixer),
  18645. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18646. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18647. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18648. msm_routing_get_port_mixer,
  18649. msm_routing_put_port_mixer),
  18650. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18651. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18652. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18653. msm_routing_get_port_mixer,
  18654. msm_routing_put_port_mixer),
  18655. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18656. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18657. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18658. msm_routing_get_port_mixer,
  18659. msm_routing_put_port_mixer),
  18660. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18661. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18662. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18663. msm_routing_get_port_mixer,
  18664. msm_routing_put_port_mixer),
  18665. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18666. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18667. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18668. msm_routing_get_port_mixer,
  18669. msm_routing_put_port_mixer),
  18670. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18671. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18672. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18673. msm_routing_get_port_mixer,
  18674. msm_routing_put_port_mixer),
  18675. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18676. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18677. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18678. msm_routing_get_port_mixer,
  18679. msm_routing_put_port_mixer),
  18680. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18681. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18682. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18683. msm_routing_get_port_mixer,
  18684. msm_routing_put_port_mixer),
  18685. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18686. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18687. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18688. msm_routing_get_port_mixer,
  18689. msm_routing_put_port_mixer),
  18690. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18691. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18692. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18693. msm_routing_get_port_mixer,
  18694. msm_routing_put_port_mixer),
  18695. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18696. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18697. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18698. msm_routing_get_port_mixer,
  18699. msm_routing_put_port_mixer),
  18700. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18701. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18702. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18703. msm_routing_get_port_mixer,
  18704. msm_routing_put_port_mixer),
  18705. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18706. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18707. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18708. msm_routing_get_port_mixer,
  18709. msm_routing_put_port_mixer),
  18710. };
  18711. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  18712. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18713. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18714. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18715. msm_routing_get_port_mixer,
  18716. msm_routing_put_port_mixer),
  18717. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18718. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18719. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18720. msm_routing_get_port_mixer,
  18721. msm_routing_put_port_mixer),
  18722. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18723. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18724. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18725. msm_routing_get_port_mixer,
  18726. msm_routing_put_port_mixer),
  18727. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18728. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18729. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18730. msm_routing_get_port_mixer,
  18731. msm_routing_put_port_mixer),
  18732. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18733. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18734. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18735. msm_routing_get_port_mixer,
  18736. msm_routing_put_port_mixer),
  18737. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18738. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18739. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18740. msm_routing_get_port_mixer,
  18741. msm_routing_put_port_mixer),
  18742. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18743. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18744. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18745. msm_routing_get_port_mixer,
  18746. msm_routing_put_port_mixer),
  18747. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18748. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18749. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18750. msm_routing_get_port_mixer,
  18751. msm_routing_put_port_mixer),
  18752. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18753. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18754. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18755. msm_routing_get_port_mixer,
  18756. msm_routing_put_port_mixer),
  18757. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18758. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18759. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18760. msm_routing_get_port_mixer,
  18761. msm_routing_put_port_mixer),
  18762. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18763. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18764. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18765. msm_routing_get_port_mixer,
  18766. msm_routing_put_port_mixer),
  18767. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18768. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18769. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18770. msm_routing_get_port_mixer,
  18771. msm_routing_put_port_mixer),
  18772. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18773. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18774. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18775. msm_routing_get_port_mixer,
  18776. msm_routing_put_port_mixer),
  18777. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18778. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18779. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18780. msm_routing_get_port_mixer,
  18781. msm_routing_put_port_mixer),
  18782. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18783. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18784. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18785. msm_routing_get_port_mixer,
  18786. msm_routing_put_port_mixer),
  18787. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18788. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18789. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18790. msm_routing_get_port_mixer,
  18791. msm_routing_put_port_mixer),
  18792. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18793. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18794. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18795. msm_routing_get_port_mixer,
  18796. msm_routing_put_port_mixer),
  18797. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18798. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18799. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18800. msm_routing_get_port_mixer,
  18801. msm_routing_put_port_mixer),
  18802. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18803. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18804. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18805. msm_routing_get_port_mixer,
  18806. msm_routing_put_port_mixer),
  18807. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18808. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18809. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18810. msm_routing_get_port_mixer,
  18811. msm_routing_put_port_mixer),
  18812. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18813. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18814. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18815. msm_routing_get_port_mixer,
  18816. msm_routing_put_port_mixer),
  18817. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18818. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18819. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18820. msm_routing_get_port_mixer,
  18821. msm_routing_put_port_mixer),
  18822. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18823. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18824. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18825. msm_routing_get_port_mixer,
  18826. msm_routing_put_port_mixer),
  18827. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18828. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18829. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18830. msm_routing_get_port_mixer,
  18831. msm_routing_put_port_mixer),
  18832. };
  18833. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  18834. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18835. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18836. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18837. msm_routing_get_port_mixer,
  18838. msm_routing_put_port_mixer),
  18839. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18840. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18841. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18842. msm_routing_get_port_mixer,
  18843. msm_routing_put_port_mixer),
  18844. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18845. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18846. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18847. msm_routing_get_port_mixer,
  18848. msm_routing_put_port_mixer),
  18849. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18850. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18851. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18852. msm_routing_get_port_mixer,
  18853. msm_routing_put_port_mixer),
  18854. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18855. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18856. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18857. msm_routing_get_port_mixer,
  18858. msm_routing_put_port_mixer),
  18859. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18860. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18861. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18862. msm_routing_get_port_mixer,
  18863. msm_routing_put_port_mixer),
  18864. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18865. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18866. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18867. msm_routing_get_port_mixer,
  18868. msm_routing_put_port_mixer),
  18869. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18870. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18871. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18872. msm_routing_get_port_mixer,
  18873. msm_routing_put_port_mixer),
  18874. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18875. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18876. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18877. msm_routing_get_port_mixer,
  18878. msm_routing_put_port_mixer),
  18879. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18880. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18881. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18882. msm_routing_get_port_mixer,
  18883. msm_routing_put_port_mixer),
  18884. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18885. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18886. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18887. msm_routing_get_port_mixer,
  18888. msm_routing_put_port_mixer),
  18889. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18890. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18891. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18892. msm_routing_get_port_mixer,
  18893. msm_routing_put_port_mixer),
  18894. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18895. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18896. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18897. msm_routing_get_port_mixer,
  18898. msm_routing_put_port_mixer),
  18899. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18900. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18901. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18902. msm_routing_get_port_mixer,
  18903. msm_routing_put_port_mixer),
  18904. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18905. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18906. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18907. msm_routing_get_port_mixer,
  18908. msm_routing_put_port_mixer),
  18909. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18910. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18911. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18912. msm_routing_get_port_mixer,
  18913. msm_routing_put_port_mixer),
  18914. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18915. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18916. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18917. msm_routing_get_port_mixer,
  18918. msm_routing_put_port_mixer),
  18919. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18920. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18921. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18922. msm_routing_get_port_mixer,
  18923. msm_routing_put_port_mixer),
  18924. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18925. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18926. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18927. msm_routing_get_port_mixer,
  18928. msm_routing_put_port_mixer),
  18929. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18930. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18931. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18932. msm_routing_get_port_mixer,
  18933. msm_routing_put_port_mixer),
  18934. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18935. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18936. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18937. msm_routing_get_port_mixer,
  18938. msm_routing_put_port_mixer),
  18939. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18940. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18941. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18942. msm_routing_get_port_mixer,
  18943. msm_routing_put_port_mixer),
  18944. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18945. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18946. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18947. msm_routing_get_port_mixer,
  18948. msm_routing_put_port_mixer),
  18949. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18950. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18951. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18952. msm_routing_get_port_mixer,
  18953. msm_routing_put_port_mixer),
  18954. };
  18955. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  18956. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  18957. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18958. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  18959. msm_routing_get_port_mixer,
  18960. msm_routing_put_port_mixer),
  18961. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  18962. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18963. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  18964. msm_routing_get_port_mixer,
  18965. msm_routing_put_port_mixer),
  18966. };
  18967. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  18968. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18969. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18970. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18971. msm_routing_get_port_mixer,
  18972. msm_routing_put_port_mixer),
  18973. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18974. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18975. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18976. msm_routing_get_port_mixer,
  18977. msm_routing_put_port_mixer),
  18978. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18979. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18980. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18981. msm_routing_get_port_mixer,
  18982. msm_routing_put_port_mixer),
  18983. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18984. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18985. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18986. msm_routing_get_port_mixer,
  18987. msm_routing_put_port_mixer),
  18988. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18989. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18990. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18991. msm_routing_get_port_mixer,
  18992. msm_routing_put_port_mixer),
  18993. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18994. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18995. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18996. msm_routing_get_port_mixer,
  18997. msm_routing_put_port_mixer),
  18998. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18999. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19000. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19001. msm_routing_get_port_mixer,
  19002. msm_routing_put_port_mixer),
  19003. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19004. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19005. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19006. msm_routing_get_port_mixer,
  19007. msm_routing_put_port_mixer),
  19008. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19009. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19010. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19011. msm_routing_get_port_mixer,
  19012. msm_routing_put_port_mixer),
  19013. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19014. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19015. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19016. msm_routing_get_port_mixer,
  19017. msm_routing_put_port_mixer),
  19018. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19019. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19020. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19021. msm_routing_get_port_mixer,
  19022. msm_routing_put_port_mixer),
  19023. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19024. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19025. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19026. msm_routing_get_port_mixer,
  19027. msm_routing_put_port_mixer),
  19028. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19029. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19030. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19031. msm_routing_get_port_mixer,
  19032. msm_routing_put_port_mixer),
  19033. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19034. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19035. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19036. msm_routing_get_port_mixer,
  19037. msm_routing_put_port_mixer),
  19038. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19039. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19040. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19041. msm_routing_get_port_mixer,
  19042. msm_routing_put_port_mixer),
  19043. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19044. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19045. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19046. msm_routing_get_port_mixer,
  19047. msm_routing_put_port_mixer),
  19048. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19049. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19050. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19051. msm_routing_get_port_mixer,
  19052. msm_routing_put_port_mixer),
  19053. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19054. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19055. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19056. msm_routing_get_port_mixer,
  19057. msm_routing_put_port_mixer),
  19058. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19059. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19060. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19061. msm_routing_get_port_mixer,
  19062. msm_routing_put_port_mixer),
  19063. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19064. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19065. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19066. msm_routing_get_port_mixer,
  19067. msm_routing_put_port_mixer),
  19068. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19069. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19070. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19071. msm_routing_get_port_mixer,
  19072. msm_routing_put_port_mixer),
  19073. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19074. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19075. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19076. msm_routing_get_port_mixer,
  19077. msm_routing_put_port_mixer),
  19078. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19079. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19080. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19081. msm_routing_get_port_mixer,
  19082. msm_routing_put_port_mixer),
  19083. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19084. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19085. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19086. msm_routing_get_port_mixer,
  19087. msm_routing_put_port_mixer),
  19088. };
  19089. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  19090. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19091. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19092. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19093. msm_routing_get_port_mixer,
  19094. msm_routing_put_port_mixer),
  19095. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19096. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19097. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19098. msm_routing_get_port_mixer,
  19099. msm_routing_put_port_mixer),
  19100. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19101. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19102. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19103. msm_routing_get_port_mixer,
  19104. msm_routing_put_port_mixer),
  19105. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19106. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19107. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19108. msm_routing_get_port_mixer,
  19109. msm_routing_put_port_mixer),
  19110. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19111. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19112. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19113. msm_routing_get_port_mixer,
  19114. msm_routing_put_port_mixer),
  19115. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19116. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19117. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19118. msm_routing_get_port_mixer,
  19119. msm_routing_put_port_mixer),
  19120. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19121. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19122. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19123. msm_routing_get_port_mixer,
  19124. msm_routing_put_port_mixer),
  19125. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19126. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19127. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19128. msm_routing_get_port_mixer,
  19129. msm_routing_put_port_mixer),
  19130. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19131. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19132. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19133. msm_routing_get_port_mixer,
  19134. msm_routing_put_port_mixer),
  19135. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19136. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19137. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19138. msm_routing_get_port_mixer,
  19139. msm_routing_put_port_mixer),
  19140. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19141. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19142. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19143. msm_routing_get_port_mixer,
  19144. msm_routing_put_port_mixer),
  19145. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19146. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19147. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19148. msm_routing_get_port_mixer,
  19149. msm_routing_put_port_mixer),
  19150. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19151. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19152. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19153. msm_routing_get_port_mixer,
  19154. msm_routing_put_port_mixer),
  19155. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19156. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19157. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19158. msm_routing_get_port_mixer,
  19159. msm_routing_put_port_mixer),
  19160. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19161. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19162. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19163. msm_routing_get_port_mixer,
  19164. msm_routing_put_port_mixer),
  19165. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19166. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19167. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19168. msm_routing_get_port_mixer,
  19169. msm_routing_put_port_mixer),
  19170. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19171. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19172. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19173. msm_routing_get_port_mixer,
  19174. msm_routing_put_port_mixer),
  19175. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19176. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19177. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19178. msm_routing_get_port_mixer,
  19179. msm_routing_put_port_mixer),
  19180. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19181. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19182. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19183. msm_routing_get_port_mixer,
  19184. msm_routing_put_port_mixer),
  19185. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19186. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19187. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19188. msm_routing_get_port_mixer,
  19189. msm_routing_put_port_mixer),
  19190. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19191. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19192. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19193. msm_routing_get_port_mixer,
  19194. msm_routing_put_port_mixer),
  19195. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19196. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19197. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19198. msm_routing_get_port_mixer,
  19199. msm_routing_put_port_mixer),
  19200. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19201. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19202. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19203. msm_routing_get_port_mixer,
  19204. msm_routing_put_port_mixer),
  19205. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19206. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19207. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19208. msm_routing_get_port_mixer,
  19209. msm_routing_put_port_mixer),
  19210. };
  19211. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  19212. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19213. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19214. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19215. msm_routing_get_port_mixer,
  19216. msm_routing_put_port_mixer),
  19217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19218. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19219. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19220. msm_routing_get_port_mixer,
  19221. msm_routing_put_port_mixer),
  19222. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19223. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19224. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19225. msm_routing_get_port_mixer,
  19226. msm_routing_put_port_mixer),
  19227. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19228. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19229. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19230. msm_routing_get_port_mixer,
  19231. msm_routing_put_port_mixer),
  19232. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19233. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19234. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19235. msm_routing_get_port_mixer,
  19236. msm_routing_put_port_mixer),
  19237. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19238. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19239. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19240. msm_routing_get_port_mixer,
  19241. msm_routing_put_port_mixer),
  19242. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19243. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19244. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19245. msm_routing_get_port_mixer,
  19246. msm_routing_put_port_mixer),
  19247. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19248. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19249. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19250. msm_routing_get_port_mixer,
  19251. msm_routing_put_port_mixer),
  19252. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19253. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19254. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19255. msm_routing_get_port_mixer,
  19256. msm_routing_put_port_mixer),
  19257. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19258. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19259. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19260. msm_routing_get_port_mixer,
  19261. msm_routing_put_port_mixer),
  19262. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19263. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19264. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19265. msm_routing_get_port_mixer,
  19266. msm_routing_put_port_mixer),
  19267. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19268. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19269. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19270. msm_routing_get_port_mixer,
  19271. msm_routing_put_port_mixer),
  19272. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19273. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19274. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19275. msm_routing_get_port_mixer,
  19276. msm_routing_put_port_mixer),
  19277. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19278. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19279. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19280. msm_routing_get_port_mixer,
  19281. msm_routing_put_port_mixer),
  19282. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19283. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19284. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19285. msm_routing_get_port_mixer,
  19286. msm_routing_put_port_mixer),
  19287. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19288. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19289. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19290. msm_routing_get_port_mixer,
  19291. msm_routing_put_port_mixer),
  19292. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19293. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19294. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19295. msm_routing_get_port_mixer,
  19296. msm_routing_put_port_mixer),
  19297. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19298. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19299. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19300. msm_routing_get_port_mixer,
  19301. msm_routing_put_port_mixer),
  19302. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19303. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19304. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19305. msm_routing_get_port_mixer,
  19306. msm_routing_put_port_mixer),
  19307. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19308. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19309. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19310. msm_routing_get_port_mixer,
  19311. msm_routing_put_port_mixer),
  19312. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19313. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19314. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19315. msm_routing_get_port_mixer,
  19316. msm_routing_put_port_mixer),
  19317. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19318. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19319. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19320. msm_routing_get_port_mixer,
  19321. msm_routing_put_port_mixer),
  19322. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19323. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19324. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19325. msm_routing_get_port_mixer,
  19326. msm_routing_put_port_mixer),
  19327. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19328. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19329. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19330. msm_routing_get_port_mixer,
  19331. msm_routing_put_port_mixer),
  19332. };
  19333. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  19334. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19335. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19336. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19337. msm_routing_get_port_mixer,
  19338. msm_routing_put_port_mixer),
  19339. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19340. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19341. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19342. msm_routing_get_port_mixer,
  19343. msm_routing_put_port_mixer),
  19344. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19345. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19346. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19347. msm_routing_get_port_mixer,
  19348. msm_routing_put_port_mixer),
  19349. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19350. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19351. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19352. msm_routing_get_port_mixer,
  19353. msm_routing_put_port_mixer),
  19354. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19355. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19356. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19357. msm_routing_get_port_mixer,
  19358. msm_routing_put_port_mixer),
  19359. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19360. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19361. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19362. msm_routing_get_port_mixer,
  19363. msm_routing_put_port_mixer),
  19364. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19365. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19366. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19367. msm_routing_get_port_mixer,
  19368. msm_routing_put_port_mixer),
  19369. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19370. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19371. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19372. msm_routing_get_port_mixer,
  19373. msm_routing_put_port_mixer),
  19374. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19375. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19376. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19377. msm_routing_get_port_mixer,
  19378. msm_routing_put_port_mixer),
  19379. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19380. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19381. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19382. msm_routing_get_port_mixer,
  19383. msm_routing_put_port_mixer),
  19384. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19385. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19386. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19387. msm_routing_get_port_mixer,
  19388. msm_routing_put_port_mixer),
  19389. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19390. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19391. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19392. msm_routing_get_port_mixer,
  19393. msm_routing_put_port_mixer),
  19394. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19395. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19396. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19397. msm_routing_get_port_mixer,
  19398. msm_routing_put_port_mixer),
  19399. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19400. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19401. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19402. msm_routing_get_port_mixer,
  19403. msm_routing_put_port_mixer),
  19404. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19405. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19406. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19407. msm_routing_get_port_mixer,
  19408. msm_routing_put_port_mixer),
  19409. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19410. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19411. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19412. msm_routing_get_port_mixer,
  19413. msm_routing_put_port_mixer),
  19414. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19415. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19416. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19417. msm_routing_get_port_mixer,
  19418. msm_routing_put_port_mixer),
  19419. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19420. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19421. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19422. msm_routing_get_port_mixer,
  19423. msm_routing_put_port_mixer),
  19424. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19425. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19426. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19427. msm_routing_get_port_mixer,
  19428. msm_routing_put_port_mixer),
  19429. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19430. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19431. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19432. msm_routing_get_port_mixer,
  19433. msm_routing_put_port_mixer),
  19434. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19435. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19436. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19437. msm_routing_get_port_mixer,
  19438. msm_routing_put_port_mixer),
  19439. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19440. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19441. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19442. msm_routing_get_port_mixer,
  19443. msm_routing_put_port_mixer),
  19444. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19445. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19446. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19447. msm_routing_get_port_mixer,
  19448. msm_routing_put_port_mixer),
  19449. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19450. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19451. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19452. msm_routing_get_port_mixer,
  19453. msm_routing_put_port_mixer),
  19454. };
  19455. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  19456. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19457. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19458. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19459. msm_routing_get_port_mixer,
  19460. msm_routing_put_port_mixer),
  19461. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19462. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19463. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19464. msm_routing_get_port_mixer,
  19465. msm_routing_put_port_mixer),
  19466. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19467. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19468. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19469. msm_routing_get_port_mixer,
  19470. msm_routing_put_port_mixer),
  19471. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19472. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19473. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19474. msm_routing_get_port_mixer,
  19475. msm_routing_put_port_mixer),
  19476. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19477. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19478. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19479. msm_routing_get_port_mixer,
  19480. msm_routing_put_port_mixer),
  19481. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19482. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19483. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19484. msm_routing_get_port_mixer,
  19485. msm_routing_put_port_mixer),
  19486. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19487. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19488. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19489. msm_routing_get_port_mixer,
  19490. msm_routing_put_port_mixer),
  19491. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19492. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19493. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19494. msm_routing_get_port_mixer,
  19495. msm_routing_put_port_mixer),
  19496. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19497. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19498. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19499. msm_routing_get_port_mixer,
  19500. msm_routing_put_port_mixer),
  19501. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19502. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19503. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19504. msm_routing_get_port_mixer,
  19505. msm_routing_put_port_mixer),
  19506. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19507. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19508. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19509. msm_routing_get_port_mixer,
  19510. msm_routing_put_port_mixer),
  19511. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19512. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19513. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19514. msm_routing_get_port_mixer,
  19515. msm_routing_put_port_mixer),
  19516. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19517. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19518. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19519. msm_routing_get_port_mixer,
  19520. msm_routing_put_port_mixer),
  19521. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19522. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19523. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19524. msm_routing_get_port_mixer,
  19525. msm_routing_put_port_mixer),
  19526. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19527. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19528. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19529. msm_routing_get_port_mixer,
  19530. msm_routing_put_port_mixer),
  19531. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19532. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19533. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19534. msm_routing_get_port_mixer,
  19535. msm_routing_put_port_mixer),
  19536. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19537. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19538. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19539. msm_routing_get_port_mixer,
  19540. msm_routing_put_port_mixer),
  19541. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19542. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19543. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19544. msm_routing_get_port_mixer,
  19545. msm_routing_put_port_mixer),
  19546. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19547. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19548. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19549. msm_routing_get_port_mixer,
  19550. msm_routing_put_port_mixer),
  19551. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19552. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19553. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19554. msm_routing_get_port_mixer,
  19555. msm_routing_put_port_mixer),
  19556. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19557. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19558. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19559. msm_routing_get_port_mixer,
  19560. msm_routing_put_port_mixer),
  19561. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19562. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19563. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19564. msm_routing_get_port_mixer,
  19565. msm_routing_put_port_mixer),
  19566. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19567. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19568. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19569. msm_routing_get_port_mixer,
  19570. msm_routing_put_port_mixer),
  19571. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19572. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19573. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19574. msm_routing_get_port_mixer,
  19575. msm_routing_put_port_mixer),
  19576. };
  19577. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  19578. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19579. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19580. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19581. msm_routing_get_port_mixer,
  19582. msm_routing_put_port_mixer),
  19583. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19584. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19585. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19586. msm_routing_get_port_mixer,
  19587. msm_routing_put_port_mixer),
  19588. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19589. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19590. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19591. msm_routing_get_port_mixer,
  19592. msm_routing_put_port_mixer),
  19593. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19594. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19595. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19596. msm_routing_get_port_mixer,
  19597. msm_routing_put_port_mixer),
  19598. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19599. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19600. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19601. msm_routing_get_port_mixer,
  19602. msm_routing_put_port_mixer),
  19603. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19604. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19605. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19606. msm_routing_get_port_mixer,
  19607. msm_routing_put_port_mixer),
  19608. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19609. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19610. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19611. msm_routing_get_port_mixer,
  19612. msm_routing_put_port_mixer),
  19613. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19614. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19615. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19616. msm_routing_get_port_mixer,
  19617. msm_routing_put_port_mixer),
  19618. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19619. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19620. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19621. msm_routing_get_port_mixer,
  19622. msm_routing_put_port_mixer),
  19623. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19624. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19625. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19626. msm_routing_get_port_mixer,
  19627. msm_routing_put_port_mixer),
  19628. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19629. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19630. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19631. msm_routing_get_port_mixer,
  19632. msm_routing_put_port_mixer),
  19633. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19634. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19635. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19636. msm_routing_get_port_mixer,
  19637. msm_routing_put_port_mixer),
  19638. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19639. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19640. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19641. msm_routing_get_port_mixer,
  19642. msm_routing_put_port_mixer),
  19643. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19644. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19645. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19646. msm_routing_get_port_mixer,
  19647. msm_routing_put_port_mixer),
  19648. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19649. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19650. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19651. msm_routing_get_port_mixer,
  19652. msm_routing_put_port_mixer),
  19653. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19654. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19655. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19656. msm_routing_get_port_mixer,
  19657. msm_routing_put_port_mixer),
  19658. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19659. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19660. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19661. msm_routing_get_port_mixer,
  19662. msm_routing_put_port_mixer),
  19663. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19664. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19665. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19666. msm_routing_get_port_mixer,
  19667. msm_routing_put_port_mixer),
  19668. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19669. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19670. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19671. msm_routing_get_port_mixer,
  19672. msm_routing_put_port_mixer),
  19673. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19674. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19675. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19676. msm_routing_get_port_mixer,
  19677. msm_routing_put_port_mixer),
  19678. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19679. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19680. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19681. msm_routing_get_port_mixer,
  19682. msm_routing_put_port_mixer),
  19683. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19684. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19685. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19686. msm_routing_get_port_mixer,
  19687. msm_routing_put_port_mixer),
  19688. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19689. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19690. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19691. msm_routing_get_port_mixer,
  19692. msm_routing_put_port_mixer),
  19693. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19694. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19695. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19696. msm_routing_get_port_mixer,
  19697. msm_routing_put_port_mixer),
  19698. };
  19699. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  19700. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19701. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19702. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19703. msm_routing_get_port_mixer,
  19704. msm_routing_put_port_mixer),
  19705. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19706. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19707. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19708. msm_routing_get_port_mixer,
  19709. msm_routing_put_port_mixer),
  19710. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19711. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19712. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19713. msm_routing_get_port_mixer,
  19714. msm_routing_put_port_mixer),
  19715. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19716. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19717. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19718. msm_routing_get_port_mixer,
  19719. msm_routing_put_port_mixer),
  19720. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19721. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19722. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19723. msm_routing_get_port_mixer,
  19724. msm_routing_put_port_mixer),
  19725. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19726. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19727. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19728. msm_routing_get_port_mixer,
  19729. msm_routing_put_port_mixer),
  19730. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19731. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19732. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19733. msm_routing_get_port_mixer,
  19734. msm_routing_put_port_mixer),
  19735. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19736. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19737. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19738. msm_routing_get_port_mixer,
  19739. msm_routing_put_port_mixer),
  19740. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19741. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19742. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19743. msm_routing_get_port_mixer,
  19744. msm_routing_put_port_mixer),
  19745. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19746. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19747. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19748. msm_routing_get_port_mixer,
  19749. msm_routing_put_port_mixer),
  19750. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19751. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19752. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19753. msm_routing_get_port_mixer,
  19754. msm_routing_put_port_mixer),
  19755. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19756. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19757. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19758. msm_routing_get_port_mixer,
  19759. msm_routing_put_port_mixer),
  19760. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19761. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19762. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19763. msm_routing_get_port_mixer,
  19764. msm_routing_put_port_mixer),
  19765. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19766. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19767. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19768. msm_routing_get_port_mixer,
  19769. msm_routing_put_port_mixer),
  19770. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19771. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19772. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19773. msm_routing_get_port_mixer,
  19774. msm_routing_put_port_mixer),
  19775. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19776. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19777. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19778. msm_routing_get_port_mixer,
  19779. msm_routing_put_port_mixer),
  19780. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19781. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19782. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19783. msm_routing_get_port_mixer,
  19784. msm_routing_put_port_mixer),
  19785. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19786. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19787. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19788. msm_routing_get_port_mixer,
  19789. msm_routing_put_port_mixer),
  19790. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19791. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19792. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19793. msm_routing_get_port_mixer,
  19794. msm_routing_put_port_mixer),
  19795. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19796. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19797. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19798. msm_routing_get_port_mixer,
  19799. msm_routing_put_port_mixer),
  19800. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19801. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19802. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19803. msm_routing_get_port_mixer,
  19804. msm_routing_put_port_mixer),
  19805. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19806. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19807. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19808. msm_routing_get_port_mixer,
  19809. msm_routing_put_port_mixer),
  19810. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19811. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19812. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19813. msm_routing_get_port_mixer,
  19814. msm_routing_put_port_mixer),
  19815. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19816. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19817. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19818. msm_routing_get_port_mixer,
  19819. msm_routing_put_port_mixer),
  19820. };
  19821. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  19822. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19823. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19824. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19825. msm_routing_get_port_mixer,
  19826. msm_routing_put_port_mixer),
  19827. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19828. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19829. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19830. msm_routing_get_port_mixer,
  19831. msm_routing_put_port_mixer),
  19832. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19833. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19834. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19835. msm_routing_get_port_mixer,
  19836. msm_routing_put_port_mixer),
  19837. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19838. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19839. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19840. msm_routing_get_port_mixer,
  19841. msm_routing_put_port_mixer),
  19842. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19843. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19844. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19845. msm_routing_get_port_mixer,
  19846. msm_routing_put_port_mixer),
  19847. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19848. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19849. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19850. msm_routing_get_port_mixer,
  19851. msm_routing_put_port_mixer),
  19852. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19853. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19854. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19855. msm_routing_get_port_mixer,
  19856. msm_routing_put_port_mixer),
  19857. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19858. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19859. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19860. msm_routing_get_port_mixer,
  19861. msm_routing_put_port_mixer),
  19862. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19863. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19864. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19865. msm_routing_get_port_mixer,
  19866. msm_routing_put_port_mixer),
  19867. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19868. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19869. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19870. msm_routing_get_port_mixer,
  19871. msm_routing_put_port_mixer),
  19872. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19873. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19874. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19875. msm_routing_get_port_mixer,
  19876. msm_routing_put_port_mixer),
  19877. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19878. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19879. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19880. msm_routing_get_port_mixer,
  19881. msm_routing_put_port_mixer),
  19882. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19883. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19884. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19885. msm_routing_get_port_mixer,
  19886. msm_routing_put_port_mixer),
  19887. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19888. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19889. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19890. msm_routing_get_port_mixer,
  19891. msm_routing_put_port_mixer),
  19892. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19893. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19894. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19895. msm_routing_get_port_mixer,
  19896. msm_routing_put_port_mixer),
  19897. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19898. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19899. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19900. msm_routing_get_port_mixer,
  19901. msm_routing_put_port_mixer),
  19902. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19903. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19904. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19905. msm_routing_get_port_mixer,
  19906. msm_routing_put_port_mixer),
  19907. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19908. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19909. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19910. msm_routing_get_port_mixer,
  19911. msm_routing_put_port_mixer),
  19912. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19913. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19914. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19915. msm_routing_get_port_mixer,
  19916. msm_routing_put_port_mixer),
  19917. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19918. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19919. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19920. msm_routing_get_port_mixer,
  19921. msm_routing_put_port_mixer),
  19922. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19923. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19924. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19925. msm_routing_get_port_mixer,
  19926. msm_routing_put_port_mixer),
  19927. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19928. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19929. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19930. msm_routing_get_port_mixer,
  19931. msm_routing_put_port_mixer),
  19932. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19933. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19934. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19935. msm_routing_get_port_mixer,
  19936. msm_routing_put_port_mixer),
  19937. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19938. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19939. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19940. msm_routing_get_port_mixer,
  19941. msm_routing_put_port_mixer),
  19942. };
  19943. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  19944. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  19945. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19946. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  19947. msm_routing_get_port_mixer,
  19948. msm_routing_put_port_mixer),
  19949. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19950. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19951. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19952. msm_routing_get_port_mixer,
  19953. msm_routing_put_port_mixer),
  19954. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19955. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19956. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19957. msm_routing_get_port_mixer,
  19958. msm_routing_put_port_mixer),
  19959. };
  19960. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  19961. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19962. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19963. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19964. msm_routing_put_port_mixer),
  19965. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19966. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19967. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19968. msm_routing_put_port_mixer),
  19969. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19970. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19971. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  19972. msm_routing_put_port_mixer),
  19973. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19974. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19975. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19976. msm_routing_put_port_mixer),
  19977. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  19978. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19979. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19980. msm_routing_put_port_mixer),
  19981. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  19982. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19983. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19984. msm_routing_put_port_mixer),
  19985. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19986. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19987. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19988. msm_routing_put_port_mixer),
  19989. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  19990. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19991. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  19992. msm_routing_put_port_mixer),
  19993. };
  19994. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  19995. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19996. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  19997. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19998. msm_routing_put_port_mixer),
  19999. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20000. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20001. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20002. msm_routing_put_port_mixer),
  20003. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20004. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20005. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20006. msm_routing_put_port_mixer),
  20007. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20008. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20009. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20010. msm_routing_put_port_mixer),
  20011. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20012. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20013. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20014. msm_routing_put_port_mixer),
  20015. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20016. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20017. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20018. msm_routing_put_port_mixer),
  20019. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20020. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20021. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20022. msm_routing_put_port_mixer),
  20023. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20024. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20025. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20026. msm_routing_put_port_mixer),
  20027. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20028. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20029. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20030. msm_routing_put_port_mixer),
  20031. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20032. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20033. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  20034. msm_routing_put_port_mixer),
  20035. };
  20036. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  20037. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20038. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20039. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20040. msm_routing_put_listen_mixer),
  20041. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20042. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20043. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20044. msm_routing_put_listen_mixer),
  20045. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20046. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20047. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20048. msm_routing_put_listen_mixer),
  20049. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20050. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20051. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20052. msm_routing_put_listen_mixer),
  20053. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20054. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20055. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20056. msm_routing_put_listen_mixer),
  20057. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20058. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20059. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20060. msm_routing_put_listen_mixer),
  20061. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20062. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20063. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20064. msm_routing_put_listen_mixer),
  20065. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20066. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20067. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20068. msm_routing_put_listen_mixer),
  20069. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20070. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20071. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20072. msm_routing_put_listen_mixer),
  20073. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20074. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20075. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20076. msm_routing_put_listen_mixer),
  20077. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20078. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20079. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20080. msm_routing_put_listen_mixer),
  20081. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20082. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20083. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20084. msm_routing_put_listen_mixer),
  20085. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20086. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20087. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20088. msm_routing_put_listen_mixer),
  20089. };
  20090. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  20091. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20092. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20093. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20094. msm_routing_put_listen_mixer),
  20095. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  20096. SND_SOC_NOPM,
  20097. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20098. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20099. msm_routing_put_listen_mixer),
  20100. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20101. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20102. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20103. msm_routing_put_listen_mixer),
  20104. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20105. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20106. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20107. msm_routing_put_listen_mixer),
  20108. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20109. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20110. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20111. msm_routing_put_listen_mixer),
  20112. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20113. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20114. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20115. msm_routing_put_listen_mixer),
  20116. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20117. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20118. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20119. msm_routing_put_listen_mixer),
  20120. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20121. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20122. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20123. msm_routing_put_listen_mixer),
  20124. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20125. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20126. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20127. msm_routing_put_listen_mixer),
  20128. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20129. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20130. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20131. msm_routing_put_listen_mixer),
  20132. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20133. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20134. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20135. msm_routing_put_listen_mixer),
  20136. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20137. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20138. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20139. msm_routing_put_listen_mixer),
  20140. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20141. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20142. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20143. msm_routing_put_listen_mixer),
  20144. };
  20145. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  20146. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20147. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20148. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20149. msm_routing_put_listen_mixer),
  20150. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20151. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20152. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20153. msm_routing_put_listen_mixer),
  20154. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20155. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20156. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20157. msm_routing_put_listen_mixer),
  20158. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20159. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20160. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20161. msm_routing_put_listen_mixer),
  20162. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20163. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20164. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20165. msm_routing_put_listen_mixer),
  20166. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20167. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20168. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20169. msm_routing_put_listen_mixer),
  20170. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20171. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20172. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20173. msm_routing_put_listen_mixer),
  20174. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20175. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20176. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20177. msm_routing_put_listen_mixer),
  20178. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20179. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20180. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20181. msm_routing_put_listen_mixer),
  20182. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20183. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20184. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20185. msm_routing_put_listen_mixer),
  20186. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20187. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20188. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20189. msm_routing_put_listen_mixer),
  20190. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20191. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20192. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20193. msm_routing_put_listen_mixer),
  20194. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20195. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20196. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20197. msm_routing_put_listen_mixer),
  20198. };
  20199. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  20200. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20201. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20202. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20203. msm_routing_put_listen_mixer),
  20204. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20205. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20206. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20207. msm_routing_put_listen_mixer),
  20208. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20209. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20210. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20211. msm_routing_put_listen_mixer),
  20212. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20213. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20214. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20215. msm_routing_put_listen_mixer),
  20216. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20217. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20218. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20219. msm_routing_put_listen_mixer),
  20220. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20221. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20222. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20223. msm_routing_put_listen_mixer),
  20224. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20225. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20226. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20227. msm_routing_put_listen_mixer),
  20228. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20229. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20230. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20231. msm_routing_put_listen_mixer),
  20232. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20233. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20234. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20235. msm_routing_put_listen_mixer),
  20236. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20237. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20238. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20239. msm_routing_put_listen_mixer),
  20240. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20241. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20242. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20243. msm_routing_put_listen_mixer),
  20244. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20245. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20246. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20247. msm_routing_put_listen_mixer),
  20248. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20249. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20250. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20251. msm_routing_put_listen_mixer),
  20252. };
  20253. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  20254. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20255. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20256. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20257. msm_routing_put_listen_mixer),
  20258. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20259. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20260. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20261. msm_routing_put_listen_mixer),
  20262. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20263. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20264. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20265. msm_routing_put_listen_mixer),
  20266. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20267. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20268. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20269. msm_routing_put_listen_mixer),
  20270. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20271. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20272. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20273. msm_routing_put_listen_mixer),
  20274. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20275. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20276. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20277. msm_routing_put_listen_mixer),
  20278. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20279. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20280. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20281. msm_routing_put_listen_mixer),
  20282. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20283. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20284. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20285. msm_routing_put_listen_mixer),
  20286. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20287. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20288. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20289. msm_routing_put_listen_mixer),
  20290. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20291. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20292. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20293. msm_routing_put_listen_mixer),
  20294. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20295. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20296. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20297. msm_routing_put_listen_mixer),
  20298. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20299. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20300. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20301. msm_routing_put_listen_mixer),
  20302. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20303. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20304. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20305. msm_routing_put_listen_mixer),
  20306. };
  20307. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  20308. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20309. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20310. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20311. msm_routing_put_listen_mixer),
  20312. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20313. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20314. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20315. msm_routing_put_listen_mixer),
  20316. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20317. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20318. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20319. msm_routing_put_listen_mixer),
  20320. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20321. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20322. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20323. msm_routing_put_listen_mixer),
  20324. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20325. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20326. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20327. msm_routing_put_listen_mixer),
  20328. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20329. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20330. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20331. msm_routing_put_listen_mixer),
  20332. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20333. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20334. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20335. msm_routing_put_listen_mixer),
  20336. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20337. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20338. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20339. msm_routing_put_listen_mixer),
  20340. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20341. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20342. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20343. msm_routing_put_listen_mixer),
  20344. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20345. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20346. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20347. msm_routing_put_listen_mixer),
  20348. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20349. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20350. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20351. msm_routing_put_listen_mixer),
  20352. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20353. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20354. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20355. msm_routing_put_listen_mixer),
  20356. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20357. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20358. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20359. msm_routing_put_listen_mixer),
  20360. };
  20361. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  20362. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20363. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20364. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20365. msm_routing_put_listen_mixer),
  20366. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20367. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20368. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20369. msm_routing_put_listen_mixer),
  20370. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20371. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20372. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20373. msm_routing_put_listen_mixer),
  20374. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20375. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20376. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20377. msm_routing_put_listen_mixer),
  20378. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20379. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20380. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20381. msm_routing_put_listen_mixer),
  20382. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20383. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20384. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20385. msm_routing_put_listen_mixer),
  20386. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20387. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20388. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20389. msm_routing_put_listen_mixer),
  20390. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20391. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20392. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20393. msm_routing_put_listen_mixer),
  20394. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20395. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20396. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20397. msm_routing_put_listen_mixer),
  20398. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20399. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20400. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20401. msm_routing_put_listen_mixer),
  20402. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20403. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20404. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20405. msm_routing_put_listen_mixer),
  20406. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20407. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20408. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20409. msm_routing_put_listen_mixer),
  20410. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20411. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20412. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20413. msm_routing_put_listen_mixer),
  20414. };
  20415. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  20416. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20417. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20418. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20419. msm_routing_put_listen_mixer),
  20420. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20421. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20422. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20423. msm_routing_put_listen_mixer),
  20424. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20425. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20426. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20427. msm_routing_put_listen_mixer),
  20428. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20429. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20430. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20431. msm_routing_put_listen_mixer),
  20432. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20433. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20434. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20435. msm_routing_put_listen_mixer),
  20436. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20437. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20438. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20439. msm_routing_put_listen_mixer),
  20440. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20441. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20442. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20443. msm_routing_put_listen_mixer),
  20444. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20445. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20446. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20447. msm_routing_put_listen_mixer),
  20448. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20449. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20450. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20451. msm_routing_put_listen_mixer),
  20452. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20453. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20454. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20455. msm_routing_put_listen_mixer),
  20456. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20457. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20458. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20459. msm_routing_put_listen_mixer),
  20460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20462. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20463. msm_routing_put_listen_mixer),
  20464. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20465. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20466. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20467. msm_routing_put_listen_mixer),
  20468. };
  20469. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  20470. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20471. 0, 1, 0, msm_routing_get_switch_mixer,
  20472. msm_routing_put_switch_mixer);
  20473. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  20474. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20475. 0, 1, 0, msm_routing_get_switch_mixer,
  20476. msm_routing_put_switch_mixer);
  20477. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  20478. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20479. 0, 1, 0, msm_routing_get_switch_mixer,
  20480. msm_routing_put_switch_mixer);
  20481. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  20482. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20483. 0, 1, 0, msm_routing_get_switch_mixer,
  20484. msm_routing_put_switch_mixer);
  20485. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  20486. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20487. 0, 1, 0, msm_routing_get_switch_mixer,
  20488. msm_routing_put_switch_mixer);
  20489. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  20490. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20491. 0, 1, 0, msm_routing_get_switch_mixer,
  20492. msm_routing_put_switch_mixer);
  20493. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  20494. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20495. 0, 1, 0, msm_routing_get_switch_mixer,
  20496. msm_routing_put_switch_mixer);
  20497. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  20498. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20499. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  20500. msm_routing_put_fm_pcmrx_switch_mixer);
  20501. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  20502. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20503. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  20504. msm_routing_put_int0_mi2s_switch_mixer);
  20505. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  20506. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20507. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  20508. msm_routing_put_int4_mi2s_switch_mixer);
  20509. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  20510. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20511. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  20512. msm_routing_put_pri_mi2s_switch_mixer);
  20513. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  20514. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20515. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  20516. msm_routing_put_sec_mi2s_switch_mixer);
  20517. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  20518. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20519. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  20520. msm_routing_put_tert_mi2s_switch_mixer);
  20521. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  20522. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20523. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  20524. msm_routing_put_quat_mi2s_switch_mixer);
  20525. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  20526. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20527. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  20528. msm_routing_put_quin_mi2s_switch_mixer);
  20529. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  20530. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20531. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  20532. msm_routing_put_sen_mi2s_switch_mixer);
  20533. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  20534. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20535. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20536. msm_routing_put_hfp_switch_mixer);
  20537. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  20538. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20539. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20540. msm_routing_put_hfp_switch_mixer);
  20541. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  20542. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20543. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20544. msm_routing_put_hfp_switch_mixer);
  20545. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  20546. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20547. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20548. msm_routing_put_hfp_switch_mixer);
  20549. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  20550. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20551. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  20552. msm_routing_put_usb_switch_mixer);
  20553. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  20554. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20555. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  20556. msm_routing_a2dp_switch_mixer_put);
  20557. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  20558. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20559. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  20560. msm_routing_sco_switch_mixer_put);
  20561. static const struct soc_enum lsm_port_enum =
  20562. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  20563. static const char * const lsm_func_text[] = {
  20564. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  20565. };
  20566. static const struct soc_enum lsm_func_enum =
  20567. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  20568. static const struct snd_kcontrol_new lsm_controls[] = {
  20569. /* kcontrol of lsm_function */
  20570. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20571. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20572. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20573. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20574. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20575. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20576. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20577. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20578. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20579. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20580. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20581. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20582. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20583. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20584. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20585. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20586. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20587. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20588. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20589. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20590. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20591. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20592. /* kcontrol of lsm_port */
  20593. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  20594. msm_routing_lsm_port_get,
  20595. msm_routing_lsm_port_put),
  20596. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  20597. msm_routing_lsm_port_get,
  20598. msm_routing_lsm_port_put),
  20599. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  20600. msm_routing_lsm_port_get,
  20601. msm_routing_lsm_port_put),
  20602. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  20603. msm_routing_lsm_port_get,
  20604. msm_routing_lsm_port_put),
  20605. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  20606. msm_routing_lsm_port_get,
  20607. msm_routing_lsm_port_put),
  20608. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  20609. msm_routing_lsm_port_get,
  20610. msm_routing_lsm_port_put),
  20611. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  20612. msm_routing_lsm_port_get,
  20613. msm_routing_lsm_port_put),
  20614. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  20615. msm_routing_lsm_port_get,
  20616. msm_routing_lsm_port_put),
  20617. };
  20618. static const char * const aanc_slim_0_rx_text[] = {
  20619. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  20620. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  20621. };
  20622. static const struct soc_enum aanc_slim_0_rx_enum =
  20623. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  20624. aanc_slim_0_rx_text);
  20625. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  20626. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  20627. msm_routing_slim_0_rx_aanc_mux_get,
  20628. msm_routing_slim_0_rx_aanc_mux_put)
  20629. };
  20630. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  20631. struct snd_ctl_elem_value *ucontrol)
  20632. {
  20633. ucontrol->value.integer.value[0] = aanc_level;
  20634. return 0;
  20635. }
  20636. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  20637. struct snd_ctl_elem_value *ucontrol)
  20638. {
  20639. int ret = 0;
  20640. mutex_lock(&routing_lock);
  20641. aanc_level = ucontrol->value.integer.value[0];
  20642. pr_debug("%s: value: %ld\n",
  20643. __func__, ucontrol->value.integer.value[0]);
  20644. ret = afe_set_aanc_noise_level(aanc_level);
  20645. mutex_unlock(&routing_lock);
  20646. return ret;
  20647. }
  20648. static const struct snd_kcontrol_new aanc_noise_level[] = {
  20649. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  20650. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  20651. };
  20652. static int msm_routing_get_stereo_to_custom_stereo_control(
  20653. struct snd_kcontrol *kcontrol,
  20654. struct snd_ctl_elem_value *ucontrol)
  20655. {
  20656. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  20657. return 0;
  20658. }
  20659. static int msm_routing_put_stereo_to_custom_stereo_control(
  20660. struct snd_kcontrol *kcontrol,
  20661. struct snd_ctl_elem_value *ucontrol)
  20662. {
  20663. int flag = 0, i = 0, rc = 0, idx = 0;
  20664. int be_index = 0, port_id, topo_id;
  20665. unsigned int session_id = 0;
  20666. uint16_t op_FL_ip_FL_weight = 0;
  20667. uint16_t op_FL_ip_FR_weight = 0;
  20668. uint16_t op_FR_ip_FL_weight = 0;
  20669. uint16_t op_FR_ip_FR_weight = 0;
  20670. flag = ucontrol->value.integer.value[0];
  20671. pr_debug("%s E flag %d\n", __func__, flag);
  20672. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  20673. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  20674. __func__, is_custom_stereo_on, flag);
  20675. return 0;
  20676. }
  20677. is_custom_stereo_on = flag ? true : false;
  20678. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  20679. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  20680. port_id = msm_bedais[be_index].port_id;
  20681. if (!msm_bedais[be_index].active)
  20682. continue;
  20683. if ((port_id != SLIMBUS_0_RX) &&
  20684. (port_id != RT_PROXY_PORT_001_RX) &&
  20685. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  20686. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  20687. continue;
  20688. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  20689. MSM_FRONTEND_DAI_MM_SIZE) {
  20690. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  20691. LEGACY_PCM_MODE)
  20692. goto skip_send_custom_stereo;
  20693. session_id =
  20694. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  20695. if (is_custom_stereo_on) {
  20696. op_FL_ip_FL_weight =
  20697. Q14_GAIN_ZERO_POINT_FIVE;
  20698. op_FL_ip_FR_weight =
  20699. Q14_GAIN_ZERO_POINT_FIVE;
  20700. op_FR_ip_FL_weight =
  20701. Q14_GAIN_ZERO_POINT_FIVE;
  20702. op_FR_ip_FR_weight =
  20703. Q14_GAIN_ZERO_POINT_FIVE;
  20704. } else {
  20705. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  20706. op_FL_ip_FR_weight = 0;
  20707. op_FR_ip_FL_weight = 0;
  20708. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  20709. }
  20710. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20711. unsigned long copp =
  20712. session_copp_map[i]
  20713. [SESSION_TYPE_RX][be_index];
  20714. if (!test_bit(idx, &copp))
  20715. goto skip_send_custom_stereo;
  20716. topo_id = adm_get_topology_for_port_copp_idx(
  20717. msm_bedais[be_index].port_id, idx);
  20718. if (topo_id < 0)
  20719. pr_debug("%s:Err:custom stereo topo %d",
  20720. __func__, topo_id);
  20721. pr_debug("idx %d\n", idx);
  20722. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  20723. rc = msm_ds2_dap_set_custom_stereo_onoff
  20724. (msm_bedais[be_index].port_id,
  20725. idx, is_custom_stereo_on);
  20726. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  20727. rc = dolby_dap_set_custom_stereo_onoff(
  20728. msm_bedais[be_index].port_id,
  20729. idx, is_custom_stereo_on);
  20730. else
  20731. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  20732. (msm_bedais[be_index].port_id,
  20733. idx, session_id,
  20734. op_FL_ip_FL_weight,
  20735. op_FL_ip_FR_weight,
  20736. op_FR_ip_FL_weight,
  20737. op_FR_ip_FR_weight);
  20738. if (rc < 0)
  20739. skip_send_custom_stereo:
  20740. pr_err("%s: err setting custom stereo\n",
  20741. __func__);
  20742. }
  20743. }
  20744. }
  20745. return 0;
  20746. }
  20747. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  20748. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  20749. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  20750. msm_routing_put_stereo_to_custom_stereo_control),
  20751. };
  20752. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20753. struct snd_ctl_elem_value *ucontrol)
  20754. {
  20755. return 0;
  20756. }
  20757. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20758. struct snd_ctl_elem_value *ucontrol)
  20759. {
  20760. int i = 0, j;
  20761. int num_app_types = ucontrol->value.integer.value[i++];
  20762. pr_debug("%s\n", __func__);
  20763. memset(app_type_cfg, 0, MAX_APP_TYPES*
  20764. sizeof(struct msm_pcm_routing_app_type_data));
  20765. if (num_app_types > MAX_APP_TYPES) {
  20766. pr_err("%s: number of app types exceed the max supported\n",
  20767. __func__);
  20768. return -EINVAL;
  20769. }
  20770. for (j = 0; j < num_app_types; j++) {
  20771. app_type_cfg[j].app_type =
  20772. ucontrol->value.integer.value[i++];
  20773. app_type_cfg[j].sample_rate =
  20774. ucontrol->value.integer.value[i++];
  20775. app_type_cfg[j].bit_width =
  20776. ucontrol->value.integer.value[i++];
  20777. }
  20778. return 0;
  20779. }
  20780. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  20781. struct snd_ctl_elem_value *ucontrol)
  20782. {
  20783. int j, fe_id, be_id, port_type;
  20784. int ret = 0;
  20785. unsigned long copp;
  20786. struct msm_pcm_routing_bdai_data *bedai;
  20787. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20788. SESSION_TYPE_RX;
  20789. int app_type = ucontrol->value.integer.value[1];
  20790. int gain = (ucontrol->value.integer.value[2] +
  20791. ucontrol->value.integer.value[3])/2;
  20792. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20793. MSM_AFE_PORT_TYPE_TX;
  20794. mutex_lock(&routing_lock);
  20795. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20796. if (is_be_dai_extproc(be_id))
  20797. continue;
  20798. bedai = &msm_bedais[be_id];
  20799. if (afe_get_port_type(bedai->port_id) != port_type)
  20800. continue;
  20801. if (!bedai->active)
  20802. continue;
  20803. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20804. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20805. continue;
  20806. if (app_type !=
  20807. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20808. continue;
  20809. copp = session_copp_map[fe_id][dir][be_id];
  20810. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  20811. if (!test_bit(j, &copp))
  20812. continue;
  20813. ret |= adm_set_volume(bedai->port_id, j, gain);
  20814. }
  20815. }
  20816. }
  20817. mutex_unlock(&routing_lock);
  20818. return ret ? -EINVAL : 0;
  20819. }
  20820. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  20821. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  20822. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  20823. msm_routing_put_app_type_cfg_control),
  20824. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  20825. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  20826. };
  20827. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  20828. struct snd_ctl_elem_value *ucontrol)
  20829. {
  20830. int copp_idx, fe_id, be_id, port_type;
  20831. int ret = 0;
  20832. unsigned long copp;
  20833. struct msm_pcm_routing_bdai_data *bedai;
  20834. u8 *packed_params = NULL;
  20835. struct param_hdr_v3 param_hdr;
  20836. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  20837. sizeof(uint32_t));
  20838. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20839. SESSION_TYPE_RX;
  20840. int app_type = ucontrol->value.integer.value[1];
  20841. int module_id = ucontrol->value.integer.value[2];
  20842. int instance_id = ucontrol->value.integer.value[3];
  20843. int param_id = ucontrol->value.integer.value[4];
  20844. int param_value = ucontrol->value.integer.value[5];
  20845. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20846. MSM_AFE_PORT_TYPE_TX;
  20847. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  20848. __func__, app_type, module_id,
  20849. instance_id, param_id, param_value);
  20850. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  20851. if (!packed_params)
  20852. return -ENOMEM;
  20853. memset(&param_hdr, 0, sizeof(param_hdr));
  20854. param_hdr.module_id = module_id;
  20855. param_hdr.instance_id = instance_id;
  20856. param_hdr.param_id = param_id;
  20857. param_hdr.param_size = sizeof(uint32_t);
  20858. packed_param_size = 0;
  20859. mutex_lock(&routing_lock);
  20860. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20861. if (is_be_dai_extproc(be_id))
  20862. continue;
  20863. bedai = &msm_bedais[be_id];
  20864. if (afe_get_port_type(bedai->port_id) != port_type)
  20865. continue;
  20866. if (!bedai->active)
  20867. continue;
  20868. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20869. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20870. continue;
  20871. if (app_type !=
  20872. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20873. continue;
  20874. copp = session_copp_map[fe_id][dir][be_id];
  20875. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  20876. copp_idx++) {
  20877. if (!test_bit(copp_idx, &copp))
  20878. continue;
  20879. ret = q6common_pack_pp_params(packed_params,
  20880. &param_hdr,
  20881. (u8 *) &param_value,
  20882. &packed_param_size);
  20883. if (ret) {
  20884. pr_err("%s: Failed to pack params, error %d\n",
  20885. __func__, ret);
  20886. goto done;
  20887. }
  20888. ret = adm_set_pp_params(bedai->port_id,
  20889. copp_idx, NULL,
  20890. packed_params,
  20891. packed_param_size);
  20892. if (ret) {
  20893. pr_err("%s: Setting param failed with err=%d\n",
  20894. __func__, ret);
  20895. ret = -EINVAL;
  20896. goto done;
  20897. }
  20898. }
  20899. }
  20900. }
  20901. done:
  20902. mutex_unlock(&routing_lock);
  20903. kfree(packed_params);
  20904. return ret;
  20905. }
  20906. static const struct snd_kcontrol_new module_cfg_controls[] = {
  20907. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  20908. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  20909. };
  20910. static int msm_routing_get_lsm_app_type_cfg_control(
  20911. struct snd_kcontrol *kcontrol,
  20912. struct snd_ctl_elem_value *ucontrol)
  20913. {
  20914. int shift = ((struct soc_multi_mixer_control *)
  20915. kcontrol->private_value)->shift;
  20916. int i = 0, j = 0;
  20917. ucontrol->value.integer.value[i] = num_app_cfg_types;
  20918. for (j = 0; j < num_app_cfg_types; ++j) {
  20919. ucontrol->value.integer.value[++i] =
  20920. lsm_app_type_cfg[j].app_type;
  20921. ucontrol->value.integer.value[++i] =
  20922. lsm_app_type_cfg[j].sample_rate;
  20923. ucontrol->value.integer.value[++i] =
  20924. lsm_app_type_cfg[j].bit_width;
  20925. if (shift == 1)
  20926. ucontrol->value.integer.value[++i] =
  20927. lsm_app_type_cfg[j].num_out_channels;
  20928. }
  20929. return 0;
  20930. }
  20931. static int msm_routing_put_lsm_app_type_cfg_control(
  20932. struct snd_kcontrol *kcontrol,
  20933. struct snd_ctl_elem_value *ucontrol)
  20934. {
  20935. int shift = ((struct soc_multi_mixer_control *)
  20936. kcontrol->private_value)->shift;
  20937. int i = 0, j;
  20938. num_app_cfg_types = ucontrol->value.integer.value[i++];
  20939. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  20940. sizeof(struct msm_pcm_routing_app_type_data));
  20941. if (num_app_cfg_types > MAX_APP_TYPES) {
  20942. pr_err("%s: number of app types exceed the max supported\n",
  20943. __func__);
  20944. return -EINVAL;
  20945. }
  20946. for (j = 0; j < num_app_cfg_types; j++) {
  20947. lsm_app_type_cfg[j].app_type =
  20948. ucontrol->value.integer.value[i++];
  20949. lsm_app_type_cfg[j].sample_rate =
  20950. ucontrol->value.integer.value[i++];
  20951. lsm_app_type_cfg[j].bit_width =
  20952. ucontrol->value.integer.value[i++];
  20953. /* Shift of 1 indicates this is V2 mixer control */
  20954. if (shift == 1)
  20955. lsm_app_type_cfg[j].num_out_channels =
  20956. ucontrol->value.integer.value[i++];
  20957. }
  20958. return 0;
  20959. }
  20960. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  20961. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  20962. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20963. msm_routing_put_lsm_app_type_cfg_control),
  20964. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  20965. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20966. msm_routing_put_lsm_app_type_cfg_control),
  20967. };
  20968. static int msm_routing_get_use_ds1_or_ds2_control(
  20969. struct snd_kcontrol *kcontrol,
  20970. struct snd_ctl_elem_value *ucontrol)
  20971. {
  20972. ucontrol->value.integer.value[0] = is_ds2_on;
  20973. return 0;
  20974. }
  20975. static int msm_routing_put_use_ds1_or_ds2_control(
  20976. struct snd_kcontrol *kcontrol,
  20977. struct snd_ctl_elem_value *ucontrol)
  20978. {
  20979. is_ds2_on = ucontrol->value.integer.value[0];
  20980. return 0;
  20981. }
  20982. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  20983. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  20984. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  20985. msm_routing_put_use_ds1_or_ds2_control),
  20986. };
  20987. static int msm_routing_get_hifi_filter_control(
  20988. struct snd_kcontrol *kcontrol,
  20989. struct snd_ctl_elem_value *ucontrol)
  20990. {
  20991. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  20992. return 0;
  20993. }
  20994. static int msm_routing_put_hifi_filter_control(
  20995. struct snd_kcontrol *kcontrol,
  20996. struct snd_ctl_elem_value *ucontrol)
  20997. {
  20998. hifi_filter_enabled = ucontrol->value.integer.value[0];
  20999. return 0;
  21000. }
  21001. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  21002. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  21003. 1, 0, msm_routing_get_hifi_filter_control,
  21004. msm_routing_put_hifi_filter_control),
  21005. };
  21006. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  21007. struct snd_ctl_elem_value *ucontrol) {
  21008. int rc = 0;
  21009. int be_idx = 0;
  21010. char *param_value;
  21011. int *update_param_value;
  21012. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  21013. struct param_hdr_v3 param_hdr;
  21014. param_value = kzalloc(param_size, GFP_KERNEL);
  21015. if (!param_value)
  21016. return -ENOMEM;
  21017. memset(&param_hdr, 0, sizeof(param_hdr));
  21018. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  21019. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  21020. break;
  21021. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  21022. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  21023. param_hdr.instance_id = INSTANCE_ID_0;
  21024. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  21025. param_hdr.param_size = param_size;
  21026. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  21027. NULL, &param_hdr, (u8 *) param_value);
  21028. if (rc) {
  21029. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  21030. kfree(param_value);
  21031. return -EINVAL;
  21032. }
  21033. update_param_value = (int *)param_value;
  21034. ucontrol->value.integer.value[0] = update_param_value[0];
  21035. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  21036. __func__, update_param_value[0]);
  21037. }
  21038. kfree(param_value);
  21039. return 0;
  21040. }
  21041. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  21042. struct snd_ctl_elem_value *ucontrol)
  21043. {
  21044. voc_session_id = ucontrol->value.integer.value[0];
  21045. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  21046. return 0;
  21047. }
  21048. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  21049. struct snd_ctl_elem_value *ucontrol)
  21050. {
  21051. ucontrol->value.integer.value[0] = voc_session_id;
  21052. return 0;
  21053. }
  21054. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  21055. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  21056. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  21057. msm_voc_session_id_put),
  21058. };
  21059. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  21060. struct snd_ctl_elem_info *uinfo)
  21061. {
  21062. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21063. uinfo->count = sizeof(struct sound_focus_param);
  21064. return 0;
  21065. }
  21066. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  21067. struct snd_ctl_elem_value *ucontrol)
  21068. {
  21069. int ret = 0;
  21070. struct sound_focus_param soundFocusData;
  21071. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21072. sizeof(struct sound_focus_param));
  21073. ret = voc_set_sound_focus(soundFocusData);
  21074. if (ret) {
  21075. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21076. __func__, ret);
  21077. ret = -EINVAL;
  21078. }
  21079. return ret;
  21080. }
  21081. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  21082. struct snd_ctl_elem_value *ucontrol)
  21083. {
  21084. int ret = 0;
  21085. struct sound_focus_param soundFocusData;
  21086. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  21087. ret = voc_get_sound_focus(&soundFocusData);
  21088. if (ret) {
  21089. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  21090. __func__, ret);
  21091. ret = -EINVAL;
  21092. goto done;
  21093. }
  21094. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21095. sizeof(struct sound_focus_param));
  21096. done:
  21097. return ret;
  21098. }
  21099. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  21100. struct snd_ctl_elem_info *uinfo)
  21101. {
  21102. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21103. uinfo->count = sizeof(struct source_tracking_param);
  21104. return 0;
  21105. }
  21106. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  21107. struct snd_ctl_elem_value *ucontrol)
  21108. {
  21109. int ret = 0;
  21110. struct source_tracking_param sourceTrackingData;
  21111. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  21112. ret = voc_get_source_tracking(&sourceTrackingData);
  21113. if (ret) {
  21114. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  21115. __func__, ret);
  21116. ret = -EINVAL;
  21117. goto done;
  21118. }
  21119. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21120. sizeof(struct source_tracking_param));
  21121. done:
  21122. return ret;
  21123. }
  21124. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  21125. int *copp_idx)
  21126. {
  21127. int i, idx, be_idx;
  21128. int ret = 0;
  21129. unsigned long copp;
  21130. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  21131. ret = q6audio_validate_port(port_id);
  21132. if (ret < 0) {
  21133. pr_err("%s: port validation failed id 0x%x ret %d\n",
  21134. __func__, port_id, ret);
  21135. ret = -EINVAL;
  21136. goto done;
  21137. }
  21138. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21139. if (msm_bedais[be_idx].port_id == port_id)
  21140. break;
  21141. }
  21142. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21143. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  21144. ret = -EINVAL;
  21145. goto done;
  21146. }
  21147. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21148. MSM_FRONTEND_DAI_MAX) {
  21149. if (!(is_mm_lsm_fe_id(i) &&
  21150. route_check_fe_id_adm_support(i)))
  21151. continue;
  21152. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21153. copp = session_copp_map[i]
  21154. [session_type][be_idx];
  21155. if (test_bit(idx, &copp))
  21156. break;
  21157. }
  21158. if (idx >= MAX_COPPS_PER_PORT)
  21159. continue;
  21160. else
  21161. break;
  21162. }
  21163. if (i >= MSM_FRONTEND_DAI_MAX) {
  21164. pr_debug("%s: Invalid FE, exiting\n", __func__);
  21165. ret = -EINVAL;
  21166. goto done;
  21167. }
  21168. *copp_idx = idx;
  21169. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  21170. done:
  21171. return ret;
  21172. }
  21173. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  21174. const char *prefix, int *port_id)
  21175. {
  21176. int ret = 0;
  21177. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  21178. /*
  21179. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  21180. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  21181. * and compare the string with the backend name to derive the port id.
  21182. */
  21183. if (!strcmp(kcontrol->id.name + strlen(prefix),
  21184. "SLIMBUS_0")) {
  21185. *port_id = SLIMBUS_0_TX;
  21186. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21187. "TERT_MI2S")) {
  21188. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  21189. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21190. "INT3_MI2S")) {
  21191. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  21192. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21193. "VA_CDC_DMA_TX_0")) {
  21194. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  21195. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21196. "TX_CDC_DMA_TX_3")) {
  21197. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  21198. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21199. "QUIN_TDM_TX_0")) {
  21200. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  21201. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21202. "PRIMARY_TDM")) {
  21203. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  21204. } else {
  21205. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  21206. __func__, kcontrol->id.name);
  21207. ret = -EINVAL;
  21208. goto done;
  21209. }
  21210. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  21211. __func__, kcontrol->id.name, *port_id);
  21212. done:
  21213. return ret;
  21214. }
  21215. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  21216. struct snd_ctl_elem_value *ucontrol)
  21217. {
  21218. int ret = 0;
  21219. struct sound_focus_param soundFocusData;
  21220. int port_id, copp_idx;
  21221. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21222. "Sound Focus Audio Tx ", &port_id);
  21223. if (ret != 0) {
  21224. pr_err("%s: Error in deriving port id, err=%d\n",
  21225. __func__, ret);
  21226. ret = -EINVAL;
  21227. goto done;
  21228. }
  21229. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21230. &copp_idx);
  21231. if (ret) {
  21232. pr_err("%s: Could not get copp idx for port_id=%d\n",
  21233. __func__, port_id);
  21234. ret = -EINVAL;
  21235. goto done;
  21236. }
  21237. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21238. sizeof(struct sound_focus_param));
  21239. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  21240. if (ret) {
  21241. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21242. __func__, ret);
  21243. ret = -EINVAL;
  21244. goto done;
  21245. }
  21246. done:
  21247. return ret;
  21248. }
  21249. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  21250. struct snd_ctl_elem_value *ucontrol)
  21251. {
  21252. int ret = 0;
  21253. struct sound_focus_param soundFocusData;
  21254. int port_id, copp_idx;
  21255. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21256. "Sound Focus Audio Tx ", &port_id);
  21257. if (ret) {
  21258. pr_err("%s: Error in deriving port id, err=%d\n",
  21259. __func__, ret);
  21260. ret = -EINVAL;
  21261. goto done;
  21262. }
  21263. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21264. &copp_idx);
  21265. if (ret) {
  21266. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21267. __func__, port_id);
  21268. ret = -EINVAL;
  21269. goto done;
  21270. }
  21271. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  21272. if (ret) {
  21273. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  21274. __func__, ret);
  21275. ret = -EINVAL;
  21276. goto done;
  21277. }
  21278. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21279. sizeof(struct sound_focus_param));
  21280. done:
  21281. return ret;
  21282. }
  21283. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  21284. struct snd_ctl_elem_value *ucontrol)
  21285. {
  21286. int ret = 0;
  21287. struct source_tracking_param sourceTrackingData;
  21288. int port_id, copp_idx;
  21289. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21290. "Source Tracking Audio Tx ", &port_id);
  21291. if (ret) {
  21292. pr_err("%s: Error in deriving port id, err=%d\n",
  21293. __func__, ret);
  21294. ret = -EINVAL;
  21295. goto done;
  21296. }
  21297. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21298. &copp_idx);
  21299. if (ret) {
  21300. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21301. __func__, port_id);
  21302. ret = -EINVAL;
  21303. goto done;
  21304. }
  21305. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  21306. if (ret) {
  21307. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  21308. __func__, ret);
  21309. ret = -EINVAL;
  21310. goto done;
  21311. }
  21312. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21313. sizeof(struct source_tracking_param));
  21314. done:
  21315. return ret;
  21316. }
  21317. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  21318. struct snd_ctl_elem_info *uinfo)
  21319. {
  21320. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21321. uinfo->count = sizeof(struct doa_tracking_mon_param);
  21322. return 0;
  21323. }
  21324. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  21325. struct snd_ctl_elem_value *ucontrol)
  21326. {
  21327. int ret = 0;
  21328. struct doa_tracking_mon_param doa_tracking_data;
  21329. int port_id, copp_idx;
  21330. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  21331. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21332. "Doa Tracking Monitor Listen ", &port_id);
  21333. if (ret) {
  21334. pr_err("%s: Error in deriving port id, err=%d\n",
  21335. __func__, ret);
  21336. ret = -EINVAL;
  21337. goto done;
  21338. }
  21339. /*
  21340. * If copp id exists for given port id, query adm to get doa data.
  21341. * Else query afe for doa tracking params.
  21342. * This is to support in cases where LSM directly connects to
  21343. * AFE for FFNS.
  21344. */
  21345. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21346. &copp_idx);
  21347. if (!ret)
  21348. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  21349. &doa_tracking_data);
  21350. else
  21351. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  21352. if (ret) {
  21353. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  21354. __func__, ret);
  21355. ret = -EINVAL;
  21356. goto done;
  21357. }
  21358. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  21359. sizeof(struct doa_tracking_mon_param));
  21360. done:
  21361. return ret;
  21362. }
  21363. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  21364. {
  21365. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21366. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21367. .name = "Sound Focus Voice Tx SLIMBUS_0",
  21368. .info = msm_sound_focus_info,
  21369. .get = msm_voice_sound_focus_get,
  21370. .put = msm_voice_sound_focus_put,
  21371. },
  21372. {
  21373. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21374. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21375. .name = "Source Tracking Voice Tx SLIMBUS_0",
  21376. .info = msm_source_tracking_info,
  21377. .get = msm_voice_source_tracking_get,
  21378. },
  21379. {
  21380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21381. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21382. .name = "Sound Focus Audio Tx SLIMBUS_0",
  21383. .info = msm_sound_focus_info,
  21384. .get = msm_audio_sound_focus_get,
  21385. .put = msm_audio_sound_focus_put,
  21386. },
  21387. {
  21388. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21389. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21390. .name = "Source Tracking Audio Tx SLIMBUS_0",
  21391. .info = msm_source_tracking_info,
  21392. .get = msm_audio_source_tracking_get,
  21393. },
  21394. {
  21395. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21396. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21397. .name = "Sound Focus Voice Tx TERT_MI2S",
  21398. .info = msm_sound_focus_info,
  21399. .get = msm_voice_sound_focus_get,
  21400. .put = msm_voice_sound_focus_put,
  21401. },
  21402. {
  21403. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21404. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21405. .name = "Source Tracking Voice Tx TERT_MI2S",
  21406. .info = msm_source_tracking_info,
  21407. .get = msm_voice_source_tracking_get,
  21408. },
  21409. {
  21410. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21411. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21412. .name = "Sound Focus Audio Tx TERT_MI2S",
  21413. .info = msm_sound_focus_info,
  21414. .get = msm_audio_sound_focus_get,
  21415. .put = msm_audio_sound_focus_put,
  21416. },
  21417. {
  21418. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21419. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21420. .name = "Source Tracking Audio Tx TERT_MI2S",
  21421. .info = msm_source_tracking_info,
  21422. .get = msm_audio_source_tracking_get,
  21423. },
  21424. {
  21425. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21426. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21427. .name = "Sound Focus Voice Tx INT3_MI2S",
  21428. .info = msm_sound_focus_info,
  21429. .get = msm_voice_sound_focus_get,
  21430. .put = msm_voice_sound_focus_put,
  21431. },
  21432. {
  21433. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21434. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21435. .name = "Source Tracking Voice Tx INT3_MI2S",
  21436. .info = msm_source_tracking_info,
  21437. .get = msm_voice_source_tracking_get,
  21438. },
  21439. {
  21440. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21441. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21442. .name = "Sound Focus Audio Tx INT3_MI2S",
  21443. .info = msm_sound_focus_info,
  21444. .get = msm_audio_sound_focus_get,
  21445. .put = msm_audio_sound_focus_put,
  21446. },
  21447. {
  21448. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21449. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21450. .name = "Source Tracking Audio Tx INT3_MI2S",
  21451. .info = msm_source_tracking_info,
  21452. .get = msm_audio_source_tracking_get,
  21453. },
  21454. {
  21455. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21456. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21457. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  21458. .info = msm_sound_focus_info,
  21459. .get = msm_voice_sound_focus_get,
  21460. .put = msm_voice_sound_focus_put,
  21461. },
  21462. {
  21463. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21464. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21465. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  21466. .info = msm_source_tracking_info,
  21467. .get = msm_voice_source_tracking_get,
  21468. },
  21469. {
  21470. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21471. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21472. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  21473. .info = msm_sound_focus_info,
  21474. .get = msm_audio_sound_focus_get,
  21475. .put = msm_audio_sound_focus_put,
  21476. },
  21477. {
  21478. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21479. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21480. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  21481. .info = msm_source_tracking_info,
  21482. .get = msm_audio_source_tracking_get,
  21483. },
  21484. {
  21485. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21486. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21487. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  21488. .info = msm_sound_focus_info,
  21489. .get = msm_voice_sound_focus_get,
  21490. .put = msm_voice_sound_focus_put,
  21491. },
  21492. {
  21493. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21494. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21495. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  21496. .info = msm_source_tracking_info,
  21497. .get = msm_voice_source_tracking_get,
  21498. },
  21499. {
  21500. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21501. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21502. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  21503. .info = msm_sound_focus_info,
  21504. .get = msm_audio_sound_focus_get,
  21505. .put = msm_audio_sound_focus_put,
  21506. },
  21507. {
  21508. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21509. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21510. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  21511. .info = msm_source_tracking_info,
  21512. .get = msm_audio_source_tracking_get,
  21513. },
  21514. {
  21515. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21516. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21517. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  21518. .info = msm_sound_focus_info,
  21519. .get = msm_voice_sound_focus_get,
  21520. .put = msm_voice_sound_focus_put,
  21521. },
  21522. {
  21523. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21524. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21525. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  21526. .info = msm_source_tracking_info,
  21527. .get = msm_voice_source_tracking_get,
  21528. },
  21529. {
  21530. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21531. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21532. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  21533. .info = msm_sound_focus_info,
  21534. .get = msm_audio_sound_focus_get,
  21535. .put = msm_audio_sound_focus_put,
  21536. },
  21537. {
  21538. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21539. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21540. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  21541. .info = msm_source_tracking_info,
  21542. .get = msm_audio_source_tracking_get,
  21543. },
  21544. {
  21545. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21546. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21547. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  21548. .info = msm_sound_focus_info,
  21549. .get = msm_audio_sound_focus_get,
  21550. .put = msm_audio_sound_focus_put,
  21551. },
  21552. {
  21553. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21554. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21555. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  21556. .info = msm_source_tracking_info,
  21557. .get = msm_audio_source_tracking_get,
  21558. },
  21559. {
  21560. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21561. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21562. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  21563. .info = msm_doa_tracking_mon_info,
  21564. .get = msm_doa_tracking_mon_get,
  21565. },
  21566. };
  21567. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  21568. struct snd_ctl_elem_value *ucontrol)
  21569. {
  21570. int ret = 0;
  21571. int item;
  21572. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21573. pr_debug("%s item is %d\n", __func__,
  21574. ucontrol->value.enumerated.item[0]);
  21575. mutex_lock(&routing_lock);
  21576. item = ucontrol->value.enumerated.item[0];
  21577. if (item < e->items) {
  21578. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21579. __func__, e->shift_l, e->values[item]);
  21580. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21581. e->values[item] < MSM_BACKEND_DAI_MAX)
  21582. /* Enable feedback TX path */
  21583. ret = afe_spk_prot_feed_back_cfg(
  21584. msm_bedais[e->values[item]].port_id,
  21585. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  21586. else {
  21587. pr_debug("%s values are out of range item %d\n",
  21588. __func__, e->values[item]);
  21589. /* Disable feedback TX path */
  21590. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21591. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  21592. else
  21593. ret = -EINVAL;
  21594. }
  21595. } else {
  21596. pr_err("%s item value is out of range item\n", __func__);
  21597. ret = -EINVAL;
  21598. }
  21599. mutex_unlock(&routing_lock);
  21600. return ret;
  21601. }
  21602. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  21603. struct snd_ctl_elem_value *ucontrol)
  21604. {
  21605. int ret = 0;
  21606. int item;
  21607. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21608. pr_debug("%s item is %d\n", __func__,
  21609. ucontrol->value.enumerated.item[0]);
  21610. mutex_lock(&routing_lock);
  21611. item = ucontrol->value.enumerated.item[0];
  21612. if (item < e->items) {
  21613. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21614. __func__, e->shift_l, e->values[item]);
  21615. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21616. e->values[item] < MSM_BACKEND_DAI_MAX)
  21617. /* Enable feedback TX path */
  21618. ret = afe_spk_prot_feed_back_cfg(
  21619. msm_bedais[e->values[item]].port_id,
  21620. msm_bedais[e->shift_l].port_id,
  21621. 1, 1, 1);
  21622. else {
  21623. pr_debug("%s values are out of range item %d\n",
  21624. __func__, e->values[item]);
  21625. /* Disable feedback TX path */
  21626. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21627. ret = afe_spk_prot_feed_back_cfg(0,
  21628. 0, 0, 0, 0);
  21629. else
  21630. ret = -EINVAL;
  21631. }
  21632. } else {
  21633. pr_err("%s item value is out of range item\n", __func__);
  21634. ret = -EINVAL;
  21635. }
  21636. mutex_unlock(&routing_lock);
  21637. return ret;
  21638. }
  21639. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  21640. struct snd_ctl_elem_value *ucontrol)
  21641. {
  21642. pr_debug("%s\n", __func__);
  21643. return 0;
  21644. }
  21645. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  21646. struct snd_ctl_elem_value *ucontrol)
  21647. {
  21648. pr_debug("%s\n", __func__);
  21649. ucontrol->value.enumerated.item[0] = 0;
  21650. return 0;
  21651. }
  21652. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  21653. "ZERO", "SLIM4_TX"
  21654. };
  21655. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  21656. "ZERO", "SLIM4_TX"
  21657. };
  21658. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  21659. "ZERO", "WSA_CDC_DMA_TX_0"
  21660. };
  21661. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  21662. "ZERO", "WSA_CDC_DMA_TX_0"
  21663. };
  21664. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  21665. "ZERO", "SENARY_TX"
  21666. };
  21667. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  21668. "ZERO", "INT5_MI2S_TX"
  21669. };
  21670. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  21671. "ZERO", "INT5_MI2S_TX"
  21672. };
  21673. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  21674. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21675. };
  21676. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  21677. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21678. };
  21679. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  21680. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21681. };
  21682. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  21683. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21684. };
  21685. static const int mi2s_rx_vi_fb_tx_value[] = {
  21686. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  21687. };
  21688. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  21689. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21690. };
  21691. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  21692. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21693. };
  21694. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  21695. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21696. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  21697. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  21698. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  21699. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21700. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  21701. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  21702. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  21703. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21704. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  21705. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  21706. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  21707. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21708. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  21709. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  21710. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  21711. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  21712. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  21713. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  21714. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  21715. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21716. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  21717. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  21718. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  21719. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  21720. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21721. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  21722. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  21723. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  21724. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  21725. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  21726. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21727. spkr_prot_put_vi_lch_port);
  21728. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  21729. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  21730. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21731. spkr_prot_put_vi_rch_port);
  21732. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  21733. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  21734. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21735. spkr_prot_put_vi_lch_port);
  21736. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  21737. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  21738. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21739. spkr_prot_put_vi_rch_port);
  21740. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  21741. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  21742. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  21743. spkr_prot_put_vi_lch_port);
  21744. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  21745. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  21746. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  21747. spkr_prot_put_vi_lch_port);
  21748. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  21749. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  21750. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  21751. spkr_prot_put_vi_rch_port);
  21752. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  21753. /* Frontend AIF */
  21754. /* Widget name equals to Front-End DAI name<Need confirmation>,
  21755. * Stream name must contains substring of front-end dai name
  21756. */
  21757. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  21758. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  21759. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  21760. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  21761. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  21762. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  21763. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  21764. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  21765. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  21766. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  21767. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  21768. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  21769. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  21770. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  21771. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  21772. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  21773. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  21774. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  21775. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  21776. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  21777. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  21778. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  21779. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  21780. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  21781. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  21782. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  21783. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  21784. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  21785. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  21786. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  21787. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  21788. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  21789. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  21790. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  21791. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  21792. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  21793. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  21794. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  21795. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  21796. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  21797. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  21798. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  21799. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  21800. "VoiceMMode1 Playback", 0, 0, 0, 0),
  21801. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  21802. "VoiceMMode1 Capture", 0, 0, 0, 0),
  21803. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  21804. "VoiceMMode2 Playback", 0, 0, 0, 0),
  21805. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  21806. "VoiceMMode2 Capture", 0, 0, 0, 0),
  21807. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  21808. 0, 0, 0, 0),
  21809. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  21810. 0, 0, 0, 0),
  21811. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  21812. 0, 0, 0, 0),
  21813. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  21814. 0, 0, 0, 0),
  21815. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  21816. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  21817. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  21818. 0, 0, 0, 0),
  21819. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  21820. 0, 0, 0, 0),
  21821. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  21822. 0, 0, 0, 0),
  21823. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  21824. 0, 0, 0, 0),
  21825. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  21826. 0, 0, 0, 0),
  21827. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  21828. 0, 0, 0, 0),
  21829. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  21830. 0, 0, 0, 0),
  21831. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  21832. 0, 0, 0, 0),
  21833. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  21834. 0, 0, 0, 0),
  21835. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  21836. 0, 0, 0, 0),
  21837. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  21838. 0, 0, 0, 0),
  21839. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  21840. 0, 0, 0, 0),
  21841. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  21842. 0, 0, 0, 0),
  21843. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  21844. 0, 0, 0, 0),
  21845. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  21846. 0, 0, 0, 0),
  21847. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  21848. 0, 0, 0, 0),
  21849. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  21850. 0, 0, 0, 0),
  21851. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  21852. 0, 0, 0, 0),
  21853. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  21854. 0, 0, 0, 0),
  21855. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  21856. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  21857. 0, 0, 0, 0),
  21858. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  21859. "INT0 MI2S_RX Hostless Playback",
  21860. 0, 0, 0, 0),
  21861. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  21862. "INT4 MI2S_RX Hostless Playback",
  21863. 0, 0, 0, 0),
  21864. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  21865. "Primary MI2S_RX Hostless Playback",
  21866. 0, 0, 0, 0),
  21867. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  21868. "Secondary MI2S_RX Hostless Playback",
  21869. 0, 0, 0, 0),
  21870. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  21871. "Tertiary MI2S_RX Hostless Playback",
  21872. 0, 0, 0, 0),
  21873. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  21874. "Quaternary MI2S_RX Hostless Playback",
  21875. 0, 0, 0, 0),
  21876. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  21877. "Quinary MI2S_RX Hostless Playback",
  21878. 0, 0, 0, 0),
  21879. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  21880. "Senary MI2S_RX Hostless Playback",
  21881. 0, 0, 0, 0),
  21882. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  21883. 0, 0, 0, 0),
  21884. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  21885. 0, 0, 0, 0),
  21886. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  21887. 0, 0, 0, 0),
  21888. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  21889. 0, 0, 0, 0),
  21890. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  21891. 0, 0, 0, 0),
  21892. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  21893. "INT3 MI2S_TX Hostless Capture",
  21894. 0, 0, 0, 0),
  21895. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  21896. "Tertiary MI2S_TX Hostless Capture",
  21897. 0, 0, 0, 0),
  21898. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  21899. "Secondary MI2S_TX Hostless Capture",
  21900. 0, 0, 0, 0),
  21901. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  21902. "Primary MI2S_TX Hostless Capture",
  21903. 0, 0, 0, 0),
  21904. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  21905. 0, 0, 0, 0),
  21906. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  21907. 0, 0, 0, 0),
  21908. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  21909. "Quaternary MI2S_TX Hostless Capture",
  21910. 0, 0, 0, 0),
  21911. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  21912. "Quinary MI2S_TX Hostless Capture",
  21913. 0, 0, 0, 0),
  21914. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  21915. "Senary MI2S_TX Hostless Capture",
  21916. 0, 0, 0, 0),
  21917. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  21918. "Primary TDM0 Hostless Playback",
  21919. 0, 0, 0, 0),
  21920. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  21921. "Primary TDM0 Hostless Capture",
  21922. 0, 0, 0, 0),
  21923. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  21924. "Primary TDM1 Hostless Playback",
  21925. 0, 0, 0, 0),
  21926. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  21927. "Primary TDM1 Hostless Capture",
  21928. 0, 0, 0, 0),
  21929. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  21930. "Primary TDM2 Hostless Playback",
  21931. 0, 0, 0, 0),
  21932. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  21933. "Primary TDM2 Hostless Capture",
  21934. 0, 0, 0, 0),
  21935. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  21936. "Primary TDM3 Hostless Playback",
  21937. 0, 0, 0, 0),
  21938. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  21939. "Primary TDM3 Hostless Capture",
  21940. 0, 0, 0, 0),
  21941. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  21942. "Primary TDM4 Hostless Playback",
  21943. 0, 0, 0, 0),
  21944. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  21945. "Primary TDM4 Hostless Capture",
  21946. 0, 0, 0, 0),
  21947. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  21948. "Primary TDM5 Hostless Playback",
  21949. 0, 0, 0, 0),
  21950. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  21951. "Primary TDM5 Hostless Capture",
  21952. 0, 0, 0, 0),
  21953. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  21954. "Primary TDM6 Hostless Playback",
  21955. 0, 0, 0, 0),
  21956. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  21957. "Primary TDM6 Hostless Capture",
  21958. 0, 0, 0, 0),
  21959. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  21960. "Primary TDM7 Hostless Playback",
  21961. 0, 0, 0, 0),
  21962. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  21963. "Primary TDM7 Hostless Capture",
  21964. 0, 0, 0, 0),
  21965. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  21966. "Secondary TDM0 Hostless Playback",
  21967. 0, 0, 0, 0),
  21968. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  21969. "Secondary TDM0 Hostless Capture",
  21970. 0, 0, 0, 0),
  21971. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  21972. "Secondary TDM1 Hostless Playback",
  21973. 0, 0, 0, 0),
  21974. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  21975. "Secondary TDM1 Hostless Capture",
  21976. 0, 0, 0, 0),
  21977. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  21978. "Secondary TDM2 Hostless Playback",
  21979. 0, 0, 0, 0),
  21980. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  21981. "Secondary TDM2 Hostless Capture",
  21982. 0, 0, 0, 0),
  21983. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  21984. "Secondary TDM3 Hostless Playback",
  21985. 0, 0, 0, 0),
  21986. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  21987. "Secondary TDM3 Hostless Capture",
  21988. 0, 0, 0, 0),
  21989. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  21990. "Secondary TDM4 Hostless Playback",
  21991. 0, 0, 0, 0),
  21992. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  21993. "Secondary TDM4 Hostless Capture",
  21994. 0, 0, 0, 0),
  21995. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  21996. "Secondary TDM5 Hostless Playback",
  21997. 0, 0, 0, 0),
  21998. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  21999. "Secondary TDM5 Hostless Capture",
  22000. 0, 0, 0, 0),
  22001. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  22002. "Secondary TDM6 Hostless Playback",
  22003. 0, 0, 0, 0),
  22004. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  22005. "Secondary TDM6 Hostless Capture",
  22006. 0, 0, 0, 0),
  22007. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  22008. "Secondary TDM7 Hostless Playback",
  22009. 0, 0, 0, 0),
  22010. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  22011. "Secondary TDM7 Hostless Capture",
  22012. 0, 0, 0, 0),
  22013. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  22014. "Tertiary TDM0 Hostless Playback",
  22015. 0, 0, 0, 0),
  22016. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  22017. "Tertiary TDM0 Hostless Capture",
  22018. 0, 0, 0, 0),
  22019. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  22020. "Tertiary TDM1 Hostless Playback",
  22021. 0, 0, 0, 0),
  22022. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  22023. "Tertiary TDM1 Hostless Capture",
  22024. 0, 0, 0, 0),
  22025. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  22026. "Tertiary TDM2 Hostless Playback",
  22027. 0, 0, 0, 0),
  22028. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  22029. "Tertiary TDM2 Hostless Capture",
  22030. 0, 0, 0, 0),
  22031. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  22032. "Tertiary TDM3 Hostless Playback",
  22033. 0, 0, 0, 0),
  22034. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  22035. "Tertiary TDM3 Hostless Capture",
  22036. 0, 0, 0, 0),
  22037. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  22038. "Tertiary TDM4 Hostless Playback",
  22039. 0, 0, 0, 0),
  22040. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  22041. "Tertiary TDM4 Hostless Capture",
  22042. 0, 0, 0, 0),
  22043. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  22044. "Tertiary TDM5 Hostless Playback",
  22045. 0, 0, 0, 0),
  22046. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  22047. "Tertiary TDM5 Hostless Capture",
  22048. 0, 0, 0, 0),
  22049. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  22050. "Tertiary TDM6 Hostless Playback",
  22051. 0, 0, 0, 0),
  22052. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  22053. "Tertiary TDM6 Hostless Capture",
  22054. 0, 0, 0, 0),
  22055. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  22056. "Tertiary TDM7 Hostless Playback",
  22057. 0, 0, 0, 0),
  22058. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  22059. "Tertiary TDM7 Hostless Capture",
  22060. 0, 0, 0, 0),
  22061. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  22062. "Quaternary TDM0 Hostless Playback",
  22063. 0, 0, 0, 0),
  22064. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  22065. "Quaternary TDM0 Hostless Capture",
  22066. 0, 0, 0, 0),
  22067. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  22068. "Quaternary TDM1 Hostless Playback",
  22069. 0, 0, 0, 0),
  22070. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  22071. "Quaternary TDM1 Hostless Capture",
  22072. 0, 0, 0, 0),
  22073. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  22074. "Quaternary TDM2 Hostless Playback",
  22075. 0, 0, 0, 0),
  22076. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  22077. "Quaternary TDM2 Hostless Capture",
  22078. 0, 0, 0, 0),
  22079. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  22080. "Quaternary TDM3 Hostless Playback",
  22081. 0, 0, 0, 0),
  22082. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  22083. "Quaternary TDM3 Hostless Capture",
  22084. 0, 0, 0, 0),
  22085. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  22086. "Quaternary TDM4 Hostless Playback",
  22087. 0, 0, 0, 0),
  22088. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  22089. "Quaternary TDM4 Hostless Capture",
  22090. 0, 0, 0, 0),
  22091. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  22092. "Quaternary TDM5 Hostless Playback",
  22093. 0, 0, 0, 0),
  22094. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  22095. "Quaternary TDM5 Hostless Capture",
  22096. 0, 0, 0, 0),
  22097. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  22098. "Quaternary TDM6 Hostless Playback",
  22099. 0, 0, 0, 0),
  22100. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  22101. "Quaternary TDM6 Hostless Capture",
  22102. 0, 0, 0, 0),
  22103. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  22104. "Quaternary TDM7 Hostless Playback",
  22105. 0, 0, 0, 0),
  22106. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  22107. "Quaternary TDM7 Hostless Capture",
  22108. 0, 0, 0, 0),
  22109. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  22110. "Quinary TDM0 Hostless Playback",
  22111. 0, 0, 0, 0),
  22112. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  22113. "Quinary TDM0 Hostless Capture",
  22114. 0, 0, 0, 0),
  22115. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  22116. "Quinary TDM1 Hostless Playback",
  22117. 0, 0, 0, 0),
  22118. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  22119. "Quinary TDM1 Hostless Capture",
  22120. 0, 0, 0, 0),
  22121. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  22122. "Quinary TDM2 Hostless Playback",
  22123. 0, 0, 0, 0),
  22124. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  22125. "Quinary TDM2 Hostless Capture",
  22126. 0, 0, 0, 0),
  22127. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  22128. "Quinary TDM3 Hostless Playback",
  22129. 0, 0, 0, 0),
  22130. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  22131. "Quinary TDM3 Hostless Capture",
  22132. 0, 0, 0, 0),
  22133. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  22134. "Quinary TDM4 Hostless Playback",
  22135. 0, 0, 0, 0),
  22136. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  22137. "Quinary TDM4 Hostless Capture",
  22138. 0, 0, 0, 0),
  22139. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  22140. "Quinary TDM5 Hostless Playback",
  22141. 0, 0, 0, 0),
  22142. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  22143. "Quinary TDM5 Hostless Capture",
  22144. 0, 0, 0, 0),
  22145. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  22146. "Quinary TDM6 Hostless Playback",
  22147. 0, 0, 0, 0),
  22148. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  22149. "Quinary TDM6 Hostless Capture",
  22150. 0, 0, 0, 0),
  22151. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  22152. "Quinary TDM7 Hostless Playback",
  22153. 0, 0, 0, 0),
  22154. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  22155. "Quinary TDM7 Hostless Capture",
  22156. 0, 0, 0, 0),
  22157. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  22158. "Senary TDM0 Hostless Playback",
  22159. 0, 0, 0, 0),
  22160. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  22161. "Senary TDM0 Hostless Capture",
  22162. 0, 0, 0, 0),
  22163. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  22164. "Senary TDM1 Hostless Playback",
  22165. 0, 0, 0, 0),
  22166. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  22167. "Senary TDM1 Hostless Capture",
  22168. 0, 0, 0, 0),
  22169. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  22170. "Senary TDM2 Hostless Playback",
  22171. 0, 0, 0, 0),
  22172. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  22173. "Senary TDM2 Hostless Capture",
  22174. 0, 0, 0, 0),
  22175. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  22176. "Senary TDM3 Hostless Playback",
  22177. 0, 0, 0, 0),
  22178. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  22179. "Senary TDM3 Hostless Capture",
  22180. 0, 0, 0, 0),
  22181. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  22182. "Senary TDM4 Hostless Playback",
  22183. 0, 0, 0, 0),
  22184. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  22185. "Senary TDM4 Hostless Capture",
  22186. 0, 0, 0, 0),
  22187. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  22188. "Senary TDM5 Hostless Playback",
  22189. 0, 0, 0, 0),
  22190. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  22191. "Senary TDM5 Hostless Capture",
  22192. 0, 0, 0, 0),
  22193. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  22194. "Senary TDM6 Hostless Playback",
  22195. 0, 0, 0, 0),
  22196. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  22197. "Senary TDM6 Hostless Capture",
  22198. 0, 0, 0, 0),
  22199. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  22200. "Senary TDM7 Hostless Playback",
  22201. 0, 0, 0, 0),
  22202. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  22203. "Senary TDM7 Hostless Capture",
  22204. 0, 0, 0, 0),
  22205. /* LSM */
  22206. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  22207. 0, 0, 0, 0),
  22208. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  22209. 0, 0, 0, 0),
  22210. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  22211. 0, 0, 0, 0),
  22212. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  22213. 0, 0, 0, 0),
  22214. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  22215. 0, 0, 0, 0),
  22216. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  22217. 0, 0, 0, 0),
  22218. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  22219. 0, 0, 0, 0),
  22220. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  22221. 0, 0, 0, 0),
  22222. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  22223. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  22224. /* Backend AIF */
  22225. /* Stream name equals to backend dai link stream name */
  22226. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  22227. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  22228. 0, 0, 0, 0),
  22229. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  22230. 0, 0, 0, 0),
  22231. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  22232. 0, 0, 0, 0),
  22233. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  22234. 0, 0, 0, 0),
  22235. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  22236. 0, 0, 0, 0),
  22237. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  22238. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  22239. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  22240. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  22241. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  22242. 0, 0, 0, 0),
  22243. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  22244. 0, 0, 0, 0),
  22245. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  22246. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  22247. 0, 0, 0, 0),
  22248. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  22249. 0, 0, 0, 0),
  22250. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  22251. 0, 0, 0, 0),
  22252. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  22253. "Secondary MI2S Playback SD1",
  22254. 0, 0, 0, 0),
  22255. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  22256. 0, 0, 0, 0),
  22257. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  22258. 0, 0, 0, 0),
  22259. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  22260. 0, 0, 0, 0),
  22261. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  22262. 0, 0, 0, 0),
  22263. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  22264. 0, 0, 0, 0),
  22265. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  22266. 0, 0, 0, 0),
  22267. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  22268. 0, 0, 0, 0),
  22269. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  22270. 0, 0, 0, 0),
  22271. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  22272. 0, 0, 0, 0),
  22273. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  22274. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  22275. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  22276. 0, 0, 0, 0),
  22277. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  22278. 0, 0, 0, 0),
  22279. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  22280. 0, 0, 0, 0),
  22281. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  22282. 0, 0, 0, 0),
  22283. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  22284. 0, 0, 0, 0),
  22285. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  22286. 0, 0, 0, 0),
  22287. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  22288. 0, 0, 0, 0),
  22289. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  22290. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  22291. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  22292. 0, 0, 0, 0),
  22293. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  22294. 0, 0, 0, 0),
  22295. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  22296. 0, 0, 0, 0),
  22297. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  22298. 0, 0, 0, 0),
  22299. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  22300. 0, 0, 0, 0),
  22301. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  22302. 0, 0, 0, 0),
  22303. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  22304. 0, 0, 0, 0),
  22305. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  22306. 0, 0, 0, 0),
  22307. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  22308. 0, 0, 0, 0),
  22309. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  22310. 0, 0, 0, 0),
  22311. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  22312. 0, 0, 0, 0),
  22313. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  22314. 0, 0, 0, 0),
  22315. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  22316. 0, 0, 0, 0),
  22317. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  22318. 0, 0, 0, 0),
  22319. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  22320. 0, 0, 0, 0),
  22321. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  22322. 0, 0, 0, 0),
  22323. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  22324. 0, 0, 0, 0),
  22325. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  22326. 0, 0, 0, 0),
  22327. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  22328. 0, 0, 0, 0),
  22329. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  22330. 0, 0, 0, 0),
  22331. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  22332. 0, 0, 0, 0),
  22333. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  22334. 0, 0, 0, 0),
  22335. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  22336. 0, 0, 0, 0),
  22337. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  22338. 0, 0, 0, 0),
  22339. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  22340. 0, 0, 0, 0),
  22341. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  22342. 0, 0, 0, 0),
  22343. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  22344. 0, 0, 0, 0),
  22345. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  22346. 0, 0, 0, 0),
  22347. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  22348. 0, 0, 0, 0),
  22349. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  22350. 0, 0, 0, 0),
  22351. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  22352. 0, 0, 0, 0),
  22353. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  22354. 0, 0, 0, 0),
  22355. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  22356. 0, 0, 0, 0),
  22357. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  22358. 0, 0, 0, 0),
  22359. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  22360. 0, 0, 0, 0),
  22361. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  22362. 0, 0, 0, 0),
  22363. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  22364. 0, 0, 0, 0),
  22365. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  22366. 0, 0, 0, 0),
  22367. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  22368. 0, 0, 0, 0),
  22369. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  22370. 0, 0, 0, 0),
  22371. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  22372. 0, 0, 0, 0),
  22373. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  22374. 0, 0, 0, 0),
  22375. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  22376. 0, 0, 0, 0),
  22377. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  22378. 0, 0, 0, 0),
  22379. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  22380. 0, 0, 0, 0),
  22381. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  22382. 0, 0, 0, 0),
  22383. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  22384. 0, 0, 0, 0),
  22385. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  22386. 0, 0, 0, 0),
  22387. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  22388. 0, 0, 0, 0),
  22389. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  22390. 0, 0, 0, 0),
  22391. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  22392. 0, 0, 0, 0),
  22393. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  22394. 0, 0, 0, 0),
  22395. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  22396. 0, 0, 0, 0),
  22397. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  22398. 0, 0, 0, 0),
  22399. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  22400. 0, 0, 0, 0),
  22401. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  22402. 0, 0, 0, 0),
  22403. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  22404. 0, 0, 0, 0),
  22405. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  22406. 0, 0, 0, 0),
  22407. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  22408. 0, 0, 0, 0),
  22409. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  22410. 0, 0, 0, 0),
  22411. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  22412. 0, 0, 0, 0),
  22413. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  22414. 0, 0, 0, 0),
  22415. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  22416. 0, 0, 0, 0),
  22417. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  22418. 0, 0, 0, 0),
  22419. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  22420. 0, 0, 0, 0),
  22421. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  22422. 0, 0, 0, 0),
  22423. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  22424. 0, 0, 0, 0),
  22425. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  22426. 0, 0, 0, 0),
  22427. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  22428. 0, 0, 0, 0),
  22429. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  22430. 0, 0, 0, 0),
  22431. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  22432. 0, 0, 0, 0),
  22433. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  22434. 0, 0, 0, 0),
  22435. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  22436. 0, 0, 0, 0),
  22437. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  22438. 0, 0, 0, 0),
  22439. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  22440. 0, 0, 0, 0),
  22441. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  22442. 0, 0, 0, 0),
  22443. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  22444. 0, 0, 0, 0),
  22445. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  22446. 0, 0, 0, 0),
  22447. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  22448. 0, 0, 0, 0),
  22449. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  22450. 0, 0, 0, 0),
  22451. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  22452. 0, 0, 0, 0),
  22453. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  22454. 0, 0, 0, 0),
  22455. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  22456. 0, 0, 0, 0),
  22457. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  22458. 0, 0, 0, 0),
  22459. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  22460. 0, 0, 0, 0),
  22461. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  22462. 0, 0, 0, 0),
  22463. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  22464. 0, 0, 0, 0),
  22465. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  22466. 0, 0, 0, 0),
  22467. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  22468. 0, 0, 0, 0),
  22469. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  22470. 0, 0, 0, 0),
  22471. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  22472. 0, 0, 0, 0),
  22473. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  22474. 0, 0, 0, 0),
  22475. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  22476. 0, 0, 0, 0),
  22477. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  22478. 0, 0, 0, 0),
  22479. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  22480. 0, 0, 0, 0),
  22481. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  22482. 0, 0, 0, 0),
  22483. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  22484. 0, 0, 0, 0),
  22485. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  22486. 0, 0, 0, 0),
  22487. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  22488. 0, 0, 0, 0),
  22489. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  22490. 0, 0, 0, 0),
  22491. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  22492. 0, 0, 0, 0),
  22493. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  22494. 0, 0, 0, 0),
  22495. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  22496. 0, 0, 0, 0),
  22497. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  22498. 0, 0, 0, 0),
  22499. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  22500. 0, 0, 0, 0),
  22501. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  22502. 0, 0, 0, 0),
  22503. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  22504. 0, 0, 0, 0),
  22505. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  22506. 0, 0, 0, 0),
  22507. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  22508. 0, 0, 0, 0),
  22509. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  22510. 0, 0, 0, 0),
  22511. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  22512. 0, 0, 0, 0),
  22513. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  22514. 0, 0, 0, 0),
  22515. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  22516. 0, 0, 0, 0),
  22517. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  22518. 0, 0, 0, 0),
  22519. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  22520. 0, 0, 0, 0),
  22521. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  22522. 0, 0, 0, 0),
  22523. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  22524. 0, 0, 0, 0),
  22525. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  22526. 0, 0, 0, 0),
  22527. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  22528. 0, 0, 0, 0),
  22529. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  22530. 0, 0, 0, 0),
  22531. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  22532. 0, 0, 0, 0),
  22533. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  22534. 0, 0, 0, 0),
  22535. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  22536. 0, 0, 0, 0),
  22537. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  22538. 0, 0, 0, 0),
  22539. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  22540. 0, 0, 0, 0),
  22541. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  22542. 0, 0, 0, 0),
  22543. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  22544. 0, 0, 0, 0),
  22545. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  22546. 0, 0, 0, 0),
  22547. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  22548. 0, 0, 0, 0),
  22549. /* incall */
  22550. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  22551. 0, 0, 0, 0),
  22552. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  22553. 0, 0, 0, 0),
  22554. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  22555. 0, 0, 0, 0),
  22556. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  22557. 0, 0, 0, 0),
  22558. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  22559. 0, 0, 0, 0),
  22560. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  22561. 0, 0, 0, 0),
  22562. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  22563. 0, 0, 0, 0),
  22564. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  22565. 0, 0, 0, 0),
  22566. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  22567. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  22568. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  22569. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  22570. 0, 0, 0, 0),
  22571. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  22572. 0, 0, 0, 0),
  22573. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  22574. 0, 0, 0, 0),
  22575. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  22576. 0, 0, 0, 0),
  22577. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  22578. 0, 0, 0, 0),
  22579. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  22580. 0, 0, 0, 0),
  22581. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  22582. 0, 0, 0, 0),
  22583. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  22584. 0, 0, 0, 0),
  22585. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  22586. 0, 0, 0, 0),
  22587. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  22588. 0, 0, 0, 0),
  22589. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  22590. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  22591. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  22592. 0, 0, 0, 0),
  22593. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  22594. 0, 0, 0, 0),
  22595. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  22596. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  22597. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  22598. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  22599. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  22600. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  22601. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  22602. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  22603. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  22604. /* In- call recording */
  22605. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  22606. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  22607. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  22608. 0, 0, 0, 0),
  22609. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  22610. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  22611. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  22612. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  22613. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  22614. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  22615. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  22616. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  22617. /* Switch Definitions */
  22618. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  22619. &slim_fm_switch_mixer_controls),
  22620. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  22621. &slim1_fm_switch_mixer_controls),
  22622. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  22623. &slim3_fm_switch_mixer_controls),
  22624. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  22625. &slim4_fm_switch_mixer_controls),
  22626. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  22627. &slim6_fm_switch_mixer_controls),
  22628. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22629. &pcm_rx_switch_mixer_controls),
  22630. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22631. &int0_mi2s_rx_switch_mixer_controls),
  22632. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22633. &int4_mi2s_rx_switch_mixer_controls),
  22634. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22635. &pri_mi2s_rx_switch_mixer_controls),
  22636. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22637. &sec_mi2s_rx_switch_mixer_controls),
  22638. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22639. &tert_mi2s_rx_switch_mixer_controls),
  22640. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22641. &quat_mi2s_rx_switch_mixer_controls),
  22642. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22643. &quin_mi2s_rx_switch_mixer_controls),
  22644. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  22645. &sco_slim7_switch_mixer_controls),
  22646. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22647. &sen_mi2s_rx_switch_mixer_controls),
  22648. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22649. &hfp_pri_aux_switch_mixer_controls),
  22650. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22651. &hfp_aux_switch_mixer_controls),
  22652. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  22653. &hfp_int_switch_mixer_controls),
  22654. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22655. &hfp_slim7_switch_mixer_controls),
  22656. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  22657. &usb_switch_mixer_controls),
  22658. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22659. &a2dp_slim7_switch_mixer_controls),
  22660. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22661. &cdc_dma_wsa_switch_mixer_controls),
  22662. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22663. &cdc_dma_rx_switch_mixer_controls),
  22664. /* Mixer definitions */
  22665. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22666. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  22667. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22668. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  22669. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22670. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  22671. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22672. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  22673. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22674. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  22675. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22676. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  22677. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22678. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  22679. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  22680. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  22681. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  22682. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  22683. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  22684. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  22685. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22686. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  22687. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22688. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  22689. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22690. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  22691. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22692. quaternary_mi2s_rx_mixer_controls,
  22693. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  22694. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22695. tertiary_mi2s_rx_mixer_controls,
  22696. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  22697. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22698. secondary_mi2s_rx_mixer_controls,
  22699. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  22700. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22701. secondary_mi2s_rx2_mixer_controls,
  22702. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  22703. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22704. primary_mi2s_rx_mixer_controls,
  22705. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  22706. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22707. int0_mi2s_rx_mixer_controls,
  22708. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  22709. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22710. int4_mi2s_rx_mixer_controls,
  22711. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  22712. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22713. quinary_mi2s_rx_mixer_controls,
  22714. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  22715. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22716. senary_mi2s_rx_mixer_controls,
  22717. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  22718. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22719. pri_tdm_rx_0_mixer_controls,
  22720. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  22721. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22722. pri_tdm_rx_1_mixer_controls,
  22723. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  22724. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22725. pri_tdm_rx_2_mixer_controls,
  22726. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  22727. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22728. pri_tdm_rx_3_mixer_controls,
  22729. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  22730. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22731. pri_tdm_tx_0_mixer_controls,
  22732. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  22733. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22734. sec_tdm_rx_0_mixer_controls,
  22735. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  22736. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22737. sec_tdm_rx_1_mixer_controls,
  22738. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  22739. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22740. sec_tdm_rx_2_mixer_controls,
  22741. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  22742. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22743. sec_tdm_rx_3_mixer_controls,
  22744. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  22745. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22746. sec_tdm_tx_0_mixer_controls,
  22747. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  22748. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22749. tert_tdm_rx_0_mixer_controls,
  22750. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  22751. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22752. tert_tdm_tx_0_mixer_controls,
  22753. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  22754. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22755. tert_tdm_rx_1_mixer_controls,
  22756. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  22757. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22758. tert_tdm_rx_2_mixer_controls,
  22759. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  22760. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22761. tert_tdm_rx_3_mixer_controls,
  22762. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  22763. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22764. tert_tdm_rx_4_mixer_controls,
  22765. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  22766. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22767. quat_tdm_rx_0_mixer_controls,
  22768. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  22769. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22770. quat_tdm_tx_0_mixer_controls,
  22771. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  22772. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22773. quat_tdm_rx_1_mixer_controls,
  22774. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  22775. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22776. quat_tdm_rx_2_mixer_controls,
  22777. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  22778. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22779. quat_tdm_rx_3_mixer_controls,
  22780. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  22781. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22782. quin_tdm_rx_0_mixer_controls,
  22783. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  22784. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22785. quin_tdm_tx_0_mixer_controls,
  22786. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  22787. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22788. quin_tdm_rx_1_mixer_controls,
  22789. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  22790. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22791. quin_tdm_rx_2_mixer_controls,
  22792. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  22793. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22794. quin_tdm_rx_3_mixer_controls,
  22795. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  22796. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22797. sen_tdm_tx_0_mixer_controls,
  22798. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  22799. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22800. sen_tdm_rx_0_mixer_controls,
  22801. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  22802. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22803. sen_tdm_rx_1_mixer_controls,
  22804. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  22805. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22806. sen_tdm_rx_2_mixer_controls,
  22807. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  22808. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22809. sen_tdm_rx_3_mixer_controls,
  22810. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  22811. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22812. pri_meta_mi2s_rx_mixer_controls,
  22813. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  22814. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22815. sec_meta_mi2s_rx_mixer_controls,
  22816. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  22817. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22818. wsa_cdc_dma_rx_0_mixer_controls,
  22819. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  22820. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22821. wsa_cdc_dma_rx_1_mixer_controls,
  22822. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  22823. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22824. rx_cdc_dma_rx_0_mixer_controls,
  22825. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  22826. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22827. rx_cdc_dma_rx_1_mixer_controls,
  22828. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  22829. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22830. rx_cdc_dma_rx_2_mixer_controls,
  22831. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  22832. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22833. rx_cdc_dma_rx_3_mixer_controls,
  22834. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  22835. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22836. rx_cdc_dma_rx_4_mixer_controls,
  22837. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  22838. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22839. rx_cdc_dma_rx_5_mixer_controls,
  22840. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  22841. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22842. rx_cdc_dma_rx_6_mixer_controls,
  22843. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  22844. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22845. rx_cdc_dma_rx_7_mixer_controls,
  22846. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  22847. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  22848. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  22849. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  22850. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  22851. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  22852. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  22853. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  22854. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  22855. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  22856. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  22857. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  22858. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  22859. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  22860. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  22861. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  22862. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  22863. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  22864. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  22865. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  22866. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  22867. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  22868. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  22869. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  22870. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  22871. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  22872. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  22873. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  22874. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  22875. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  22876. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  22877. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  22878. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  22879. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  22880. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  22881. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  22882. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  22883. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  22884. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  22885. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  22886. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  22887. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22888. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  22889. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22890. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  22891. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22892. tert_auxpcm_rx_mixer_controls,
  22893. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  22894. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22895. quat_auxpcm_rx_mixer_controls,
  22896. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  22897. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22898. quin_auxpcm_rx_mixer_controls,
  22899. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  22900. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22901. sen_auxpcm_rx_mixer_controls,
  22902. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  22903. /* incall */
  22904. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  22905. incall_music_delivery_mixer_controls,
  22906. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  22907. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22908. incall_music2_delivery_mixer_controls,
  22909. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  22910. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22911. slimbus_4_rx_mixer_controls,
  22912. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  22913. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22914. slimbus_6_rx_mixer_controls,
  22915. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  22916. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22917. usb_audio_rx_mixer_controls,
  22918. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  22919. /* Voice Mixer */
  22920. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  22921. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  22922. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  22923. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  22924. SND_SOC_NOPM, 0, 0,
  22925. sec_i2s_rx_voice_mixer_controls,
  22926. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  22927. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  22928. SND_SOC_NOPM, 0, 0,
  22929. sec_mi2s_rx_voice_mixer_controls,
  22930. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  22931. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  22932. SND_SOC_NOPM, 0, 0,
  22933. slimbus_rx_voice_mixer_controls,
  22934. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  22935. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  22936. SND_SOC_NOPM, 0, 0,
  22937. bt_sco_rx_voice_mixer_controls,
  22938. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  22939. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  22940. SND_SOC_NOPM, 0, 0,
  22941. afe_pcm_rx_voice_mixer_controls,
  22942. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  22943. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  22944. SND_SOC_NOPM, 0, 0,
  22945. aux_pcm_rx_voice_mixer_controls,
  22946. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  22947. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  22948. SND_SOC_NOPM, 0, 0,
  22949. sec_aux_pcm_rx_voice_mixer_controls,
  22950. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  22951. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  22952. SND_SOC_NOPM, 0, 0,
  22953. tert_aux_pcm_rx_voice_mixer_controls,
  22954. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  22955. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  22956. SND_SOC_NOPM, 0, 0,
  22957. quat_aux_pcm_rx_voice_mixer_controls,
  22958. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  22959. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  22960. SND_SOC_NOPM, 0, 0,
  22961. quin_aux_pcm_rx_voice_mixer_controls,
  22962. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  22963. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  22964. SND_SOC_NOPM, 0, 0,
  22965. sen_aux_pcm_rx_voice_mixer_controls,
  22966. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  22967. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  22968. SND_SOC_NOPM, 0, 0,
  22969. hdmi_rx_voice_mixer_controls,
  22970. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  22971. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  22972. SND_SOC_NOPM, 0, 0,
  22973. mi2s_rx_voice_mixer_controls,
  22974. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  22975. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  22976. SND_SOC_NOPM, 0, 0,
  22977. pri_mi2s_rx_voice_mixer_controls,
  22978. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  22979. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  22980. SND_SOC_NOPM, 0, 0,
  22981. int0_mi2s_rx_voice_mixer_controls,
  22982. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  22983. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  22984. SND_SOC_NOPM, 0, 0,
  22985. int4_mi2s_rx_voice_mixer_controls,
  22986. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  22987. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  22988. SND_SOC_NOPM, 0, 0,
  22989. tert_mi2s_rx_voice_mixer_controls,
  22990. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  22991. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  22992. SND_SOC_NOPM, 0, 0,
  22993. quat_mi2s_rx_voice_mixer_controls,
  22994. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  22995. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  22996. SND_SOC_NOPM, 0, 0,
  22997. quin_mi2s_rx_voice_mixer_controls,
  22998. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  22999. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  23000. SND_SOC_NOPM, 0, 0,
  23001. pri_tdm_rx_0_voice_mixer_controls,
  23002. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  23003. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  23004. SND_SOC_NOPM, 0, 0,
  23005. pri_tdm_rx_1_voice_mixer_controls,
  23006. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  23007. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  23008. SND_SOC_NOPM, 0, 0,
  23009. pri_tdm_rx_2_voice_mixer_controls,
  23010. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  23011. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  23012. SND_SOC_NOPM, 0, 0,
  23013. pri_tdm_rx_3_voice_mixer_controls,
  23014. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  23015. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  23016. SND_SOC_NOPM, 0, 0,
  23017. sen_mi2s_rx_voice_mixer_controls,
  23018. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  23019. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  23020. SND_SOC_NOPM, 0, 0,
  23021. quat_tdm_rx_2_voice_mixer_controls,
  23022. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  23023. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  23024. SND_SOC_NOPM, 0, 0,
  23025. wsa_cdc_dma_rx_0_voice_mixer_controls,
  23026. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  23027. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  23028. SND_SOC_NOPM, 0, 0,
  23029. rx_cdc_dma_rx_0_voice_mixer_controls,
  23030. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  23031. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  23032. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  23033. ARRAY_SIZE(tx_voip_mixer_controls)),
  23034. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  23035. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  23036. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  23037. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  23038. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  23039. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  23040. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23041. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  23042. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23043. int_bt_a2dp_rx_mixer_controls,
  23044. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  23045. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23046. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  23047. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23048. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  23049. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23050. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  23051. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23052. tx_voice2_stub_mixer_controls,
  23053. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  23054. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23055. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  23056. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  23057. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  23058. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  23059. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  23060. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23061. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  23062. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  23063. SND_SOC_NOPM, 0, 0,
  23064. slimbus_6_rx_voice_mixer_controls,
  23065. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  23066. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23067. slimbus_7_rx_voice_mixer_controls,
  23068. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  23069. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23070. slimbus_8_rx_voice_mixer_controls,
  23071. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  23072. /* port mixer */
  23073. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  23074. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  23075. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  23076. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  23077. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  23078. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  23079. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  23080. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  23081. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  23082. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  23083. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  23084. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  23085. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  23086. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  23087. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  23088. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  23089. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  23090. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  23091. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  23092. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  23093. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  23094. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23095. sbus_1_rx_port_mixer_controls,
  23096. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  23097. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23098. bt_sco_rx_port_mixer_controls,
  23099. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  23100. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  23101. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  23102. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  23103. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  23104. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  23105. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  23106. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  23107. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  23108. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  23109. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  23110. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  23111. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  23112. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  23113. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  23114. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  23115. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  23116. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  23117. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  23118. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  23119. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  23120. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  23121. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23122. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  23123. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23124. primary_mi2s_rx_port_mixer_controls,
  23125. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  23126. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23127. sec_mi2s_rx_port_mixer_controls,
  23128. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  23129. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23130. tert_mi2s_rx_port_mixer_controls,
  23131. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  23132. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23133. quat_mi2s_rx_port_mixer_controls,
  23134. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  23135. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23136. quin_mi2s_rx_port_mixer_controls,
  23137. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  23138. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23139. sen_mi2s_rx_port_mixer_controls,
  23140. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  23141. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23142. pri_tdm_rx_0_port_mixer_controls,
  23143. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  23144. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23145. pri_tdm_rx_1_port_mixer_controls,
  23146. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  23147. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23148. pri_tdm_rx_2_port_mixer_controls,
  23149. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  23150. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23151. pri_tdm_rx_3_port_mixer_controls,
  23152. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  23153. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23154. sec_tdm_rx_0_port_mixer_controls,
  23155. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  23156. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23157. sec_tdm_rx_1_port_mixer_controls,
  23158. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  23159. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23160. sec_tdm_rx_2_port_mixer_controls,
  23161. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  23162. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23163. sec_tdm_rx_3_port_mixer_controls,
  23164. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  23165. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23166. sec_tdm_rx_7_port_mixer_controls,
  23167. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  23168. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23169. tert_tdm_rx_0_port_mixer_controls,
  23170. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  23171. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23172. tert_tdm_rx_1_port_mixer_controls,
  23173. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  23174. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23175. tert_tdm_rx_2_port_mixer_controls,
  23176. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  23177. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23178. tert_tdm_rx_3_port_mixer_controls,
  23179. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  23180. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23181. quat_tdm_rx_0_port_mixer_controls,
  23182. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  23183. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23184. quat_tdm_rx_1_port_mixer_controls,
  23185. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  23186. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23187. quat_tdm_rx_2_port_mixer_controls,
  23188. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  23189. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23190. quat_tdm_rx_3_port_mixer_controls,
  23191. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  23192. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23193. quat_tdm_rx_7_port_mixer_controls,
  23194. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  23195. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23196. quin_tdm_rx_0_port_mixer_controls,
  23197. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  23198. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23199. quin_tdm_rx_1_port_mixer_controls,
  23200. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  23201. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23202. quin_tdm_rx_2_port_mixer_controls,
  23203. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  23204. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23205. quin_tdm_rx_3_port_mixer_controls,
  23206. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  23207. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23208. quin_tdm_rx_7_port_mixer_controls,
  23209. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  23210. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23211. sen_tdm_rx_0_port_mixer_controls,
  23212. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  23213. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23214. sen_tdm_rx_1_port_mixer_controls,
  23215. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  23216. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23217. sen_tdm_rx_2_port_mixer_controls,
  23218. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  23219. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23220. sen_tdm_rx_3_port_mixer_controls,
  23221. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  23222. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23223. int0_mi2s_rx_port_mixer_controls,
  23224. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  23225. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23226. int4_mi2s_rx_port_mixer_controls,
  23227. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  23228. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23229. wsa_cdc_dma_rx_0_port_mixer_controls,
  23230. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  23231. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23232. rx_cdc_dma_rx_0_port_mixer_controls,
  23233. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  23234. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  23235. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  23236. ARRAY_SIZE(tx_qchat_mixer_controls)),
  23237. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  23238. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  23239. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  23240. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  23241. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  23242. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  23243. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  23244. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  23245. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  23246. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  23247. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  23248. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  23249. /* lsm mixer definitions */
  23250. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  23251. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  23252. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  23253. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  23254. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  23255. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  23256. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  23257. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  23258. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  23259. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  23260. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  23261. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  23262. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  23263. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  23264. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  23265. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  23266. /* Virtual Pins to force backends ON atm */
  23267. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  23268. SND_SOC_DAPM_INPUT("BE_IN"),
  23269. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23270. &slim0_rx_vi_fb_lch_mux),
  23271. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23272. &slim0_rx_vi_fb_rch_mux),
  23273. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23274. &wsa_rx_0_vi_fb_lch_mux),
  23275. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23276. &wsa_rx_0_vi_fb_rch_mux),
  23277. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  23278. &mi2s_rx_vi_fb_mux),
  23279. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23280. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  23281. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23282. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  23283. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  23284. &voc_ext_ec_mux),
  23285. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  23286. &ext_ec_ref_mux_ul1),
  23287. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  23288. &ext_ec_ref_mux_ul2),
  23289. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  23290. &ext_ec_ref_mux_ul3),
  23291. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  23292. &ext_ec_ref_mux_ul4),
  23293. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  23294. &ext_ec_ref_mux_ul5),
  23295. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  23296. &ext_ec_ref_mux_ul6),
  23297. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  23298. &ext_ec_ref_mux_ul8),
  23299. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  23300. &ext_ec_ref_mux_ul9),
  23301. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  23302. &ext_ec_ref_mux_ul10),
  23303. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  23304. &ext_ec_ref_mux_ul16),
  23305. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  23306. &ext_ec_ref_mux_ul17),
  23307. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  23308. &ext_ec_ref_mux_ul18),
  23309. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  23310. &ext_ec_ref_mux_ul19),
  23311. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  23312. &ext_ec_ref_mux_ul28),
  23313. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  23314. &ext_ec_ref_mux_ul29),
  23315. };
  23316. static const struct snd_soc_dapm_route intercon[] = {
  23317. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23318. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23319. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23320. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23321. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23322. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23323. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23324. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23325. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23326. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23327. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23328. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23329. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23330. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23331. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23332. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23333. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23334. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  23335. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23336. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23337. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23338. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23339. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23340. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23341. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23342. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23343. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23344. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23345. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23346. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23347. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23348. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23349. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23350. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23351. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23352. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  23353. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23354. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23355. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23356. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23357. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23358. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23359. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23360. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23361. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23362. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23363. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23364. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23365. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23366. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23367. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23368. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23369. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23370. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  23371. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23372. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23373. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23374. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23375. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23376. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23377. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23378. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23379. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23380. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23381. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23382. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23383. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23384. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23385. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23386. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23387. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23388. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  23389. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23390. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23391. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23392. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23393. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23394. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23395. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23396. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23397. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23398. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23399. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23400. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23401. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23402. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23403. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23404. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23405. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23406. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  23407. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23408. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23409. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23410. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23411. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23412. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23413. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23414. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23415. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23416. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23417. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23418. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23419. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23420. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23421. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23422. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23423. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23424. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  23425. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23426. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23427. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23428. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23429. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23430. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23431. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23432. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23433. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23434. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23435. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23436. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23437. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23438. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23439. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23440. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23441. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23442. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  23443. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23444. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23445. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23446. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23447. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23448. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23449. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23450. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23451. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23452. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23453. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23454. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23455. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23456. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23457. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23458. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23459. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23460. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  23461. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23462. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23463. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23464. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23465. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23466. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23467. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23468. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23469. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23470. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23471. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23472. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23473. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23474. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23475. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23476. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23477. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23478. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  23479. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23480. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23481. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23482. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23483. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23484. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23485. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23486. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23487. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23488. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23489. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23490. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23491. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23492. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23493. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23494. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23495. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23496. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  23497. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23498. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23499. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23500. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23501. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23502. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23503. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23504. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23505. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23506. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23507. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23508. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23509. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23510. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23511. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23512. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23513. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23514. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  23515. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23516. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23517. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23518. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23519. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23520. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23521. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23522. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23523. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23524. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23525. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23526. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23527. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23528. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23529. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23530. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23531. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23532. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  23533. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23534. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23535. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23536. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23537. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23538. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23539. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23540. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23541. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23542. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23543. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23544. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23545. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23546. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23547. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23548. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23549. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23550. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  23551. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23552. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23553. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23554. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23555. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23556. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23557. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23558. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23559. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23560. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23561. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23562. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23563. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23564. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23565. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23566. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23567. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23568. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  23569. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23570. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23571. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23572. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23573. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23574. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23575. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23576. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23577. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23578. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23579. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23580. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23581. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23582. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23583. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23584. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23585. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23586. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  23587. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  23588. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  23589. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  23590. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  23591. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  23592. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  23593. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  23594. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  23595. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  23596. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  23597. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  23598. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  23599. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  23600. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  23601. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  23602. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  23603. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  23604. {"HDMI", NULL, "HDMI Mixer"},
  23605. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  23606. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  23607. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  23608. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  23609. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  23610. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  23611. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  23612. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  23613. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  23614. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  23615. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  23616. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  23617. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  23618. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  23619. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  23620. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  23621. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  23622. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  23623. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  23624. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  23625. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  23626. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  23627. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  23628. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  23629. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  23630. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  23631. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  23632. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  23633. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  23634. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  23635. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  23636. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  23637. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  23638. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  23639. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  23640. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  23641. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23642. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23643. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23644. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23645. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23646. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23647. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23648. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23649. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23650. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23651. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23652. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23653. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23654. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23655. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23656. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23657. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23658. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  23659. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23660. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23661. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23662. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23663. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23664. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23665. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23666. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23667. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23668. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23669. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23670. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23671. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23672. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23673. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23674. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23675. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23676. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  23677. /* incall */
  23678. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  23679. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  23680. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  23681. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  23682. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  23683. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23684. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23685. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23686. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23687. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  23688. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23689. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23690. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23691. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23692. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  23693. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23694. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23695. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23696. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23697. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23698. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23699. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23700. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23701. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23702. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23703. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23704. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23705. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23706. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23707. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23708. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23709. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23710. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  23711. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23712. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23713. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23714. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23715. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23716. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23717. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23718. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23719. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23720. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23721. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23722. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23723. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23724. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23725. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23726. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23727. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23728. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  23729. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23730. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23731. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23732. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23733. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23734. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23735. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23736. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23737. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23738. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23739. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23740. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23741. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23742. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23743. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23744. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23745. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23746. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  23747. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23748. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23749. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23750. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23751. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23752. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23753. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23754. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23755. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23756. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23757. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23758. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23759. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23760. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23761. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23762. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23763. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23764. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  23765. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23766. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23767. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23768. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23769. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23770. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23771. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  23772. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23773. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23774. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23775. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23776. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23777. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23778. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23779. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23780. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23781. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23782. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23783. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23784. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23785. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23786. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23787. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23788. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23789. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23790. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23791. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23792. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23793. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23794. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23795. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23796. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23797. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23798. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23799. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23800. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23801. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23802. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23803. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23804. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23805. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23806. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23807. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23808. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23809. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23810. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23811. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23812. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23813. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23814. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23815. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23816. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23817. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23818. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23819. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23820. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23821. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23822. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23823. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23824. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23825. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23826. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23827. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23828. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23829. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23830. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23831. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23832. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23833. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23834. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23835. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23836. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23837. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23838. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23839. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23840. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23841. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23842. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23843. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23844. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23845. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23846. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23847. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23848. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23849. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23850. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23851. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23852. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23853. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23854. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23855. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23856. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23857. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23858. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23859. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23860. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23861. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23862. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  23863. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23864. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23865. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23866. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23867. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23868. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23869. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23870. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23871. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23872. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23873. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23874. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23875. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23876. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23877. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23878. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23879. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  23880. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23881. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23882. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23883. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23884. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23885. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23886. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23887. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23888. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23889. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23890. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23891. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23892. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23893. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23894. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23895. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  23896. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23897. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23898. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23899. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23900. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23901. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23902. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23903. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23904. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23905. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23906. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23907. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23908. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23909. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23910. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23911. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  23912. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23913. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  23914. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23915. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23916. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23917. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23918. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23919. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23920. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23921. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23922. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23923. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23924. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23925. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23926. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23927. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23928. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23929. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23930. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23931. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23932. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23933. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  23934. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23935. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23936. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23937. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23938. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23939. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23940. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23941. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23942. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23943. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23944. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23945. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23946. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23947. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23948. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23949. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  23950. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23951. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23952. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23953. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23954. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23955. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23956. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23957. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23958. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23959. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23960. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23961. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23962. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23963. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23964. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23965. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  23966. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23967. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23968. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23969. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23970. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23971. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23972. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23973. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23974. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23975. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23976. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23977. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23978. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23979. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23980. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23981. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23982. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23983. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  23984. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23985. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23986. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23987. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23988. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23989. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23990. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23991. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23992. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23993. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23994. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23995. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23996. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23997. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23998. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23999. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  24000. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24001. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24002. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24003. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24004. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24005. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24006. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24007. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24008. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24009. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24010. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24011. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24012. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24013. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24014. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24015. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24016. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24017. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  24018. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24019. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24020. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24021. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24022. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24023. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24024. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24025. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24026. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24027. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24028. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24029. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24030. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24031. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24032. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24033. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24034. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24035. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  24036. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24037. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24038. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24039. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24040. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24041. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24042. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24043. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24044. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24045. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24046. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24047. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24048. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24049. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24050. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24051. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24052. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24053. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24054. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  24055. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24056. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24057. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24058. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24059. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24060. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24061. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24062. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24063. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24064. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24065. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24066. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24067. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24068. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24069. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24070. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24071. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24072. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24073. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  24074. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24075. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24076. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24077. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24078. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24079. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24080. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24081. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24082. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24083. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24084. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24085. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24086. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24087. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24088. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24089. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24090. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24091. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24092. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  24093. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24094. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24095. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24096. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24097. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24098. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24099. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24100. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24101. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24102. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24103. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24104. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24105. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24106. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24107. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24108. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24109. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24110. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24111. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  24112. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24113. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24114. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24115. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24116. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24117. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24118. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24119. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24120. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24121. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24122. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24123. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24124. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24125. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24126. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24127. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24128. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  24129. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24130. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24131. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24132. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24133. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24134. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24135. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24136. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24137. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24138. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24139. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24140. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24141. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24142. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24143. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24144. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24145. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24146. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24147. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  24148. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24149. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24150. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24151. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24152. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24153. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24154. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24155. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24156. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24157. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24158. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24159. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24160. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24161. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24162. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24163. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24164. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24165. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24166. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  24167. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24168. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24169. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24170. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24171. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24172. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24173. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24174. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24175. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24176. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24177. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24178. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24179. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24180. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24181. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24182. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24183. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24184. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24185. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  24186. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24187. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24188. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24189. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24190. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24191. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24192. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24193. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24194. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24195. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24196. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24197. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24198. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24199. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24200. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24201. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24202. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24203. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24204. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  24205. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24206. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24207. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24208. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24209. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24210. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24211. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24212. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24213. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24214. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24215. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24216. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24217. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24218. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24219. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24220. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24221. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  24222. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24223. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24224. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24225. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24226. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24227. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24228. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24229. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24230. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24231. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24232. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24233. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24234. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24235. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24236. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24237. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24238. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24239. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24240. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  24241. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24242. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24243. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24244. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24245. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24246. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24247. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24248. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24249. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24250. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24251. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24252. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24253. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24254. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24255. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24256. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24257. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  24258. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24259. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24260. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24261. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24262. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24263. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24264. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24265. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24266. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24267. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24268. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24269. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24270. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24271. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24272. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24273. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24274. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24275. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24276. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  24277. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24278. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24279. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24280. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24281. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24282. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24283. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24284. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24285. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24286. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24287. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24288. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24289. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24290. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24291. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24292. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24293. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24294. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24295. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  24296. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24297. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24298. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24299. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24300. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24301. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24302. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24303. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24304. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24305. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24306. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24307. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24308. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24309. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24310. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24311. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24312. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24313. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24314. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  24315. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24316. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24317. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24318. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24319. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24320. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24321. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24322. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24323. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24324. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24325. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24326. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24327. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24328. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24329. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24330. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24331. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24332. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24333. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  24334. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24335. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24336. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24337. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24338. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24339. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24340. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24341. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24342. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24343. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24344. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24345. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24346. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24347. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24348. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24349. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24350. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24351. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24352. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24353. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  24354. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24355. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24356. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24357. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24358. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24359. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24360. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24361. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24362. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24363. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24364. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24365. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24366. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24367. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24368. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24369. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24370. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  24371. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24372. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24373. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24374. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24375. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24376. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24377. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24378. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24379. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24380. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24381. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24382. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24383. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24384. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24385. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24386. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24387. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24388. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24389. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24390. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  24391. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24392. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24393. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24394. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24395. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24396. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24397. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24398. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24399. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24400. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24401. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24402. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24403. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24404. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24405. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24406. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24407. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24408. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24409. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24410. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  24411. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24412. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24413. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24414. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24415. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24416. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24417. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24418. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24419. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24420. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24421. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24422. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24423. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24424. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24425. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24426. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24427. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24428. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24429. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24430. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  24431. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24432. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24433. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24434. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24435. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24436. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24437. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24438. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24439. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24440. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24441. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24442. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24443. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24444. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24445. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24446. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24447. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24448. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24449. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24450. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  24451. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24452. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24453. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24454. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24455. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24456. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24457. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24458. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24459. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24460. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24461. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24462. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24463. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24464. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24465. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24466. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24467. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  24468. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24469. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24470. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24471. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24472. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24473. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24474. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24475. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24476. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24477. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24478. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24479. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24480. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24481. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24482. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24483. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24484. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24485. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24486. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24487. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  24488. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24489. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24490. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24491. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24492. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24493. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24494. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24495. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24496. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24497. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24498. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24499. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24500. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24501. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24502. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24503. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24504. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24505. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24506. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24507. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  24508. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24509. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24510. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24511. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24512. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24513. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24514. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24515. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24516. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24517. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24518. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24519. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24520. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24521. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24522. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24523. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24524. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24525. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24526. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24527. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  24528. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24529. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24530. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24531. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24532. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24533. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24534. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24535. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24536. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24537. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24538. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24539. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24540. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24541. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24542. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24543. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24544. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24545. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24546. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  24547. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24548. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24549. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24550. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24551. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24552. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24553. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24554. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24555. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24556. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24557. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24558. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24559. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24560. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24561. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24562. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24563. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  24564. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24565. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24566. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24567. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24568. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24569. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24570. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24571. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24572. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24573. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24574. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24575. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24576. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24577. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24578. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24579. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24580. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24581. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24582. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  24583. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24584. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24585. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24586. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24587. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24588. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24589. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24590. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24591. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24592. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24593. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24594. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24595. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24596. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24597. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24598. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24599. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24600. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24601. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  24602. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24603. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24604. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24605. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24606. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24607. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24608. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24609. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24610. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24611. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24612. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24613. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24614. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24615. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24616. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24617. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24618. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24619. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24620. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  24621. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  24622. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  24623. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  24624. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  24625. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  24626. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  24627. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  24628. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24629. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24630. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24631. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24632. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24633. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24634. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24635. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24636. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24637. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24638. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24639. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24640. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24641. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24642. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24643. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24644. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24645. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24646. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24647. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24648. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24649. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24650. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24651. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24652. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24653. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24654. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24655. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24656. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24657. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24658. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24659. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24660. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24661. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24662. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24663. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24664. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24665. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24666. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24667. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24668. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24669. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24670. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24671. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24672. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24673. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24674. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24675. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24676. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24677. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24678. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24679. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24680. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24681. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24682. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24683. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24684. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24685. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24686. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24687. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24688. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24689. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24690. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24691. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24692. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24693. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24694. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24695. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24696. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24697. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24698. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24699. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24700. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24701. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24702. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24703. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24704. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24705. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24706. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24707. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24708. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24709. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24710. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24711. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24712. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24713. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24714. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24715. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24716. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24717. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24718. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24719. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24720. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24721. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24722. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24723. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24724. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24725. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24726. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24727. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24728. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24729. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24730. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24731. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24732. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24733. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24734. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24735. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24736. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24737. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24738. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24739. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24740. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24741. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24742. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24743. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24744. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24745. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24746. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24747. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24748. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24749. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24750. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24751. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24752. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24753. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24754. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24755. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24756. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24757. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24758. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24759. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24760. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24761. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24762. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24763. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24764. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24765. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24766. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24767. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24768. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24769. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24770. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24771. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24772. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24773. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24774. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24775. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24776. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24777. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24778. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24779. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24780. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24781. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24782. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24783. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24784. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24785. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24786. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24787. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24788. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24789. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24790. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24791. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24792. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24793. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24794. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24795. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24796. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24797. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24798. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24799. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24800. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24801. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24802. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24803. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24804. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24805. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24806. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24807. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24808. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24809. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24810. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24811. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24812. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24813. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24814. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24815. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24816. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24817. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24818. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24819. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24820. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24821. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24822. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24823. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24824. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24825. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24826. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24827. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24828. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24829. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24830. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24831. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24832. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24833. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24834. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24835. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24836. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24837. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24838. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24839. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24840. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24841. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24842. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24843. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24844. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24845. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24846. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24847. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24848. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24849. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24850. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24851. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24852. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24853. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24854. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24855. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24856. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24857. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24858. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24859. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24860. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24861. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24862. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24863. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24864. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24865. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24866. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24867. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24868. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24869. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24870. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24871. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24872. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24873. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24874. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24875. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24876. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24877. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24878. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24879. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24880. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24881. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24882. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24883. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24884. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24885. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24886. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24887. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24888. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24889. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24890. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24891. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24892. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24893. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24894. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24895. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24896. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24897. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24898. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24899. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24900. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24901. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24902. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24903. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24904. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24905. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24906. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24907. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24908. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24909. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24910. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24911. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24912. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24913. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24914. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24915. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24916. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24917. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24918. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24919. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24920. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24921. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24922. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24923. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24924. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24925. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24926. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24927. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24928. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24929. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24930. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24931. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24932. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24933. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24934. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24935. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24936. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24937. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24938. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24939. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24940. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24941. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24942. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24943. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24944. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24945. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24946. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24947. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24948. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24949. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24950. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24951. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24952. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24953. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24954. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24955. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24956. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24957. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24958. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24959. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24960. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24961. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24962. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24963. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24964. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24965. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24966. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24967. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24968. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24969. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24970. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24971. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24972. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24973. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24974. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24975. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24976. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24977. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24978. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24979. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24980. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24981. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24982. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24983. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24984. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24985. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24986. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24987. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24988. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24989. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24990. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24991. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24992. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24993. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24994. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24995. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24996. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24997. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24998. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24999. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25000. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25001. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25002. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25003. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25004. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25005. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25006. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25007. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25008. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25009. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25010. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25011. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25012. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25013. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25014. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25015. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25016. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25017. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25018. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25019. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25020. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25021. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25022. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25023. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25024. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25025. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25026. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25027. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25028. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25029. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25030. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25031. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25032. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25033. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25034. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25035. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25036. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25037. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25038. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25039. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25040. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25041. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25042. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25043. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25044. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25045. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25046. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25047. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25048. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25049. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25050. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25051. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25052. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25053. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25054. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25055. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25056. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25057. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25058. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25059. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25060. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25061. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25062. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25063. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25064. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25065. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25066. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25067. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25068. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25069. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25070. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25071. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25072. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25073. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25074. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25075. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25076. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25077. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25078. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25079. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25080. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25081. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25082. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25083. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25084. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25085. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25086. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25087. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25088. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25089. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25090. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25091. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25092. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25093. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25094. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25095. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25096. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25097. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25098. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25099. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25100. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25101. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25102. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25103. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25104. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25105. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25106. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25107. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25108. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25109. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25110. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25111. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25112. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25113. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25114. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25115. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25116. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25117. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25118. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25119. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25120. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25121. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25122. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25123. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25124. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25125. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25126. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25127. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25128. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25129. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25130. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25131. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25132. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25133. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25134. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25135. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25136. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25137. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25138. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25139. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25140. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25141. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25142. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25143. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25144. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25145. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25146. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25147. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25148. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25149. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25150. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25151. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25152. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25153. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25154. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25155. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25156. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25157. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25158. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25159. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25160. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25161. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25162. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25163. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25164. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25165. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25166. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25167. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25168. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25169. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25170. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25171. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25172. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25173. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25174. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25175. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25176. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25177. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25178. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25179. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25180. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25181. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25182. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25183. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25184. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25185. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25186. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25187. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25188. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25189. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25190. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25191. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25192. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25193. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25194. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25195. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25196. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25197. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25198. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25199. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25200. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25201. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25202. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25203. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25204. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25205. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25206. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25207. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25208. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25209. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25210. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25211. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25212. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25213. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25214. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25215. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25216. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25217. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25218. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25219. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25220. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25221. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25222. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25223. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25224. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25225. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25226. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25227. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25228. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25229. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25230. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25231. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25232. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25233. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25234. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25235. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25236. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25237. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25238. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25239. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25240. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25241. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25242. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25243. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25244. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25245. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25246. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25247. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25248. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25249. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25250. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25251. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25252. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  25253. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25254. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25255. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25256. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25257. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25258. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25259. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25260. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25261. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25262. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25263. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25264. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25265. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25266. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25267. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25268. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25269. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25270. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  25271. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25272. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25273. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25274. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25275. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25276. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25277. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25278. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25279. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25280. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25281. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25282. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25283. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25284. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25285. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25286. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25287. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  25288. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25289. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25290. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25291. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25292. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25293. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25294. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25295. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25296. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25297. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25298. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25299. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25300. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25301. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25302. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25303. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25304. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  25305. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25306. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25307. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25308. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25309. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25310. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25311. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25312. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25313. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25314. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25315. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25316. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25317. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25318. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25319. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25320. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25321. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25322. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25323. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25324. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25325. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25326. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25327. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25328. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25329. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25330. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25331. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25332. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25333. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25334. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25335. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25336. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25337. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25338. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25339. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25340. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25341. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25342. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25343. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  25344. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25345. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  25346. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  25347. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  25348. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  25349. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  25350. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  25351. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  25352. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  25353. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  25354. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  25355. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  25356. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  25357. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  25358. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  25359. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  25360. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  25361. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  25362. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  25363. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  25364. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25365. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25366. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25367. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25368. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25369. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25370. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25371. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25372. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25373. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25374. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25375. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25376. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25377. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25378. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25379. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25380. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25381. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  25382. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25383. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25384. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25385. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25386. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25387. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25388. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25389. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25390. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25391. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25392. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25393. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25394. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25395. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25396. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25397. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25398. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25399. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  25400. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25401. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25402. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25403. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25404. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25405. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25406. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25407. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25408. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25409. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25410. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25411. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25412. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25413. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25414. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25415. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25416. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  25417. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25418. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25419. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25420. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25421. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25422. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25423. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25424. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25425. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25426. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25427. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25428. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25429. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25430. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25431. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25432. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25433. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  25434. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25435. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25436. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25437. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25438. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25439. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25440. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25441. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25442. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25443. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25444. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25445. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25446. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25447. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25448. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25449. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25450. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  25451. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25452. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25453. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25454. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25455. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25456. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25457. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25458. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25459. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25460. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25461. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25462. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25463. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25464. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25465. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25466. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25467. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  25468. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25469. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25470. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25471. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25472. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25473. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  25474. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25475. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25476. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25477. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  25478. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25479. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25480. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25481. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25482. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25483. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25484. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25485. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  25486. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25487. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25488. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25489. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25490. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25491. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  25492. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25493. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25494. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25495. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25496. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25497. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  25498. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25499. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25500. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25501. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25502. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25503. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  25504. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25505. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25506. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25507. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25508. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25509. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  25510. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  25511. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25512. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25513. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25514. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25515. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  25516. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25517. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25518. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25519. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25520. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25521. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  25522. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25523. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25524. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25525. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25526. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25527. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  25528. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25529. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25530. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25531. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25532. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25533. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  25534. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25535. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25536. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25537. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25538. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25539. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  25540. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25541. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25542. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25543. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25544. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25545. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  25546. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25547. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25548. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25549. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25550. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25551. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  25552. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25553. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25554. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25555. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25556. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25557. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  25558. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25559. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25560. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25561. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25562. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25563. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  25564. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25565. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25566. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25567. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25568. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25569. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  25570. {"HDMI", NULL, "HDMI_DL_HL"},
  25571. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25572. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25573. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25574. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25575. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25576. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25577. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25578. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  25579. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25580. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25581. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25582. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25583. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25584. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25585. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25586. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  25587. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25588. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25589. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25590. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25591. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25592. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  25593. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25594. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25595. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25596. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25597. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25598. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  25599. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25600. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25601. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25602. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25603. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25604. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25605. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25606. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  25607. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25608. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25609. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25610. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25611. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25612. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25613. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  25614. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25615. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25616. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25617. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25618. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25619. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25620. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  25621. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25622. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25623. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25624. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25625. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25626. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25627. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25628. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25629. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  25630. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  25631. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25632. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25633. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25634. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25635. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25636. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25637. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25638. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  25639. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  25640. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25641. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25642. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25643. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25644. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25645. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25646. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25647. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  25648. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  25649. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25650. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25651. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25652. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25653. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25654. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25655. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25656. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  25657. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25658. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25659. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25660. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25661. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  25662. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25663. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  25664. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25665. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25666. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25667. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  25668. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25669. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25670. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25671. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  25672. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25673. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25674. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25675. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25676. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25677. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25678. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  25679. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  25680. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  25681. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  25682. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  25683. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25684. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25685. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25686. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25687. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25688. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25689. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25690. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25691. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25692. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25693. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25694. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25695. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25696. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25697. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25698. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25699. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25700. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25701. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25702. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25703. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25704. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25705. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25706. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25707. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25708. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25709. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25710. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25711. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25712. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25713. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25714. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25715. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25716. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25717. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25718. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25719. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25720. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25721. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25722. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25723. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25724. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25725. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25726. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25727. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25728. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25729. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25730. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25731. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25732. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25733. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25734. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25735. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25736. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25737. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25738. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25739. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25740. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25741. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25742. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25743. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25744. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25745. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25746. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25747. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25748. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25749. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25750. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25751. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25752. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25753. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25754. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25755. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25756. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25757. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25758. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25759. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25760. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25761. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25762. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25763. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25764. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25765. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25766. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25767. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25768. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  25769. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  25770. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  25771. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  25772. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  25773. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  25774. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  25775. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  25776. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  25777. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  25778. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  25779. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  25780. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  25781. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  25782. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  25783. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  25784. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  25785. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  25786. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  25787. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  25788. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  25789. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  25790. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  25791. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  25792. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  25793. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  25794. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  25795. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  25796. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  25797. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  25798. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  25799. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  25800. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  25801. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  25802. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  25803. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  25804. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  25805. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  25806. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  25807. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  25808. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  25809. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  25810. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  25811. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  25812. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  25813. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  25814. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  25815. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  25816. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  25817. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  25818. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  25819. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  25820. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  25821. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  25822. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  25823. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  25824. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  25825. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  25826. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  25827. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  25828. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  25829. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  25830. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  25831. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  25832. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  25833. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  25834. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  25835. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  25836. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  25837. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  25838. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  25839. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  25840. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  25841. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  25842. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  25843. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  25844. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  25845. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  25846. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  25847. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  25848. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  25849. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  25850. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  25851. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  25852. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  25853. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  25854. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  25855. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  25856. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  25857. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  25858. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  25859. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  25860. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  25861. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  25862. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  25863. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  25864. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  25865. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  25866. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  25867. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  25868. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  25869. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  25870. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  25871. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  25872. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  25873. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  25874. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  25875. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  25876. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  25877. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  25878. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  25879. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  25880. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  25881. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  25882. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  25883. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25884. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  25885. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  25886. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25887. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  25888. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  25889. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25890. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25891. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25892. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25893. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25894. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25895. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25896. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25897. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25898. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25899. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25900. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25901. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25902. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  25903. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25904. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25905. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25906. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25907. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25908. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25909. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25910. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25911. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25912. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25913. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25914. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25915. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25916. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  25917. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25918. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25919. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25920. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25921. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25922. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25923. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25924. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25925. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25926. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25927. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25928. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25929. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25930. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  25931. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25932. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25933. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25934. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25935. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25936. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25937. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25938. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25939. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25940. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25941. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25942. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25943. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25944. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  25945. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25946. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25947. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25948. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25949. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25950. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25951. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25952. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25953. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25954. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25955. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25956. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25957. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25958. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  25959. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25960. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25961. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25962. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25963. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25964. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25965. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25966. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25967. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25968. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25969. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25970. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  25971. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25972. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25973. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25974. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25975. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25976. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25977. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25978. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25979. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25980. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25981. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25982. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  25983. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25984. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25985. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25986. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25987. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25988. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25989. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25990. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25991. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25992. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25993. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25994. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  25995. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  25996. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  25997. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  25998. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  25999. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  26000. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  26001. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  26002. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  26003. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  26004. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  26005. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  26006. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  26007. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  26008. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  26009. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  26010. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  26011. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  26012. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  26013. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  26014. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  26015. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  26016. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  26017. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  26018. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  26019. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  26020. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  26021. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  26022. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  26023. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26024. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  26025. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  26026. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  26027. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26028. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  26029. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  26030. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  26031. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  26032. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  26033. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  26034. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  26035. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  26036. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26037. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  26038. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26039. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  26040. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  26041. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  26042. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  26043. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  26044. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  26045. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  26046. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  26047. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  26048. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  26049. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  26050. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  26051. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  26052. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26053. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  26054. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26055. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  26056. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  26057. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  26058. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  26059. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  26060. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  26061. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  26062. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  26063. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  26064. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  26065. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  26066. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  26067. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  26068. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  26069. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  26070. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  26071. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  26072. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  26073. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  26074. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  26075. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  26076. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  26077. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  26078. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  26079. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  26080. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  26081. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  26082. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  26083. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  26084. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  26085. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  26086. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  26087. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  26088. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  26089. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  26090. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  26091. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  26092. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  26093. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  26094. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  26095. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  26096. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  26097. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  26098. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  26099. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  26100. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  26101. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  26102. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  26103. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  26104. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  26105. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  26106. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  26107. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  26108. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  26109. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  26110. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  26111. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  26112. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  26113. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  26114. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  26115. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  26116. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26117. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26118. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26119. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26120. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26121. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26122. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26123. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26124. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26125. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26126. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26127. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26128. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26129. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26130. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26131. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26132. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26133. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26134. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26135. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26136. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26137. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26138. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26139. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26140. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  26141. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26142. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26143. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26144. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26145. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26146. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26147. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26148. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26149. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26150. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26151. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26152. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26153. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26154. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26155. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26156. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26157. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26158. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26159. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26160. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26161. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26162. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26163. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26164. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26165. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  26166. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26167. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26168. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26169. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26170. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26171. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26172. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26173. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26174. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26175. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26176. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26177. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26178. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26179. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26180. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26181. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26182. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26183. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26184. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26185. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26186. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26187. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26188. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26189. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26190. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  26191. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26192. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26193. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26194. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26195. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26196. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26197. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26198. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26199. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26200. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26201. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26202. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26203. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26204. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26205. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26206. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26207. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26208. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26209. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26210. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26211. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26212. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26213. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26214. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26215. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  26216. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26217. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26218. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26219. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26220. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26221. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26222. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26223. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26224. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26225. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26226. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26227. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26228. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26229. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26230. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26231. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26232. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26233. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26234. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26235. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26236. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26237. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26238. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26239. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26240. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  26241. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26242. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26243. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26244. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26245. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26246. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26247. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26248. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26249. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26250. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26251. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26252. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26253. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26254. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26255. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26256. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26257. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26258. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26259. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26260. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26261. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26262. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26263. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26264. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26265. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  26266. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26267. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26268. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26269. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26270. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26271. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26272. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26273. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26274. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26275. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26276. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26277. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26278. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26279. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26280. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26281. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26282. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26283. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26284. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26285. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26286. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26287. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26288. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26289. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26290. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  26291. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26292. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26293. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26294. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26295. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26296. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26297. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26298. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26299. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26300. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26301. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26302. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26303. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26304. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26305. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26306. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26307. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26308. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26309. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26310. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26311. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26312. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26313. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26314. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26315. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  26316. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26317. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  26318. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26319. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26320. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26321. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26322. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26323. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26324. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26325. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26326. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26327. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26328. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26329. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26330. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26331. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26332. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26333. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26334. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26335. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26336. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26337. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26338. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26339. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26340. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26341. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26342. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  26343. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26344. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26345. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26346. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26347. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26348. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26349. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26350. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26351. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26352. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26353. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26354. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26355. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26356. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26357. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26358. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26359. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26360. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26361. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26362. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26363. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26364. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26365. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26366. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26367. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  26368. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26369. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26370. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26371. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26372. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26373. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26374. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26375. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26376. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26377. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26378. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26379. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26380. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26381. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26382. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26383. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26384. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26385. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26386. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26387. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26388. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26389. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26390. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26391. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26392. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  26393. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26394. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26395. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26396. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26397. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26398. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26399. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26400. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26401. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26402. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26403. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26404. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26405. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26406. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26407. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26408. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26409. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26410. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26411. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26412. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26413. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26414. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26415. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26416. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26417. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  26418. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26419. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26420. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26421. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26422. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26423. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26424. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26425. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26426. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26427. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26428. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26429. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26430. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26431. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26432. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26433. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26434. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26435. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26436. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26437. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26438. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26439. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26440. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26441. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26442. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  26443. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26444. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26445. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26446. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26447. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26448. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26449. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26450. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26451. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26452. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26453. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26454. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26455. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26456. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26457. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26458. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26459. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26460. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26461. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26462. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26463. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26464. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26465. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26466. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26467. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  26468. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26469. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26470. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26471. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26472. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26473. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26474. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26475. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26476. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26477. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26478. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26479. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26480. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26481. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26482. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26483. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26484. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26485. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26486. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26487. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26488. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26489. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26490. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26491. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26492. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  26493. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26494. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26495. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26496. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26497. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26498. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26499. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26500. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26501. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26502. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26503. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26504. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26505. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26506. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26507. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26508. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26509. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26510. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26511. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26512. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26513. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26514. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26515. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26516. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26517. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  26518. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26519. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26520. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  26521. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26522. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26523. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26524. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26525. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26526. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26527. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26528. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26529. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26530. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26531. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26532. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26533. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26534. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26535. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26536. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26537. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26538. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26539. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26540. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26541. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26542. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26543. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26544. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26545. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  26546. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26547. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26548. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26549. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26550. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26551. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26552. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26553. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26554. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26555. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26556. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26557. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26558. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26559. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26560. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26561. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26562. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26563. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26564. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26565. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26566. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26567. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26568. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26569. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26570. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  26571. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26572. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26573. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26574. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26575. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26576. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26577. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26578. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26579. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26580. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26581. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26582. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26583. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26584. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26585. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26586. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26587. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26588. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26589. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26590. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26591. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26592. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26593. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26594. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26595. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  26596. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26597. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26598. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26599. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26600. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26601. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26602. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26603. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26604. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26605. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26606. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26607. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26608. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26609. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26610. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26611. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26612. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26613. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26614. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26615. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26616. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26617. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26618. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26619. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26620. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  26621. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26622. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26623. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26624. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  26625. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26626. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26627. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26628. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26629. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26630. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26631. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26632. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26633. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26634. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26635. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26636. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26637. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26638. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26639. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26640. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26641. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26642. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26643. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26644. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26645. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  26646. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26647. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26648. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26649. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26650. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26651. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26652. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26653. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26654. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26655. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26656. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26657. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26658. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26659. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26660. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26661. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26662. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26663. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26664. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26665. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26666. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  26667. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26668. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26669. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26670. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26671. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26672. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26673. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26674. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26675. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26676. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26677. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26678. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26679. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26680. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26681. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26682. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26683. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26684. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26685. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26686. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26687. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  26688. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26689. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26690. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26691. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26692. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26693. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26694. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26695. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26696. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26697. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26698. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26699. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26700. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26701. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26702. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26703. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26704. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26705. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26706. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26707. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26708. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  26709. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26710. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26711. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26712. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26713. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26714. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26715. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26716. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26717. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26718. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26719. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26720. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26721. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  26722. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26723. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26724. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26725. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26726. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26727. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26728. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26729. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26730. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26731. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26732. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26733. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26734. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  26735. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26736. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26737. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26738. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26739. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  26740. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26741. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26742. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26743. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  26744. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26745. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26746. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26747. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26748. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26749. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26750. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26751. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26752. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26753. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26754. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26755. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26756. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26757. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26758. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26759. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26760. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26761. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26762. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26763. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26764. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  26765. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26766. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26767. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  26768. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26769. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  26770. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  26771. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  26772. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  26773. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26774. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26775. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26776. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26777. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26778. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26779. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26780. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  26781. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26782. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26783. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26784. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26785. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  26786. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26787. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26788. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26789. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  26790. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26791. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26792. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26793. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  26794. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26795. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26796. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26797. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  26798. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26799. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26800. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26801. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26802. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26803. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26804. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26805. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26806. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26807. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26808. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  26809. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26810. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26811. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26812. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26813. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26814. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26815. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26816. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26817. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26818. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  26819. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26820. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26821. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26822. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26823. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26824. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26825. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26826. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26827. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26828. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26829. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26830. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  26831. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26832. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26833. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26834. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26835. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26836. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26837. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26838. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26839. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26840. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26841. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26842. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26843. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  26844. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26845. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26846. {"STUB_RX", NULL, "STUB_RX Mixer"},
  26847. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26848. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26849. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  26850. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26851. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26852. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  26853. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26854. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26855. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26856. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26857. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26858. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  26859. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26860. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26861. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26862. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26863. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26864. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  26865. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26866. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26867. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26868. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  26869. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26870. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26871. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  26872. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  26873. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26874. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  26875. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  26876. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  26877. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  26878. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26879. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26880. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26881. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26882. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26883. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26884. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26885. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26886. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26887. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26888. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26889. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26890. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26891. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  26892. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26893. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  26894. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26895. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  26896. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  26897. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  26898. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26899. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  26900. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26901. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26902. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  26903. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26904. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26905. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26906. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26907. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26908. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26909. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26910. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26911. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26912. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26913. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26914. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  26915. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26916. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26917. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26918. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26919. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26920. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26921. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26922. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26923. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26924. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26925. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  26926. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26927. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26928. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26929. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26930. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26931. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26932. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26933. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26934. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  26935. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26936. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26937. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26938. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26939. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26940. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26941. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26942. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26943. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26944. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26945. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  26946. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26947. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26948. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26949. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26950. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26951. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26952. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26953. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26954. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  26955. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26956. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26957. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26958. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26959. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26960. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26961. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26962. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  26963. /* Backend Enablement */
  26964. {"BE_OUT", NULL, "PRI_I2S_RX"},
  26965. {"BE_OUT", NULL, "SEC_I2S_RX"},
  26966. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  26967. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  26968. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  26969. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26970. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  26971. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  26972. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  26973. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  26974. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  26975. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  26976. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  26977. {"BE_OUT", NULL, "HDMI"},
  26978. {"BE_OUT", NULL, "DISPLAY_PORT"},
  26979. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  26980. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  26981. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  26982. {"BE_OUT", NULL, "MI2S_RX"},
  26983. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  26984. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  26985. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  26986. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  26987. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  26988. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  26989. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  26990. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  26991. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  26992. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  26993. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  26994. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  26995. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  26996. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  26997. {"BE_OUT", NULL, "INT_FM_RX"},
  26998. {"BE_OUT", NULL, "PCM_RX"},
  26999. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27000. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27001. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  27002. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  27003. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  27004. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  27005. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  27006. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27007. {"BE_OUT", NULL, "INT_FM_RX"},
  27008. {"BE_OUT", NULL, "PCM_RX"},
  27009. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27010. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  27011. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  27012. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  27013. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  27014. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  27015. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  27016. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  27017. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  27018. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  27019. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  27020. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  27021. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  27022. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  27023. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  27024. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  27025. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  27026. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  27027. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  27028. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  27029. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  27030. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  27031. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  27032. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  27033. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  27034. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  27035. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  27036. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  27037. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  27038. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  27039. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  27040. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  27041. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  27042. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  27043. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  27044. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  27045. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  27046. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  27047. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  27048. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  27049. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  27050. {"PRI_I2S_TX", NULL, "BE_IN"},
  27051. {"MI2S_TX", NULL, "BE_IN"},
  27052. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  27053. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  27054. {"PRI_MI2S_TX", NULL, "BE_IN"},
  27055. {"TERT_MI2S_TX", NULL, "BE_IN"},
  27056. {"INT0_MI2S_TX", NULL, "BE_IN"},
  27057. {"INT2_MI2S_TX", NULL, "BE_IN"},
  27058. {"INT3_MI2S_TX", NULL, "BE_IN"},
  27059. {"INT4_MI2S_TX", NULL, "BE_IN"},
  27060. {"INT5_MI2S_TX", NULL, "BE_IN"},
  27061. {"SEC_MI2S_TX", NULL, "BE_IN"},
  27062. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  27063. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  27064. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  27065. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  27066. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  27067. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  27068. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  27069. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  27070. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  27071. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  27072. {"USB_AUDIO_TX", NULL, "BE_IN" },
  27073. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  27074. {"INT_FM_TX", NULL, "BE_IN"},
  27075. {"PCM_TX", NULL, "BE_IN"},
  27076. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27077. {"BE_OUT", NULL, "STUB_RX"},
  27078. {"STUB_TX", NULL, "BE_IN"},
  27079. {"STUB_1_TX", NULL, "BE_IN"},
  27080. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27081. {"AUX_PCM_TX", NULL, "BE_IN"},
  27082. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  27083. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  27084. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  27085. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  27086. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  27087. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  27088. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  27089. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27090. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27091. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27092. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27093. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  27094. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27095. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27096. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  27097. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  27098. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  27099. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  27100. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  27101. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  27102. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  27103. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  27104. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  27105. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  27106. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  27107. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  27108. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  27109. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  27110. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  27111. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  27112. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  27113. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  27114. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  27115. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  27116. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  27117. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  27118. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  27119. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  27120. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  27121. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  27122. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  27123. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  27124. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  27125. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  27126. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  27127. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  27128. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  27129. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  27130. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  27131. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27132. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27133. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27134. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27135. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27136. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27137. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  27138. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  27139. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  27140. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  27141. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  27142. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  27143. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  27144. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  27145. };
  27146. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  27147. struct snd_pcm_hw_params *params)
  27148. {
  27149. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27150. unsigned int be_id = rtd->dai_link->id;
  27151. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27152. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27153. return -EINVAL;
  27154. }
  27155. mutex_lock(&routing_lock);
  27156. msm_bedais[be_id].sample_rate = params_rate(params);
  27157. msm_bedais[be_id].channel = params_channels(params);
  27158. msm_bedais[be_id].format = params_format(params);
  27159. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  27160. __func__, msm_bedais[be_id].sample_rate,
  27161. msm_bedais[be_id].format, be_id);
  27162. mutex_unlock(&routing_lock);
  27163. return 0;
  27164. }
  27165. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  27166. {
  27167. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27168. unsigned int be_id = rtd->dai_link->id;
  27169. int i, session_type, path_type, topology;
  27170. struct msm_pcm_routing_bdai_data *bedai;
  27171. struct msm_pcm_routing_fdai_data *fdai;
  27172. pr_debug("%s: substream->pcm->id:%s\n",
  27173. __func__, substream->pcm->id);
  27174. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27175. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27176. return -EINVAL;
  27177. }
  27178. bedai = &msm_bedais[be_id];
  27179. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  27180. 0 : 1);
  27181. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27182. path_type = ADM_PATH_PLAYBACK;
  27183. else
  27184. path_type = ADM_PATH_LIVE_REC;
  27185. mutex_lock(&routing_lock);
  27186. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27187. if (!is_mm_lsm_fe_id(i))
  27188. continue;
  27189. fdai = &fe_dai_map[i][session_type];
  27190. if (fdai->strm_id != INVALID_SESSION) {
  27191. int idx;
  27192. int port_id;
  27193. unsigned long copp =
  27194. session_copp_map[i][session_type][be_id];
  27195. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  27196. if (test_bit(idx, &copp))
  27197. break;
  27198. if (idx >= MAX_COPPS_PER_PORT) {
  27199. pr_debug("%s: copp idx is invalid, exiting\n",
  27200. __func__);
  27201. continue;
  27202. }
  27203. fdai->be_srate = bedai->sample_rate;
  27204. port_id = get_port_id(bedai->port_id);
  27205. topology = adm_get_topology_for_port_copp_idx(port_id,
  27206. idx);
  27207. msm_routing_unload_topology(topology);
  27208. adm_close(port_id, fdai->perf_mode, idx);
  27209. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  27210. __func__, copp, i, session_type, be_id,
  27211. topology);
  27212. clear_bit(idx,
  27213. &session_copp_map[i][session_type][be_id]);
  27214. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27215. (fdai->passthr_mode == LEGACY_PCM))
  27216. msm_pcm_routing_deinit_pp(port_id,
  27217. topology);
  27218. }
  27219. }
  27220. bedai->active = 0;
  27221. bedai->sample_rate = 0;
  27222. bedai->channel = 0;
  27223. mutex_unlock(&routing_lock);
  27224. return 0;
  27225. }
  27226. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  27227. {
  27228. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27229. unsigned int be_id = rtd->dai_link->id;
  27230. int i, path_type, topology;
  27231. int session_type = INVALID_SESSION;
  27232. struct msm_pcm_routing_bdai_data *bedai;
  27233. u32 channels, sample_rate;
  27234. uint16_t bits_per_sample = 16, voc_path_type;
  27235. struct msm_pcm_routing_fdai_data *fdai;
  27236. u32 session_id;
  27237. struct media_format_info voc_be_media_format;
  27238. bool is_lsm;
  27239. pr_debug("%s: substream->pcm->id:%s\n",
  27240. __func__, substream->pcm->id);
  27241. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27242. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27243. return -EINVAL;
  27244. }
  27245. bedai = &msm_bedais[be_id];
  27246. mutex_lock(&routing_lock);
  27247. if (bedai->active == 1)
  27248. goto done; /* Ignore prepare if back-end already active */
  27249. /* AFE port is not active at this point. However, still
  27250. * go ahead setting active flag under the notion that
  27251. * QDSP6 is able to handle ADM starting before AFE port
  27252. * is started.
  27253. */
  27254. bedai->active = 1;
  27255. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27256. if (!(is_mm_lsm_fe_id(i) &&
  27257. route_check_fe_id_adm_support(i)))
  27258. continue;
  27259. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  27260. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27261. fdai = &fe_dai_map[i][session_type];
  27262. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  27263. if (fdai->passthr_mode != LEGACY_PCM)
  27264. path_type = ADM_PATH_COMPRESSED_RX;
  27265. else
  27266. path_type = ADM_PATH_PLAYBACK;
  27267. } else {
  27268. if ((fdai->passthr_mode != LEGACY_PCM) &&
  27269. (fdai->passthr_mode != LISTEN))
  27270. path_type = ADM_PATH_COMPRESSED_TX;
  27271. else
  27272. path_type = ADM_PATH_LIVE_REC;
  27273. }
  27274. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  27275. (i <= MSM_FRONTEND_DAI_LSM8);
  27276. if (fdai->strm_id != INVALID_SESSION) {
  27277. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  27278. int port_id = get_port_id(bedai->port_id);
  27279. if (session_type == SESSION_TYPE_TX &&
  27280. fdai->be_srate &&
  27281. (fdai->be_srate != bedai->sample_rate)) {
  27282. pr_debug("%s: flush strm %d diff BE rates\n",
  27283. __func__,
  27284. fdai->strm_id);
  27285. if (fdai->event_info.event_func)
  27286. fdai->event_info.event_func(
  27287. MSM_PCM_RT_EVT_BUF_RECFG,
  27288. fdai->event_info.priv_data);
  27289. fdai->be_srate = 0; /* might not need it */
  27290. }
  27291. bits_per_sample = msm_routing_get_bit_width(
  27292. bedai->format);
  27293. app_type =
  27294. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  27295. if (app_type && is_lsm) {
  27296. app_type_idx =
  27297. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  27298. sample_rate =
  27299. fe_dai_app_type_cfg[i][session_type][be_id]
  27300. .sample_rate;
  27301. bits_per_sample =
  27302. lsm_app_type_cfg[app_type_idx].bit_width;
  27303. } else if (app_type) {
  27304. app_type_idx =
  27305. msm_pcm_routing_get_app_type_idx(app_type);
  27306. sample_rate =
  27307. fe_dai_app_type_cfg[i][session_type]
  27308. [be_id].sample_rate;
  27309. bits_per_sample =
  27310. app_type_cfg[app_type_idx].bit_width;
  27311. } else
  27312. sample_rate = bedai->sample_rate;
  27313. /*
  27314. * check if ADM needs to be configured with different
  27315. * channel mapping than backend
  27316. */
  27317. if (!bedai->adm_override_ch)
  27318. channels = bedai->channel;
  27319. else
  27320. channels = bedai->adm_override_ch;
  27321. acdb_dev_id =
  27322. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  27323. topology = msm_routing_get_adm_topology(i, session_type,
  27324. be_id);
  27325. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  27326. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  27327. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  27328. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  27329. if (hifi_filter_enabled)
  27330. bits_per_sample = msm_routing_get_bit_width(
  27331. SNDRV_PCM_FORMAT_S32_LE);
  27332. copp_idx = adm_open(port_id, path_type,
  27333. sample_rate, channels, topology,
  27334. fdai->perf_mode, bits_per_sample,
  27335. app_type, acdb_dev_id,
  27336. session_type);
  27337. if ((copp_idx < 0) ||
  27338. (copp_idx >= MAX_COPPS_PER_PORT)) {
  27339. pr_err("%s: adm open failed\n", __func__);
  27340. mutex_unlock(&routing_lock);
  27341. return -EINVAL;
  27342. }
  27343. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  27344. __func__, i, session_type, be_id);
  27345. set_bit(copp_idx,
  27346. &session_copp_map[i][session_type][be_id]);
  27347. if (msm_is_resample_needed(
  27348. sample_rate,
  27349. bedai->sample_rate))
  27350. adm_copp_mfc_cfg(port_id, copp_idx,
  27351. bedai->sample_rate);
  27352. msm_pcm_routing_build_matrix(i, session_type, path_type,
  27353. fdai->perf_mode, fdai->passthr_mode);
  27354. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27355. (fdai->passthr_mode == LEGACY_PCM))
  27356. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  27357. topology, channels);
  27358. }
  27359. }
  27360. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27361. session_id = msm_pcm_routing_get_voc_sessionid(i);
  27362. if (session_id) {
  27363. pr_debug("%s voice session_id: 0x%x\n", __func__,
  27364. session_id);
  27365. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27366. voc_path_type = RX_PATH;
  27367. else
  27368. voc_path_type = TX_PATH;
  27369. voc_set_route_flag(session_id, voc_path_type, 1);
  27370. memset(&voc_be_media_format, 0,
  27371. sizeof(struct media_format_info));
  27372. voc_be_media_format.port_id = bedai->port_id;
  27373. voc_be_media_format.num_channels = bedai->channel;
  27374. voc_be_media_format.sample_rate = bedai->sample_rate;
  27375. voc_be_media_format.bits_per_sample = bedai->format;
  27376. /* Defaulting this to 1 for voice call usecases */
  27377. voc_be_media_format.channel_mapping[0] = 1;
  27378. voc_set_device_config(session_id, voc_path_type,
  27379. &voc_be_media_format);
  27380. if (voc_get_route_flag(session_id, RX_PATH) &&
  27381. voc_get_route_flag(session_id, TX_PATH))
  27382. voc_enable_device(session_id);
  27383. }
  27384. }
  27385. /* Check if backend is an external ec ref port and set as needed */
  27386. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  27387. memset(&voc_be_media_format, 0,
  27388. sizeof(struct media_format_info));
  27389. /* Get format info for ec ref port from msm_bedais[] */
  27390. voc_be_media_format.port_id = bedai->port_id;
  27391. voc_be_media_format.num_channels = bedai->channel;
  27392. voc_be_media_format.bits_per_sample = bedai->format;
  27393. voc_be_media_format.sample_rate = bedai->sample_rate;
  27394. /* Defaulting this to 1 for voice call usecases */
  27395. voc_be_media_format.channel_mapping[0] = 1;
  27396. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  27397. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  27398. __func__, voc_be_media_format.port_id,
  27399. voc_be_media_format.num_channels,
  27400. voc_be_media_format.bits_per_sample,
  27401. voc_be_media_format.sample_rate);
  27402. }
  27403. done:
  27404. mutex_unlock(&routing_lock);
  27405. return 0;
  27406. }
  27407. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  27408. int fe_id)
  27409. {
  27410. int index, topo_id, be_idx;
  27411. unsigned long pp_config = 0;
  27412. bool mute_on;
  27413. int latency, session_type;
  27414. bool compr_passthr_mode = true;
  27415. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  27416. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  27417. pr_err("%s: Device pp params on invalid port %d\n",
  27418. __func__, port_id);
  27419. return -EINVAL;
  27420. }
  27421. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27422. if (port_id == msm_bedais[be_idx].port_id)
  27423. break;
  27424. }
  27425. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27426. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27427. return -EINVAL;
  27428. }
  27429. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27430. if (msm_bedais_pp_params[index].port_id == port_id)
  27431. break;
  27432. }
  27433. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27434. pr_err("%s: Invalid backend pp params index %d\n",
  27435. __func__, index);
  27436. return -EINVAL;
  27437. }
  27438. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  27439. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  27440. pr_err("%s: Invalid passthrough topology 0x%x\n",
  27441. __func__, topo_id);
  27442. return -EINVAL;
  27443. }
  27444. session_type =
  27445. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27446. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27447. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  27448. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  27449. compr_passthr_mode = false;
  27450. pp_config = msm_bedais_pp_params[index].pp_params_config;
  27451. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  27452. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27453. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  27454. mute_on = msm_bedais_pp_params[index].mute_on;
  27455. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27456. adm_send_compressed_device_mute(port_id,
  27457. copp_idx,
  27458. mute_on);
  27459. }
  27460. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  27461. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27462. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  27463. &pp_config);
  27464. latency = msm_bedais_pp_params[index].latency;
  27465. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27466. adm_send_compressed_device_latency(port_id,
  27467. copp_idx,
  27468. latency);
  27469. }
  27470. return 0;
  27471. }
  27472. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  27473. {
  27474. uint32_t topology = NULL_COPP_TOPOLOGY;
  27475. void *cal_info = NULL;
  27476. uint32_t size = 0;
  27477. /* Retrieve cal_info size from cal data*/
  27478. if (data_size < sizeof(struct audio_cal_type_basic) +
  27479. sizeof(struct audio_cal_info_adm_top)) {
  27480. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  27481. goto done;
  27482. }
  27483. size = data_size - sizeof(struct audio_cal_type_basic);
  27484. cal_info = kzalloc(size, GFP_KERNEL);
  27485. if (!cal_info)
  27486. goto done;
  27487. memcpy(cal_info,
  27488. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  27489. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  27490. kfree(cal_info);
  27491. cal_info = NULL;
  27492. done:
  27493. pr_debug("%s: Using topology %d\n", __func__, topology);
  27494. return topology;
  27495. }
  27496. static void msm_routing_load_topology(size_t data_size, void *data)
  27497. {
  27498. uint32_t topology_id;
  27499. int ret = -EINVAL;
  27500. topology_id = msm_routing_get_topology(data_size, data);
  27501. if (topology_id != NULL_COPP_TOPOLOGY)
  27502. ret = q6core_load_unload_topo_modules(topology_id,
  27503. CORE_LOAD_TOPOLOGY);
  27504. if (ret < 0)
  27505. pr_debug("%s %d load topology failed\n",
  27506. __func__, topology_id);
  27507. }
  27508. static void msm_routing_unload_topology(uint32_t topology_id)
  27509. {
  27510. int ret = -EINVAL;
  27511. if (topology_id != NULL_COPP_TOPOLOGY)
  27512. ret = q6core_load_unload_topo_modules(topology_id,
  27513. CORE_UNLOAD_TOPOLOGY);
  27514. if (ret < 0)
  27515. pr_debug("%s %d unload topology failed\n",
  27516. __func__, topology_id);
  27517. }
  27518. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27519. struct snd_ctl_elem_value *ucontrol)
  27520. {
  27521. int pp_id = ucontrol->value.integer.value[0];
  27522. int port_id = 0;
  27523. int index, be_idx, i, topo_id, idx;
  27524. bool mute;
  27525. int latency, session_type;
  27526. bool compr_passthr_mode = true;
  27527. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  27528. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27529. port_id = msm_bedais[be_idx].port_id;
  27530. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  27531. break;
  27532. }
  27533. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27534. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27535. return -EINVAL;
  27536. }
  27537. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27538. if (msm_bedais_pp_params[index].port_id == port_id)
  27539. break;
  27540. }
  27541. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27542. pr_err("%s: Invalid pp params backend index %d\n",
  27543. __func__, index);
  27544. return -EINVAL;
  27545. }
  27546. session_type =
  27547. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27548. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27549. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  27550. MSM_FRONTEND_DAI_MM_SIZE) {
  27551. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  27552. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  27553. compr_passthr_mode = false;
  27554. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27555. unsigned long copp =
  27556. session_copp_map[i]
  27557. [SESSION_TYPE_RX][be_idx];
  27558. if (!test_bit(idx, &copp))
  27559. continue;
  27560. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  27561. idx);
  27562. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  27563. continue;
  27564. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  27565. __func__, port_id, copp, msm_bedais[be_idx].active,
  27566. fe_dai_map[i][session_type].passthr_mode);
  27567. switch (pp_id) {
  27568. case ADM_PP_PARAM_MUTE_ID:
  27569. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27570. mute = ucontrol->value.integer.value[1] ? true : false;
  27571. msm_bedais_pp_params[index].mute_on = mute;
  27572. set_bit(ADM_PP_PARAM_MUTE_BIT,
  27573. &msm_bedais_pp_params[index].pp_params_config);
  27574. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27575. adm_send_compressed_device_mute(port_id,
  27576. idx, mute);
  27577. break;
  27578. case ADM_PP_PARAM_LATENCY_ID:
  27579. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27580. msm_bedais_pp_params[index].latency =
  27581. ucontrol->value.integer.value[1];
  27582. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  27583. &msm_bedais_pp_params[index].pp_params_config);
  27584. latency = msm_bedais_pp_params[index].latency =
  27585. ucontrol->value.integer.value[1];
  27586. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27587. adm_send_compressed_device_latency(port_id,
  27588. idx, latency);
  27589. break;
  27590. default:
  27591. pr_info("%s, device pp param %d not supported\n",
  27592. __func__, pp_id);
  27593. break;
  27594. }
  27595. }
  27596. }
  27597. return 0;
  27598. }
  27599. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27600. struct snd_ctl_elem_value *ucontrol)
  27601. {
  27602. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  27603. return 0;
  27604. }
  27605. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  27606. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  27607. 0, 3, msm_routing_get_device_pp_params_mixer,
  27608. msm_routing_put_device_pp_params_mixer),
  27609. };
  27610. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  27611. struct snd_ctl_elem_value *ucontrol)
  27612. {
  27613. ucontrol->value.integer.value[0] =
  27614. core_get_license_status(ASM_MEDIA_FMT_APTX);
  27615. pr_debug("%s: status %ld\n", __func__,
  27616. ucontrol->value.integer.value[0]);
  27617. return 0;
  27618. }
  27619. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  27620. struct snd_ctl_elem_value *ucontrol)
  27621. {
  27622. int32_t status = 0;
  27623. status = core_set_license(ucontrol->value.integer.value[0],
  27624. APTX_CLASSIC_DEC_LICENSE_ID);
  27625. pr_debug("%s: status %d\n", __func__, status);
  27626. return status;
  27627. }
  27628. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  27629. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  27630. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  27631. msm_aptx_dec_license_control_put),
  27632. };
  27633. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  27634. struct snd_ctl_elem_value *ucontrol)
  27635. {
  27636. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  27637. uint32_t be_idx = ucontrol->value.integer.value[0];
  27638. int i;
  27639. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  27640. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  27641. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  27642. pr_err("%s: Invalid channel map %d\n",
  27643. __func__, channel_map[i]);
  27644. return -EINVAL;
  27645. }
  27646. }
  27647. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  27648. return 0;
  27649. }
  27650. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  27651. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  27652. MSM_BACKEND_DAI_MAX, 0,
  27653. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  27654. msm_routing_put_port_chmap_mixer),
  27655. };
  27656. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  27657. struct snd_ctl_elem_info *uinfo)
  27658. {
  27659. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  27660. uinfo->count = sizeof(be_dai_name_table);
  27661. return 0;
  27662. }
  27663. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  27664. unsigned int __user *bytes,
  27665. unsigned int size)
  27666. {
  27667. int i;
  27668. int ret = 0;
  27669. if (size < sizeof(be_dai_name_table)) {
  27670. pr_err("%s: invalid size %d requested, returning\n",
  27671. __func__, size);
  27672. ret = -EINVAL;
  27673. goto done;
  27674. }
  27675. /*
  27676. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  27677. * needed when adding new backends
  27678. */
  27679. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27680. be_dai_name_table[i].be_id = i;
  27681. strlcpy(be_dai_name_table[i].be_name,
  27682. msm_bedais[i].name,
  27683. LPASS_BE_NAME_MAX_LENGTH);
  27684. }
  27685. ret = copy_to_user(bytes, &be_dai_name_table,
  27686. sizeof(be_dai_name_table));
  27687. if (ret) {
  27688. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  27689. ret = -EFAULT;
  27690. }
  27691. done:
  27692. return ret;
  27693. }
  27694. static const struct snd_kcontrol_new
  27695. msm_routing_be_dai_name_table_mixer_controls[] = {
  27696. {
  27697. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  27698. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  27699. .info = msm_routing_be_dai_name_table_info,
  27700. .name = "Backend DAI Name Table",
  27701. .tlv.c = snd_soc_bytes_tlv_callback,
  27702. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  27703. .max = sizeof(be_dai_name_table),
  27704. .get = msm_routing_be_dai_name_table_tlv_get,
  27705. }
  27706. },
  27707. };
  27708. static int msm_routing_stereo_channel_reverse_control_get(
  27709. struct snd_kcontrol *kcontrol,
  27710. struct snd_ctl_elem_value *ucontrol)
  27711. {
  27712. ucontrol->value.integer.value[0] = swap_ch;
  27713. pr_debug("%s: Swap channel value: %ld\n", __func__,
  27714. ucontrol->value.integer.value[0]);
  27715. return 0;
  27716. }
  27717. static int msm_routing_stereo_channel_reverse_control_put(
  27718. struct snd_kcontrol *kcontrol,
  27719. struct snd_ctl_elem_value *ucontrol)
  27720. {
  27721. int i, idx, be_index, port_id;
  27722. int ret = 0;
  27723. unsigned long copp;
  27724. pr_debug("%s Swap channel value:%ld\n", __func__,
  27725. ucontrol->value.integer.value[0]);
  27726. swap_ch = ucontrol->value.integer.value[0];
  27727. mutex_lock(&routing_lock);
  27728. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  27729. port_id = msm_bedais[be_index].port_id;
  27730. if (!msm_bedais[be_index].active)
  27731. continue;
  27732. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  27733. MSM_FRONTEND_DAI_MM_SIZE) {
  27734. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  27735. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27736. if (!test_bit(idx, &copp))
  27737. continue;
  27738. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  27739. __func__, port_id, idx);
  27740. ret = adm_swap_speaker_channels(
  27741. port_id, idx,
  27742. msm_bedais[be_index].sample_rate,
  27743. swap_ch);
  27744. if (ret) {
  27745. pr_err("%s:Swap_channel failed, err=%d\n",
  27746. __func__, ret);
  27747. goto done;
  27748. }
  27749. }
  27750. }
  27751. }
  27752. done:
  27753. mutex_unlock(&routing_lock);
  27754. return ret;
  27755. }
  27756. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  27757. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  27758. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  27759. msm_routing_stereo_channel_reverse_control_put),
  27760. };
  27761. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  27762. struct snd_ctl_elem_info *uinfo)
  27763. {
  27764. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  27765. uinfo->count = 1;
  27766. return 0;
  27767. }
  27768. static int msm_routing_instance_id_support_put(
  27769. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27770. {
  27771. bool supported = ucontrol->value.integer.value[0] ? true : false;
  27772. q6common_update_instance_id_support(supported);
  27773. return 0;
  27774. }
  27775. static int msm_routing_instance_id_support_get(
  27776. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27777. {
  27778. bool supported = false;
  27779. supported = q6common_is_instance_id_supported();
  27780. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  27781. return 0;
  27782. }
  27783. static const struct snd_kcontrol_new
  27784. msm_routing_feature_support_mixer_controls[] = {
  27785. {
  27786. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  27787. SNDRV_CTL_ELEM_ACCESS_WRITE,
  27788. .info = msm_routing_instance_id_support_info,
  27789. .name = "Instance ID Support",
  27790. .put = msm_routing_instance_id_support_put,
  27791. .get = msm_routing_instance_id_support_get,
  27792. },
  27793. };
  27794. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  27795. .hw_params = msm_pcm_routing_hw_params,
  27796. .close = msm_pcm_routing_close,
  27797. .prepare = msm_pcm_routing_prepare,
  27798. };
  27799. /* Not used but frame seems to require it */
  27800. static int msm_routing_probe(struct snd_soc_component *component)
  27801. {
  27802. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  27803. ARRAY_SIZE(msm_qdsp6_widgets));
  27804. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  27805. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  27806. snd_soc_dapm_add_routes(&component->dapm, intercon,
  27807. ARRAY_SIZE(intercon));
  27808. snd_soc_dapm_new_widgets(component->dapm.card);
  27809. snd_soc_add_component_controls(component, lsm_controls,
  27810. ARRAY_SIZE(lsm_controls));
  27811. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  27812. ARRAY_SIZE(aanc_slim_0_rx_mux));
  27813. snd_soc_add_component_controls(component, aanc_noise_level,
  27814. ARRAY_SIZE(aanc_noise_level));
  27815. snd_soc_add_component_controls(component, msm_voc_session_controls,
  27816. ARRAY_SIZE(msm_voc_session_controls));
  27817. snd_soc_add_component_controls(component, app_type_cfg_controls,
  27818. ARRAY_SIZE(app_type_cfg_controls));
  27819. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  27820. ARRAY_SIZE(lsm_app_type_cfg_controls));
  27821. snd_soc_add_component_controls(component, module_cfg_controls,
  27822. ARRAY_SIZE(module_cfg_controls));
  27823. snd_soc_add_component_controls(component,
  27824. stereo_to_custom_stereo_controls,
  27825. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  27826. snd_soc_add_component_controls(component, ec_ref_param_controls,
  27827. ARRAY_SIZE(ec_ref_param_controls));
  27828. snd_soc_add_component_controls(component, channel_mixer_controls,
  27829. ARRAY_SIZE(channel_mixer_controls));
  27830. msm_qti_pp_add_controls(component);
  27831. msm_dts_srs_tm_add_controls(component);
  27832. msm_dolby_dap_add_controls(component);
  27833. snd_soc_add_component_controls(component,
  27834. use_ds1_or_ds2_controls,
  27835. ARRAY_SIZE(use_ds1_or_ds2_controls));
  27836. snd_soc_add_component_controls(component,
  27837. hifi_filter_controls,
  27838. ARRAY_SIZE(hifi_filter_controls));
  27839. snd_soc_add_component_controls(component,
  27840. device_pp_params_mixer_controls,
  27841. ARRAY_SIZE(device_pp_params_mixer_controls));
  27842. snd_soc_add_component_controls(component,
  27843. msm_routing_be_dai_name_table_mixer_controls,
  27844. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  27845. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  27846. ARRAY_SIZE(msm_source_tracking_controls));
  27847. snd_soc_add_component_controls(component, adm_channel_config_controls,
  27848. ARRAY_SIZE(adm_channel_config_controls));
  27849. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  27850. ARRAY_SIZE(aptx_dec_license_controls));
  27851. snd_soc_add_component_controls(component,
  27852. stereo_channel_reverse_control,
  27853. ARRAY_SIZE(stereo_channel_reverse_control));
  27854. snd_soc_add_component_controls(
  27855. component, msm_routing_feature_support_mixer_controls,
  27856. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  27857. snd_soc_add_component_controls(component,
  27858. port_multi_channel_map_mixer_controls,
  27859. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  27860. return 0;
  27861. }
  27862. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  27863. {
  27864. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  27865. }
  27866. void msm_routing_pcm_free(struct snd_pcm *pcm)
  27867. {
  27868. msm_pcm_routing_hwdep_free(pcm);
  27869. }
  27870. static struct snd_soc_component_driver msm_soc_routing_component = {
  27871. .name = DRV_NAME,
  27872. .ops = &msm_routing_pcm_ops,
  27873. .probe = msm_routing_probe,
  27874. .pcm_new = msm_routing_pcm_new,
  27875. .pcm_free = msm_routing_pcm_free,
  27876. };
  27877. static int msm_routing_pcm_probe(struct platform_device *pdev)
  27878. {
  27879. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  27880. return snd_soc_register_component(&pdev->dev,
  27881. &msm_soc_routing_component,
  27882. NULL, 0);
  27883. }
  27884. static int msm_routing_pcm_remove(struct platform_device *pdev)
  27885. {
  27886. snd_soc_unregister_component(&pdev->dev);
  27887. return 0;
  27888. }
  27889. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  27890. {.compatible = "qcom,msm-pcm-routing"},
  27891. {}
  27892. };
  27893. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  27894. static struct platform_driver msm_routing_pcm_driver = {
  27895. .driver = {
  27896. .name = "msm-pcm-routing",
  27897. .owner = THIS_MODULE,
  27898. .of_match_table = msm_pcm_routing_dt_match,
  27899. .suppress_bind_attrs = true,
  27900. },
  27901. .probe = msm_routing_pcm_probe,
  27902. .remove = msm_routing_pcm_remove,
  27903. };
  27904. int msm_routing_check_backend_enabled(int fedai_id)
  27905. {
  27906. int i;
  27907. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  27908. /* bad ID assigned in machine driver */
  27909. pr_err("%s: bad MM ID\n", __func__);
  27910. return 0;
  27911. }
  27912. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27913. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  27914. return msm_bedais[i].active;
  27915. }
  27916. return 0;
  27917. }
  27918. static int get_cal_type_index(int32_t cal_type)
  27919. {
  27920. int ret = -EINVAL;
  27921. switch (cal_type) {
  27922. case ADM_TOPOLOGY_CAL_TYPE:
  27923. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  27924. break;
  27925. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  27926. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  27927. break;
  27928. default:
  27929. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  27930. }
  27931. return ret;
  27932. }
  27933. static int msm_routing_set_cal(int32_t cal_type,
  27934. size_t data_size, void *data)
  27935. {
  27936. int ret = 0;
  27937. int cal_index;
  27938. pr_debug("%s\n", __func__);
  27939. cal_index = get_cal_type_index(cal_type);
  27940. if (cal_index < 0) {
  27941. pr_err("%s: Could not get cal index %d\n",
  27942. __func__, cal_index);
  27943. ret = -EINVAL;
  27944. goto done;
  27945. }
  27946. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  27947. if (ret < 0) {
  27948. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  27949. __func__, ret, cal_type);
  27950. ret = -EINVAL;
  27951. goto done;
  27952. }
  27953. /* Pre-load if it is ADM topology */
  27954. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  27955. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  27956. msm_routing_load_topology(data_size, data);
  27957. }
  27958. done:
  27959. return ret;
  27960. }
  27961. static void msm_routing_delete_cal_data(void)
  27962. {
  27963. pr_debug("%s\n", __func__);
  27964. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  27965. }
  27966. static int msm_routing_init_cal_data(void)
  27967. {
  27968. int ret = 0;
  27969. struct cal_type_info cal_type_info[] = {
  27970. {{ADM_TOPOLOGY_CAL_TYPE,
  27971. {NULL, NULL, NULL,
  27972. msm_routing_set_cal, NULL, NULL} },
  27973. {NULL, NULL, cal_utils_match_buf_num} },
  27974. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  27975. {NULL, NULL, NULL,
  27976. msm_routing_set_cal, NULL, NULL} },
  27977. {NULL, NULL, cal_utils_match_buf_num} },
  27978. };
  27979. pr_debug("%s\n", __func__);
  27980. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  27981. &cal_type_info[0]);
  27982. if (ret < 0) {
  27983. pr_err("%s: could not create cal type!\n",
  27984. __func__);
  27985. ret = -EINVAL;
  27986. goto err;
  27987. }
  27988. return ret;
  27989. err:
  27990. msm_routing_delete_cal_data();
  27991. return ret;
  27992. }
  27993. int __init msm_soc_routing_platform_init(void)
  27994. {
  27995. mutex_init(&routing_lock);
  27996. if (msm_routing_init_cal_data())
  27997. pr_err("%s: could not init cal data!\n", __func__);
  27998. afe_set_routing_callback(
  27999. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  28000. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28001. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  28002. return platform_driver_register(&msm_routing_pcm_driver);
  28003. }
  28004. void msm_soc_routing_platform_exit(void)
  28005. {
  28006. msm_routing_delete_cal_data();
  28007. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28008. mutex_destroy(&routing_lock);
  28009. platform_driver_unregister(&msm_routing_pcm_driver);
  28010. }
  28011. MODULE_DESCRIPTION("MSM routing platform driver");
  28012. MODULE_LICENSE("GPL v2");