msm-pcm-routing-v2.c 1.2 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2020, 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[MAX_LSM_SESSIONS];
  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 ffecns_freeze_event;
  75. static bool swap_ch;
  76. static bool hifi_filter_enabled;
  77. static int aanc_level;
  78. static int num_app_cfg_types;
  79. static int msm_ec_ref_port_id;
  80. static int afe_loopback_tx_port_index;
  81. static int afe_loopback_tx_port_id = -1;
  82. #define WEIGHT_0_DB 0x4000
  83. /* all the FEs which can support channel mixer */
  84. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  85. /* all the FES which can support channel mixer for bidirection */
  86. static struct msm_pcm_channel_mixer
  87. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  88. /* input BE for each FE */
  89. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  90. enum {
  91. MADNONE,
  92. MADAUDIO,
  93. MADBEACON,
  94. MADULTRASOUND,
  95. MADSWAUDIO,
  96. };
  97. #define ADM_LSM_PORT_INDEX 9
  98. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  99. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  100. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  101. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  102. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  103. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  104. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  105. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  106. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  107. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  108. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  109. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  110. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  111. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  112. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  113. #define TERT_TDM_TX_TEXT "TERT_TDM_TX_0"
  114. #define LSM_FUNCTION_TEXT "LSM Function"
  115. static const char * const lsm_port_text[] = {
  116. "None",
  117. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  118. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  119. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  120. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  121. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT,
  122. TERT_TDM_TX_TEXT
  123. };
  124. struct msm_pcm_route_bdai_pp_params {
  125. u16 port_id; /* AFE port ID */
  126. unsigned long pp_params_config;
  127. bool mute_on;
  128. int latency;
  129. };
  130. static struct msm_pcm_route_bdai_pp_params
  131. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  132. {HDMI_RX, 0, 0, 0},
  133. {DISPLAY_PORT_RX, 0, 0, 0},
  134. };
  135. /*
  136. * The be_dai_name_table is passed to HAL so that it can specify the
  137. * BE ID for the BE it wants to enable based on the name. Thus there
  138. * is a matching table and structure in HAL that need to be updated
  139. * if any changes to these are made.
  140. */
  141. struct msm_pcm_route_bdai_name {
  142. unsigned int be_id;
  143. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  144. };
  145. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  146. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  147. int fe_id);
  148. static void msm_routing_load_topology(size_t data_size, void *data);
  149. static void msm_routing_unload_topology(uint32_t topology_id);
  150. static int msm_routing_get_bit_width(unsigned int format)
  151. {
  152. int bit_width;
  153. switch (format) {
  154. case SNDRV_PCM_FORMAT_S32_LE:
  155. bit_width = 32;
  156. break;
  157. case SNDRV_PCM_FORMAT_S24_LE:
  158. case SNDRV_PCM_FORMAT_S24_3LE:
  159. bit_width = 24;
  160. break;
  161. case SNDRV_PCM_FORMAT_S16_LE:
  162. default:
  163. bit_width = 16;
  164. }
  165. return bit_width;
  166. }
  167. static bool msm_is_resample_needed(int input_sr, int output_sr)
  168. {
  169. bool rc = false;
  170. if (input_sr != output_sr)
  171. rc = true;
  172. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  173. (rc ? "oh yes" : "not really"),
  174. input_sr, output_sr);
  175. return rc;
  176. }
  177. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  178. int channels)
  179. {
  180. int rc = 0;
  181. switch (topology) {
  182. case SRS_TRUMEDIA_TOPOLOGY_ID:
  183. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  184. msm_dts_srs_tm_init(port_id, copp_idx);
  185. break;
  186. case DS2_ADM_COPP_TOPOLOGY_ID:
  187. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  188. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  189. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  190. is_custom_stereo_on);
  191. if (rc < 0)
  192. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  193. __func__, topology, port_id,
  194. is_custom_stereo_on, rc);
  195. break;
  196. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  197. if (is_ds2_on) {
  198. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  199. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  200. is_custom_stereo_on);
  201. if (rc < 0)
  202. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  203. __func__, topology, port_id, rc);
  204. } else {
  205. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  206. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  207. is_custom_stereo_on);
  208. if (rc < 0)
  209. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  210. __func__, topology, port_id, rc);
  211. }
  212. break;
  213. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  214. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  215. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  216. if (rc < 0)
  217. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  218. __func__, topology, port_id, copp_idx, rc);
  219. break;
  220. default:
  221. /* custom topology specific feature param handlers */
  222. break;
  223. }
  224. }
  225. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  226. {
  227. switch (topology) {
  228. case SRS_TRUMEDIA_TOPOLOGY_ID:
  229. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  230. msm_dts_srs_tm_deinit(port_id);
  231. break;
  232. case DS2_ADM_COPP_TOPOLOGY_ID:
  233. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  234. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  235. msm_ds2_dap_deinit(port_id);
  236. break;
  237. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  238. if (is_ds2_on) {
  239. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  240. msm_ds2_dap_deinit(port_id);
  241. } else {
  242. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  243. msm_dolby_dap_deinit(port_id);
  244. }
  245. break;
  246. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  247. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  248. msm_qti_pp_asphere_deinit(port_id);
  249. break;
  250. default:
  251. /* custom topology specific feature deinit handlers */
  252. break;
  253. }
  254. }
  255. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  256. int path_type, int perf_mode)
  257. {
  258. int itr = 0, rc = 0;
  259. if ((path_type == ADM_PATH_PLAYBACK) &&
  260. (perf_mode == LEGACY_PCM_MODE) &&
  261. is_custom_stereo_on) {
  262. for (itr = 0; itr < payload.num_copps; itr++) {
  263. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  264. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  265. continue;
  266. }
  267. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  268. payload.port_id[itr],
  269. payload.copp_idx[itr],
  270. payload.session_id,
  271. Q14_GAIN_ZERO_POINT_FIVE,
  272. Q14_GAIN_ZERO_POINT_FIVE,
  273. Q14_GAIN_ZERO_POINT_FIVE,
  274. Q14_GAIN_ZERO_POINT_FIVE);
  275. if (rc < 0)
  276. pr_err("%s: err setting custom stereo\n",
  277. __func__);
  278. }
  279. }
  280. }
  281. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  282. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  283. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  284. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  285. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  286. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  287. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  288. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  289. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  290. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  291. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  292. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  293. LPASS_BE_AFE_PCM_RX},
  294. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  295. LPASS_BE_AFE_PCM_TX},
  296. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  297. LPASS_BE_AUXPCM_RX},
  298. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  299. LPASS_BE_AUXPCM_TX},
  300. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  301. LPASS_BE_VOICE_PLAYBACK_TX},
  302. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  303. LPASS_BE_VOICE2_PLAYBACK_TX},
  304. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  305. LPASS_BE_INCALL_RECORD_RX},
  306. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  307. LPASS_BE_INCALL_RECORD_TX},
  308. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  309. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  310. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  311. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  312. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  313. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  314. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  315. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  316. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  317. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  318. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  319. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  320. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  321. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  322. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  323. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  324. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  325. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  326. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  327. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  328. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  329. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  330. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  331. LPASS_BE_QUAT_MI2S_RX},
  332. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  333. LPASS_BE_QUAT_MI2S_TX},
  334. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  335. LPASS_BE_SEC_MI2S_RX},
  336. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  337. LPASS_BE_SEC_MI2S_TX},
  338. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  339. LPASS_BE_PRI_MI2S_RX},
  340. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  341. LPASS_BE_PRI_MI2S_TX},
  342. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  343. LPASS_BE_TERT_MI2S_RX},
  344. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  345. LPASS_BE_TERT_MI2S_TX},
  346. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  347. LPASS_BE_AUDIO_I2S_RX},
  348. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  349. LPASS_BE_SEC_AUXPCM_RX},
  350. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  351. LPASS_BE_SEC_AUXPCM_TX},
  352. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  353. LPASS_BE_PRI_SPDIF_RX},
  354. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  355. LPASS_BE_SEC_MI2S_RX_SD1},
  356. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  357. LPASS_BE_QUIN_MI2S_RX},
  358. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  359. LPASS_BE_QUIN_MI2S_TX},
  360. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  361. LPASS_BE_SENARY_MI2S_TX},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  363. LPASS_BE_PRI_TDM_RX_0},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  365. LPASS_BE_PRI_TDM_TX_0},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  367. LPASS_BE_PRI_TDM_RX_1},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  369. LPASS_BE_PRI_TDM_TX_1},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  371. LPASS_BE_PRI_TDM_RX_2},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  373. LPASS_BE_PRI_TDM_TX_2},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  375. LPASS_BE_PRI_TDM_RX_3},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  377. LPASS_BE_PRI_TDM_TX_3},
  378. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  379. LPASS_BE_PRI_TDM_RX_4},
  380. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  381. LPASS_BE_PRI_TDM_TX_4},
  382. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  383. LPASS_BE_PRI_TDM_RX_5},
  384. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  385. LPASS_BE_PRI_TDM_TX_5},
  386. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  387. LPASS_BE_PRI_TDM_RX_6},
  388. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  389. LPASS_BE_PRI_TDM_TX_6},
  390. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  391. LPASS_BE_PRI_TDM_RX_7},
  392. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  393. LPASS_BE_PRI_TDM_TX_7},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  395. LPASS_BE_SEC_TDM_RX_0},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  397. LPASS_BE_SEC_TDM_TX_0},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  399. LPASS_BE_SEC_TDM_RX_1},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  401. LPASS_BE_SEC_TDM_TX_1},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  403. LPASS_BE_SEC_TDM_RX_2},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  405. LPASS_BE_SEC_TDM_TX_2},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  407. LPASS_BE_SEC_TDM_RX_3},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  409. LPASS_BE_SEC_TDM_TX_3},
  410. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  411. LPASS_BE_SEC_TDM_RX_4},
  412. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  413. LPASS_BE_SEC_TDM_TX_4},
  414. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  415. LPASS_BE_SEC_TDM_RX_5},
  416. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  417. LPASS_BE_SEC_TDM_TX_5},
  418. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  419. LPASS_BE_SEC_TDM_RX_6},
  420. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  421. LPASS_BE_SEC_TDM_TX_6},
  422. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  423. LPASS_BE_SEC_TDM_RX_7},
  424. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  425. LPASS_BE_SEC_TDM_TX_7},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  427. LPASS_BE_TERT_TDM_RX_0},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  429. LPASS_BE_TERT_TDM_TX_0},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  431. LPASS_BE_TERT_TDM_RX_1},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  433. LPASS_BE_TERT_TDM_TX_1},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  435. LPASS_BE_TERT_TDM_RX_2},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  437. LPASS_BE_TERT_TDM_TX_2},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  439. LPASS_BE_TERT_TDM_RX_3},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  441. LPASS_BE_TERT_TDM_TX_3},
  442. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  443. LPASS_BE_TERT_TDM_RX_4},
  444. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  445. LPASS_BE_TERT_TDM_TX_4},
  446. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  447. LPASS_BE_TERT_TDM_RX_5},
  448. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  449. LPASS_BE_TERT_TDM_TX_5},
  450. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  451. LPASS_BE_TERT_TDM_RX_6},
  452. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  453. LPASS_BE_TERT_TDM_TX_6},
  454. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  455. LPASS_BE_TERT_TDM_RX_7},
  456. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  457. LPASS_BE_TERT_TDM_TX_7},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  459. LPASS_BE_QUAT_TDM_RX_0},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  461. LPASS_BE_QUAT_TDM_TX_0},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  463. LPASS_BE_QUAT_TDM_RX_1},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_QUAT_TDM_TX_1},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_QUAT_TDM_RX_2},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_QUAT_TDM_TX_2},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_QUAT_TDM_RX_3},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_QUAT_TDM_TX_3},
  474. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_QUAT_TDM_RX_4},
  476. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_QUAT_TDM_TX_4},
  478. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_QUAT_TDM_RX_5},
  480. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  481. LPASS_BE_QUAT_TDM_TX_5},
  482. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  483. LPASS_BE_QUAT_TDM_RX_6},
  484. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  485. LPASS_BE_QUAT_TDM_TX_6},
  486. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  487. LPASS_BE_QUAT_TDM_RX_7},
  488. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  489. LPASS_BE_QUAT_TDM_TX_7},
  490. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  491. LPASS_BE_QUIN_TDM_RX_0},
  492. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  493. LPASS_BE_QUIN_TDM_TX_0},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  495. LPASS_BE_QUIN_TDM_RX_1},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  497. LPASS_BE_QUIN_TDM_TX_1},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  499. LPASS_BE_QUIN_TDM_RX_2},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  501. LPASS_BE_QUIN_TDM_TX_2},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUIN_TDM_RX_3},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUIN_TDM_TX_3},
  506. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_QUIN_TDM_RX_4},
  508. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_QUIN_TDM_TX_4},
  510. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_QUIN_TDM_RX_5},
  512. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_QUIN_TDM_TX_5},
  514. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_QUIN_TDM_RX_6},
  516. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_QUIN_TDM_TX_6},
  518. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_QUIN_TDM_RX_7},
  520. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_QUIN_TDM_TX_7},
  522. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_SEN_TDM_RX_0},
  524. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_SEN_TDM_TX_0},
  526. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_SEN_TDM_RX_1},
  528. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_SEN_TDM_TX_1},
  530. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_SEN_TDM_RX_2},
  532. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_SEN_TDM_TX_2},
  534. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_SEN_TDM_RX_3},
  536. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_SEN_TDM_TX_3},
  538. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_SEN_TDM_RX_4},
  540. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_SEN_TDM_TX_4},
  542. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_SEN_TDM_RX_5},
  544. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_SEN_TDM_TX_5},
  546. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_SEN_TDM_RX_6},
  548. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_SEN_TDM_TX_6},
  550. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_SEN_TDM_RX_7},
  552. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_SEN_TDM_TX_7},
  554. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_INT_BT_A2DP_RX},
  556. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_USB_AUDIO_RX},
  558. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_USB_AUDIO_TX},
  560. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_DISPLAY_PORT},
  562. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_DISPLAY_PORT1},
  564. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_TERT_AUXPCM_RX},
  566. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_TERT_AUXPCM_TX},
  568. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_QUAT_AUXPCM_RX},
  570. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_QUAT_AUXPCM_TX},
  572. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_QUIN_AUXPCM_RX},
  574. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_QUIN_AUXPCM_TX},
  576. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_INT0_MI2S_RX},
  578. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_INT0_MI2S_TX},
  580. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_INT1_MI2S_RX},
  582. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_INT1_MI2S_TX},
  584. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_INT2_MI2S_RX},
  586. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_INT2_MI2S_TX},
  588. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_INT3_MI2S_RX},
  590. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_INT3_MI2S_TX},
  592. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_INT4_MI2S_RX},
  594. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_INT4_MI2S_TX},
  596. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_INT5_MI2S_RX},
  598. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_INT5_MI2S_TX},
  600. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_INT6_MI2S_RX},
  602. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_INT6_MI2S_TX},
  604. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_SEN_AUXPCM_RX},
  606. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_SEN_AUXPCM_TX},
  608. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_SENARY_MI2S_RX},
  610. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_WSA_CDC_DMA_RX_0},
  612. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_WSA_CDC_DMA_TX_0},
  614. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_WSA_CDC_DMA_RX_1},
  616. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_WSA_CDC_DMA_TX_1},
  618. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  619. LPASS_BE_WSA_CDC_DMA_TX_2},
  620. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  621. LPASS_BE_VA_CDC_DMA_TX_0},
  622. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  623. LPASS_BE_VA_CDC_DMA_TX_1},
  624. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  625. LPASS_BE_VA_CDC_DMA_TX_2},
  626. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  627. LPASS_BE_RX_CDC_DMA_RX_0},
  628. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  629. LPASS_BE_TX_CDC_DMA_TX_0},
  630. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  631. LPASS_BE_RX_CDC_DMA_RX_1},
  632. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  633. LPASS_BE_TX_CDC_DMA_TX_1},
  634. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  635. LPASS_BE_RX_CDC_DMA_RX_2},
  636. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  637. LPASS_BE_TX_CDC_DMA_TX_2},
  638. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  639. LPASS_BE_RX_CDC_DMA_RX_3},
  640. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  641. LPASS_BE_TX_CDC_DMA_TX_3},
  642. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  643. LPASS_BE_RX_CDC_DMA_RX_4},
  644. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  645. LPASS_BE_TX_CDC_DMA_TX_4},
  646. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  647. LPASS_BE_RX_CDC_DMA_RX_5},
  648. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  649. LPASS_BE_TX_CDC_DMA_TX_5},
  650. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  651. LPASS_BE_RX_CDC_DMA_RX_6},
  652. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  653. LPASS_BE_RX_CDC_DMA_RX_7},
  654. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  655. LPASS_BE_PRI_SPDIF_TX},
  656. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  657. LPASS_BE_SEC_SPDIF_RX},
  658. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  659. LPASS_BE_SEC_SPDIF_TX},
  660. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  661. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  662. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  663. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  664. LPASS_BE_PRI_META_MI2S_RX},
  665. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  666. LPASS_BE_SEC_META_MI2S_RX},
  667. { RT_PROXY_PORT_002_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_RX},
  668. { RT_PROXY_PORT_002_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_TX},
  669. };
  670. /* Track ASM playback & capture sessions of DAI
  671. * Track LSM listen sessions
  672. */
  673. static struct msm_pcm_routing_fdai_data
  674. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  675. /* MULTIMEDIA1 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  678. /* MULTIMEDIA2 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  681. /* MULTIMEDIA3 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  684. /* MULTIMEDIA4 */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  687. /* MULTIMEDIA5 */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  690. /* MULTIMEDIA6 */
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  693. /* MULTIMEDIA7*/
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  696. /* MULTIMEDIA8 */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  699. /* MULTIMEDIA9 */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  702. /* MULTIMEDIA10 */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  705. /* MULTIMEDIA11 */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  708. /* MULTIMEDIA12 */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  711. /* MULTIMEDIA13 */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  714. /* MULTIMEDIA14 */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  717. /* MULTIMEDIA15 */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  720. /* MULTIMEDIA16 */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  723. /* MULTIMEDIA17 */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  726. /* MULTIMEDIA18 */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  729. /* MULTIMEDIA19 */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  732. /* MULTIMEDIA20 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  735. /* MULTIMEDIA21 */
  736. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  737. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  738. /* MULTIMEDIA22 */
  739. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  740. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  741. /* MULTIMEDIA23 */
  742. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  743. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  744. /* MULTIMEDIA24 */
  745. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  746. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  747. /* MULTIMEDIA25 */
  748. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  749. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  750. /* MULTIMEDIA26 */
  751. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  752. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  753. /* MULTIMEDIA27 */
  754. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  755. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  756. /* MULTIMEDIA28 */
  757. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  758. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  759. /* MULTIMEDIA29 */
  760. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  761. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  762. /* MULTIMEDIA30 */
  763. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  764. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  765. /* VOIP */
  766. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  767. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  768. /* AFE_RX */
  769. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  770. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  771. /* AFE_TX */
  772. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  773. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  774. /* VOICE_STUB */
  775. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  776. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  777. /* DTMF_RX */
  778. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  779. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  780. /* QCHAT */
  781. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  782. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  783. /* VOLTE_STUB */
  784. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  785. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  786. /* LSM1 */
  787. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  788. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  789. /* LSM2 */
  790. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  791. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  792. /* LSM3 */
  793. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  794. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  795. /* LSM4 */
  796. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  797. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  798. /* LSM5 */
  799. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  800. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  801. /* LSM6 */
  802. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  803. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  804. /* LSM7 */
  805. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  806. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  807. /* LSM8 */
  808. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  809. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  810. /* VOICE2_STUB */
  811. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  812. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  813. /* VOICEMMODE1 */
  814. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  815. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  816. /* VOICEMMODE2 */
  817. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  818. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  819. };
  820. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  821. [MSM_BACKEND_DAI_MAX];
  822. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  823. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  824. static struct msm_pcm_stream_app_type_cfg
  825. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  826. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  827. /* The caller of this should acquire routing lock */
  828. void msm_pcm_routing_get_bedai_info(int be_idx,
  829. struct msm_pcm_routing_bdai_data *be_dai)
  830. {
  831. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  832. memcpy(be_dai, &msm_bedais[be_idx],
  833. sizeof(struct msm_pcm_routing_bdai_data));
  834. }
  835. /* The caller of this should acquire routing lock */
  836. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  837. struct msm_pcm_routing_fdai_data *fe_dai)
  838. {
  839. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  840. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  841. sizeof(struct msm_pcm_routing_fdai_data));
  842. }
  843. void msm_pcm_routing_acquire_lock(void)
  844. {
  845. mutex_lock(&routing_lock);
  846. }
  847. void msm_pcm_routing_release_lock(void)
  848. {
  849. mutex_unlock(&routing_lock);
  850. }
  851. static int msm_pcm_routing_get_app_type_idx(int app_type)
  852. {
  853. int idx;
  854. pr_debug("%s: app_type: %d\n", __func__, app_type);
  855. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  856. if (app_type_cfg[idx].app_type == app_type)
  857. return idx;
  858. }
  859. pr_info("%s: App type not available, fallback to default\n", __func__);
  860. return 0;
  861. }
  862. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  863. {
  864. int idx;
  865. pr_debug("%s: app_type: %d\n", __func__, app_type);
  866. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  867. if (lsm_app_type_cfg[idx].app_type == app_type)
  868. return idx;
  869. }
  870. pr_debug("%s: App type not available, fallback to default\n", __func__);
  871. return 0;
  872. }
  873. static int get_port_id(int port_id)
  874. {
  875. int ret = port_id;
  876. if (port_id == AFE_LOOPBACK_TX) {
  877. /*
  878. * Return afe_loopback_tx_port_id if set. Else return
  879. * msm_ec_ref_port_id to maintain backward compatibility.
  880. */
  881. if (afe_loopback_tx_port_id != -1)
  882. ret = afe_loopback_tx_port_id;
  883. else
  884. ret = msm_ec_ref_port_id;
  885. }
  886. return ret;
  887. }
  888. static bool is_mm_lsm_fe_id(int fe_id)
  889. {
  890. bool rc = true;
  891. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  892. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  893. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  894. rc = false;
  895. }
  896. return rc;
  897. }
  898. /*
  899. * msm_pcm_routing_send_chmix_cfg:
  900. * send the channel mixer command to mix the input channels
  901. * into output channels.
  902. *
  903. * @fe_id: front end id
  904. * @ip_channel_cnt: input channel count
  905. * @op_channel_cnt: output channel count
  906. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  907. * @session_type: indicates session is of type TX or RX
  908. * @stream_type: indicates either Audio or Listen stream type
  909. */
  910. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  911. int op_channel_cnt, int *ch_wght_coeff,
  912. int session_type, int stream_type)
  913. {
  914. int rc = 0, idx = 0;
  915. int be_index = 0, port_id;
  916. unsigned int session_id = 0;
  917. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  918. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  919. stream_type);
  920. if (!is_mm_lsm_fe_id(fe_id)) {
  921. /* bad ID assigned in machine driver */
  922. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  923. return -EINVAL;
  924. }
  925. if (ch_wght_coeff == NULL) {
  926. pr_err("%s: Null channel weightage coefficients passed\n",
  927. __func__);
  928. return -EINVAL;
  929. }
  930. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  931. port_id = msm_bedais[be_index].port_id;
  932. if (!msm_bedais[be_index].active ||
  933. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  934. continue;
  935. session_id = fe_dai_map[fe_id][session_type].strm_id;
  936. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  937. unsigned long copp =
  938. session_copp_map[fe_id][session_type][be_index];
  939. if (!test_bit(idx, &copp))
  940. continue;
  941. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  942. session_id, ip_channel_cnt,
  943. op_channel_cnt, ch_wght_coeff,
  944. session_type, stream_type);
  945. if (rc < 0)
  946. pr_err("%s: err setting channel mix config\n",
  947. __func__);
  948. }
  949. }
  950. return 0;
  951. }
  952. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  953. /**
  954. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  955. * setting before use case start.
  956. *
  957. * @fe_id: frontend idx
  958. * @type: stream direction type
  959. * @params: parameters of channel mixer setting
  960. *
  961. * Return 0 for success
  962. */
  963. int msm_pcm_routing_set_channel_mixer_cfg(
  964. int fe_id, int type,
  965. struct msm_pcm_channel_mixer *params)
  966. {
  967. int i, j = 0;
  968. channel_mixer_v2[fe_id][type].enable = params->enable;
  969. channel_mixer_v2[fe_id][type].rule = params->rule;
  970. channel_mixer_v2[fe_id][type].input_channel =
  971. params->input_channel;
  972. channel_mixer_v2[fe_id][type].output_channel =
  973. params->output_channel;
  974. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  975. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  976. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  977. params->in_ch_map[i];
  978. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  979. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  980. params->out_ch_map[i];
  981. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  982. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  983. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  984. params->channel_weight[i][j];
  985. channel_mixer_v2[fe_id][type].override_in_ch_map =
  986. params->override_in_ch_map;
  987. channel_mixer_v2[fe_id][type].override_out_ch_map =
  988. params->override_out_ch_map;
  989. return 0;
  990. }
  991. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  992. int msm_pcm_routing_reg_stream_app_type_cfg(
  993. int fedai_id, int session_type, int be_id,
  994. struct msm_pcm_stream_app_type_cfg *cfg_data)
  995. {
  996. int ret = 0;
  997. if (cfg_data == NULL) {
  998. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  999. ret = -EINVAL;
  1000. goto done;
  1001. }
  1002. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1003. __func__, fedai_id, session_type, be_id,
  1004. cfg_data->app_type, cfg_data->acdb_dev_id,
  1005. cfg_data->sample_rate);
  1006. if (!is_mm_lsm_fe_id(fedai_id)) {
  1007. pr_err("%s: Invalid machine driver ID %d\n",
  1008. __func__, fedai_id);
  1009. ret = -EINVAL;
  1010. goto done;
  1011. }
  1012. if (session_type != SESSION_TYPE_RX &&
  1013. session_type != SESSION_TYPE_TX) {
  1014. pr_err("%s: Invalid session type %d\n",
  1015. __func__, session_type);
  1016. ret = -EINVAL;
  1017. goto done;
  1018. }
  1019. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1020. pr_err("%s: Received out of bounds be_id %d\n",
  1021. __func__, be_id);
  1022. ret = -EINVAL;
  1023. goto done;
  1024. }
  1025. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1026. /*
  1027. * Store the BE ID of the configuration information set as the latest so
  1028. * the get mixer control knows what to return.
  1029. */
  1030. last_be_id_configured[fedai_id][session_type] = be_id;
  1031. done:
  1032. return ret;
  1033. }
  1034. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1035. /**
  1036. * msm_pcm_routing_get_stream_app_type_cfg
  1037. *
  1038. * Receives fedai_id, session_type, be_id, and populates app_type,
  1039. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1040. * -EINVAL and does not alter passed values.
  1041. *
  1042. * fedai_id - Passed value, front end ID for which app type config is wanted
  1043. * session_type - Passed value, session type for which app type config
  1044. * is wanted
  1045. * be_id - Returned value, back end device id the app type config data is for
  1046. * cfg_data - Returned value, configuration data used by app type config
  1047. */
  1048. int msm_pcm_routing_get_stream_app_type_cfg(
  1049. int fedai_id, int session_type, int *bedai_id,
  1050. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1051. {
  1052. int be_id;
  1053. int ret = 0;
  1054. if (bedai_id == NULL) {
  1055. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1056. ret = -EINVAL;
  1057. goto done;
  1058. } else if (cfg_data == NULL) {
  1059. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1060. ret = -EINVAL;
  1061. goto done;
  1062. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1063. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1064. ret = -EINVAL;
  1065. goto done;
  1066. } else if (session_type != SESSION_TYPE_RX &&
  1067. session_type != SESSION_TYPE_TX) {
  1068. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1069. ret = -EINVAL;
  1070. goto done;
  1071. }
  1072. be_id = last_be_id_configured[fedai_id][session_type];
  1073. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1074. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1075. ret = -EINVAL;
  1076. goto done;
  1077. }
  1078. *bedai_id = be_id;
  1079. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1080. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1081. __func__, fedai_id, session_type, *bedai_id,
  1082. cfg_data->app_type, cfg_data->acdb_dev_id,
  1083. cfg_data->sample_rate);
  1084. done:
  1085. return ret;
  1086. }
  1087. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1088. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1089. int cal_index)
  1090. {
  1091. struct list_head *ptr, *next;
  1092. struct cal_block_data *cal_block = NULL;
  1093. pr_debug("%s\n", __func__);
  1094. list_for_each_safe(ptr, next,
  1095. &cal_data[cal_index]->cal_blocks) {
  1096. cal_block = list_entry(ptr,
  1097. struct cal_block_data, list);
  1098. if (cal_utils_is_cal_stale(cal_block))
  1099. continue;
  1100. if (((struct audio_cal_info_adm_top *)cal_block
  1101. ->cal_info)->path == path) {
  1102. return cal_block;
  1103. }
  1104. }
  1105. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1106. return NULL;
  1107. }
  1108. static struct cal_block_data *msm_routing_find_topology(int path,
  1109. int app_type,
  1110. int acdb_id,
  1111. int cal_index,
  1112. bool exact)
  1113. {
  1114. struct list_head *ptr, *next;
  1115. struct cal_block_data *cal_block = NULL;
  1116. struct audio_cal_info_adm_top *cal_info;
  1117. pr_debug("%s\n", __func__);
  1118. list_for_each_safe(ptr, next,
  1119. &cal_data[cal_index]->cal_blocks) {
  1120. cal_block = list_entry(ptr,
  1121. struct cal_block_data, list);
  1122. if (cal_utils_is_cal_stale(cal_block))
  1123. continue;
  1124. cal_info = (struct audio_cal_info_adm_top *)
  1125. cal_block->cal_info;
  1126. if ((cal_info->path == path) &&
  1127. (cal_info->app_type == app_type) &&
  1128. (cal_info->acdb_id == acdb_id)) {
  1129. return cal_block;
  1130. }
  1131. }
  1132. pr_debug("%s: Can't find topology for path %d, app %d, "
  1133. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1134. exact ? "fail" : "defaulting to search by path");
  1135. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1136. cal_index);
  1137. }
  1138. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1139. int acdb_dev_id, int idx,
  1140. bool exact)
  1141. {
  1142. int topology = -EINVAL;
  1143. struct cal_block_data *cal_block = NULL;
  1144. mutex_lock(&cal_data[idx]->lock);
  1145. cal_block = msm_routing_find_topology(session_type, app_type,
  1146. acdb_dev_id, idx, exact);
  1147. if (cal_block != NULL) {
  1148. topology = ((struct audio_cal_info_adm_top *)
  1149. cal_block->cal_info)->topology;
  1150. }
  1151. mutex_unlock(&cal_data[idx]->lock);
  1152. return topology;
  1153. }
  1154. /*
  1155. * Retrieving cal_block will mark cal_block as stale.
  1156. * Hence it cannot be reused or resent unless the flag
  1157. * is reset.
  1158. */
  1159. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1160. int be_id)
  1161. {
  1162. int topology = NULL_COPP_TOPOLOGY;
  1163. int app_type = 0, acdb_dev_id = 0;
  1164. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1165. __func__, fedai_id, session_type, be_id);
  1166. if (cal_data == NULL)
  1167. goto done;
  1168. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1169. acdb_dev_id =
  1170. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1171. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1172. topology = msm_routing_find_topology_on_index(session_type,
  1173. app_type,
  1174. acdb_dev_id,
  1175. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1176. true /*exact*/);
  1177. if (topology < 0) {
  1178. pr_debug("%s: Check for compatible topology\n", __func__);
  1179. topology = msm_routing_find_topology_on_index(session_type,
  1180. app_type,
  1181. acdb_dev_id,
  1182. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1183. false /*exact*/);
  1184. if (topology < 0)
  1185. topology = NULL_COPP_TOPOLOGY;
  1186. }
  1187. done:
  1188. pr_debug("%s: Using topology %d\n", __func__, topology);
  1189. return topology;
  1190. }
  1191. static uint8_t is_be_dai_extproc(int be_dai)
  1192. {
  1193. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1194. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1195. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1196. return 1;
  1197. else
  1198. return 0;
  1199. }
  1200. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1201. int path_type, int perf_mode,
  1202. uint32_t passthr_mode)
  1203. {
  1204. int i, port_type, j, num_copps = 0;
  1205. struct route_payload payload;
  1206. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1207. path_type == ADM_PATH_COMPRESSED_RX) ?
  1208. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1209. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1210. if (!is_be_dai_extproc(i) &&
  1211. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1212. (msm_bedais[i].active) &&
  1213. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1214. int port_id = get_port_id(msm_bedais[i].port_id);
  1215. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1216. unsigned long copp =
  1217. session_copp_map[fedai_id][sess_type][i];
  1218. if (test_bit(j, &copp)) {
  1219. payload.port_id[num_copps] = port_id;
  1220. payload.copp_idx[num_copps] = j;
  1221. payload.app_type[num_copps] =
  1222. fe_dai_app_type_cfg
  1223. [fedai_id][sess_type][i]
  1224. .app_type;
  1225. payload.acdb_dev_id[num_copps] =
  1226. fe_dai_app_type_cfg
  1227. [fedai_id][sess_type][i]
  1228. .acdb_dev_id;
  1229. payload.sample_rate[num_copps] =
  1230. fe_dai_app_type_cfg
  1231. [fedai_id][sess_type][i]
  1232. .sample_rate;
  1233. num_copps++;
  1234. }
  1235. }
  1236. }
  1237. }
  1238. if (num_copps) {
  1239. payload.num_copps = num_copps;
  1240. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1241. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1242. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1243. }
  1244. }
  1245. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1246. int stream_type)
  1247. {
  1248. int i, session_type, path_type, port_type;
  1249. u32 mode = 0;
  1250. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1251. /* bad ID assigned in machine driver */
  1252. pr_err("%s: bad MM ID\n", __func__);
  1253. return;
  1254. }
  1255. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1256. session_type = SESSION_TYPE_RX;
  1257. path_type = ADM_PATH_PLAYBACK;
  1258. port_type = MSM_AFE_PORT_TYPE_RX;
  1259. } else {
  1260. session_type = SESSION_TYPE_TX;
  1261. path_type = ADM_PATH_LIVE_REC;
  1262. port_type = MSM_AFE_PORT_TYPE_TX;
  1263. }
  1264. mutex_lock(&routing_lock);
  1265. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1266. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1267. if (!is_be_dai_extproc(i) &&
  1268. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1269. (msm_bedais[i].active) &&
  1270. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1271. mode = afe_get_port_type(msm_bedais[i].port_id);
  1272. adm_connect_afe_port(mode, dspst_id,
  1273. msm_bedais[i].port_id);
  1274. break;
  1275. }
  1276. }
  1277. mutex_unlock(&routing_lock);
  1278. }
  1279. static bool route_check_fe_id_adm_support(int fe_id)
  1280. {
  1281. bool rc = true;
  1282. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1283. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1284. /* fe id is listen while port is set to afe */
  1285. if (lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1] !=
  1286. ADM_LSM_PORT_INDEX) {
  1287. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1288. __func__, fe_id,
  1289. lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1]);
  1290. rc = false;
  1291. }
  1292. }
  1293. return rc;
  1294. }
  1295. /*
  1296. * msm_pcm_routing_get_pp_ch_cnt:
  1297. * Read the processed channel count
  1298. *
  1299. * @fe_id: Front end ID
  1300. * @session_type: Inidicates RX or TX session type
  1301. */
  1302. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1303. {
  1304. struct msm_pcm_stream_app_type_cfg cfg_data;
  1305. int be_id = 0, app_type_idx = 0, app_type = 0;
  1306. int ret = -EINVAL;
  1307. memset(&cfg_data, 0, sizeof(cfg_data));
  1308. if (!is_mm_lsm_fe_id(fe_id)) {
  1309. pr_err("%s: bad MM ID\n", __func__);
  1310. return -EINVAL;
  1311. }
  1312. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1313. &be_id, &cfg_data);
  1314. if (ret) {
  1315. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1316. return ret;
  1317. }
  1318. app_type = cfg_data.app_type;
  1319. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1320. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1321. }
  1322. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1323. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1324. int dspst_id, int stream_type,
  1325. uint32_t passthr_mode)
  1326. {
  1327. int i, j, session_type, path_type, port_type, topology;
  1328. int num_copps = 0;
  1329. struct route_payload payload;
  1330. u32 channels, sample_rate;
  1331. u16 bit_width = 16, be_bit_width;
  1332. bool is_lsm;
  1333. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1334. __func__, fe_id, perf_mode, dspst_id,
  1335. stream_type, passthr_mode);
  1336. if (!is_mm_lsm_fe_id(fe_id)) {
  1337. /* bad ID assigned in machine driver */
  1338. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1339. return -EINVAL;
  1340. }
  1341. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1342. session_type = SESSION_TYPE_RX;
  1343. if (passthr_mode != LEGACY_PCM)
  1344. path_type = ADM_PATH_COMPRESSED_RX;
  1345. else
  1346. path_type = ADM_PATH_PLAYBACK;
  1347. port_type = MSM_AFE_PORT_TYPE_RX;
  1348. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1349. session_type = SESSION_TYPE_TX;
  1350. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1351. path_type = ADM_PATH_COMPRESSED_TX;
  1352. else
  1353. path_type = ADM_PATH_LIVE_REC;
  1354. port_type = MSM_AFE_PORT_TYPE_TX;
  1355. } else {
  1356. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1357. return -EINVAL;
  1358. }
  1359. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1360. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1361. mutex_lock(&routing_lock);
  1362. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1363. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1364. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1365. if (!route_check_fe_id_adm_support(fe_id)) {
  1366. /* ignore adm open if not supported for fe_id */
  1367. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1368. mutex_unlock(&routing_lock);
  1369. return 0;
  1370. }
  1371. payload.num_copps = 0; /* only RX needs to use payload */
  1372. /* re-enable EQ if active */
  1373. msm_qti_pp_send_eq_values(fe_id);
  1374. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1375. if (!is_be_dai_extproc(i) &&
  1376. (afe_get_port_type(msm_bedais[i].port_id) ==
  1377. port_type) &&
  1378. (msm_bedais[i].active) &&
  1379. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1380. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1381. int port_id = get_port_id(msm_bedais[i].port_id);
  1382. /*
  1383. * check if ADM needs to be configured with different
  1384. * channel mapping than backend
  1385. */
  1386. if (!msm_bedais[i].adm_override_ch)
  1387. channels = msm_bedais[i].channel;
  1388. else
  1389. channels = msm_bedais[i].adm_override_ch;
  1390. bit_width = msm_routing_get_bit_width(
  1391. msm_bedais[i].format);
  1392. app_type =
  1393. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1394. if (app_type && is_lsm) {
  1395. app_type_idx =
  1396. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1397. sample_rate =
  1398. fe_dai_app_type_cfg[fe_id][session_type][i]
  1399. .sample_rate;
  1400. bit_width =
  1401. lsm_app_type_cfg[app_type_idx].bit_width;
  1402. } else if (app_type) {
  1403. app_type_idx =
  1404. msm_pcm_routing_get_app_type_idx(
  1405. app_type);
  1406. sample_rate =
  1407. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1408. bit_width =
  1409. app_type_cfg[app_type_idx].bit_width;
  1410. } else {
  1411. sample_rate = msm_bedais[i].sample_rate;
  1412. }
  1413. acdb_dev_id =
  1414. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1415. topology = msm_routing_get_adm_topology(fe_id,
  1416. session_type,
  1417. i);
  1418. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1419. || (passthr_mode ==
  1420. COMPRESSED_PASSTHROUGH_GEN)
  1421. || (passthr_mode ==
  1422. COMPRESSED_PASSTHROUGH_IEC61937))
  1423. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1424. pr_debug("%s: Before adm open topology %d\n", __func__,
  1425. topology);
  1426. be_bit_width = msm_routing_get_bit_width(
  1427. msm_bedais[i].format);
  1428. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1429. == 384000 || msm_bedais[i].sample_rate ==
  1430. 352800) && be_bit_width == 32)
  1431. bit_width = msm_routing_get_bit_width(
  1432. SNDRV_PCM_FORMAT_S32_LE);
  1433. copp_idx =
  1434. adm_open(port_id, path_type, sample_rate,
  1435. channels, topology, perf_mode,
  1436. bit_width, app_type, acdb_dev_id,
  1437. session_type);
  1438. if ((copp_idx < 0) ||
  1439. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1440. pr_err("%s:adm open failed coppid:%d\n",
  1441. __func__, copp_idx);
  1442. mutex_unlock(&routing_lock);
  1443. return -EINVAL;
  1444. }
  1445. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1446. __func__, fe_id, session_type, i);
  1447. set_bit(copp_idx,
  1448. &session_copp_map[fe_id][session_type][i]);
  1449. if (msm_is_resample_needed(
  1450. sample_rate,
  1451. msm_bedais[i].sample_rate))
  1452. adm_copp_mfc_cfg(port_id, copp_idx,
  1453. msm_bedais[i].sample_rate);
  1454. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1455. unsigned long copp =
  1456. session_copp_map[fe_id][session_type][i];
  1457. if (test_bit(j, &copp)) {
  1458. payload.port_id[num_copps] = port_id;
  1459. payload.copp_idx[num_copps] = j;
  1460. payload.app_type[num_copps] =
  1461. fe_dai_app_type_cfg
  1462. [fe_id][session_type][i]
  1463. .app_type;
  1464. payload.acdb_dev_id[num_copps] =
  1465. fe_dai_app_type_cfg
  1466. [fe_id][session_type][i]
  1467. .acdb_dev_id;
  1468. payload.sample_rate[num_copps] =
  1469. fe_dai_app_type_cfg
  1470. [fe_id][session_type][i]
  1471. .sample_rate;
  1472. num_copps++;
  1473. }
  1474. }
  1475. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1476. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1477. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1478. msm_routing_send_device_pp_params(port_id,
  1479. copp_idx, fe_id);
  1480. }
  1481. }
  1482. if (num_copps) {
  1483. payload.num_copps = num_copps;
  1484. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1485. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1486. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1487. }
  1488. mutex_unlock(&routing_lock);
  1489. return 0;
  1490. }
  1491. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1492. {
  1493. u32 session_id;
  1494. switch (val) {
  1495. case MSM_FRONTEND_DAI_QCHAT:
  1496. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1497. break;
  1498. case MSM_FRONTEND_DAI_VOIP:
  1499. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1500. break;
  1501. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1502. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1503. break;
  1504. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1505. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1506. break;
  1507. default:
  1508. session_id = 0;
  1509. }
  1510. pr_debug("%s session_id 0x%x", __func__, session_id);
  1511. return session_id;
  1512. }
  1513. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1514. int dspst_id, int stream_type)
  1515. {
  1516. int copp_idx = 0;
  1517. int sess_type = 0;
  1518. int j = 0, be_id = 0;
  1519. int ret = 0;
  1520. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1521. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1522. return 0;
  1523. }
  1524. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1525. sess_type = SESSION_TYPE_RX;
  1526. else
  1527. sess_type = SESSION_TYPE_TX;
  1528. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1529. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1530. __func__, fe_id, sess_type);
  1531. return 0;
  1532. }
  1533. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1534. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1535. channel_mixer_v2[fe_id][sess_type].input_channel;
  1536. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1537. __func__, sess_type, fe_id,
  1538. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1539. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1540. msm_bedais[be_id].active);
  1541. if ((msm_bedais[be_id].active) &&
  1542. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1543. unsigned long copp =
  1544. session_copp_map[fe_id][sess_type][be_id];
  1545. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1546. if (test_bit(j, &copp)) {
  1547. copp_idx = j;
  1548. break;
  1549. }
  1550. }
  1551. ret = adm_programable_channel_mixer(
  1552. msm_bedais[be_id].port_id,
  1553. copp_idx, dspst_id, sess_type,
  1554. &channel_mixer_v2[fe_id][sess_type], 0);
  1555. }
  1556. return ret;
  1557. }
  1558. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1559. int dspst_id, int stream_type)
  1560. {
  1561. int copp_idx = 0;
  1562. int sess_type = 0;
  1563. int i = 0, j = 0, be_id;
  1564. int ret = 0;
  1565. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1566. dspst_id, stream_type);
  1567. if (ret) {
  1568. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1569. fe_id);
  1570. return ret;
  1571. }
  1572. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1573. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1574. return 0;
  1575. }
  1576. if (!(channel_mixer[fe_id].enable)) {
  1577. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1578. __func__, fe_id);
  1579. return 0;
  1580. }
  1581. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1582. sess_type = SESSION_TYPE_RX;
  1583. else
  1584. sess_type = SESSION_TYPE_TX;
  1585. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1586. ++i) {
  1587. be_id = channel_input[fe_id][i] - 1;
  1588. channel_mixer[fe_id].input_channels[i] =
  1589. msm_bedais[be_id].channel;
  1590. if ((msm_bedais[be_id].active) &&
  1591. test_bit(fe_id,
  1592. &msm_bedais[be_id].fe_sessions[0])) {
  1593. unsigned long copp =
  1594. session_copp_map[fe_id][sess_type][be_id];
  1595. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1596. if (test_bit(j, &copp)) {
  1597. copp_idx = j;
  1598. break;
  1599. }
  1600. }
  1601. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1602. __func__,
  1603. fe_id, be_id, msm_bedais[be_id].channel,
  1604. copp_idx);
  1605. ret = adm_programable_channel_mixer(
  1606. get_port_id(msm_bedais[be_id].port_id),
  1607. copp_idx, dspst_id, sess_type,
  1608. channel_mixer + fe_id, i);
  1609. }
  1610. }
  1611. return ret;
  1612. }
  1613. /**
  1614. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1615. * setting during runtime.
  1616. *
  1617. * @be_id: backend index
  1618. * @session_id: session index
  1619. * @session_type: session type
  1620. * @params: parameters for channel mixer
  1621. *
  1622. * Retuen: 0 for success, else error
  1623. */
  1624. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1625. int session_type,
  1626. struct msm_pcm_channel_mixer *params)
  1627. {
  1628. int rc = 0;
  1629. int port_id, copp_idx = 0;
  1630. be_id--;
  1631. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1632. pr_err("%s: invalid backend id %d\n", __func__,
  1633. be_id);
  1634. return -EINVAL;
  1635. }
  1636. port_id = msm_bedais[be_id].port_id;
  1637. copp_idx = adm_get_default_copp_idx(port_id);
  1638. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1639. __func__, port_id, copp_idx, session_id);
  1640. if ((params->input_channel < 0) ||
  1641. (params->input_channel > ADM_MAX_CHANNELS)) {
  1642. pr_err("%s: invalid input channel %d\n", __func__,
  1643. params->input_channel);
  1644. return -EINVAL;
  1645. }
  1646. if ((params->output_channel < 0) ||
  1647. (params->output_channel > ADM_MAX_CHANNELS)) {
  1648. pr_err("%s: invalid output channel %d\n", __func__,
  1649. params->output_channel);
  1650. return -EINVAL;
  1651. }
  1652. params->input_channels[0] = params->input_channel;
  1653. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1654. __func__, session_type,
  1655. params->override_in_ch_map,
  1656. params->override_out_ch_map,
  1657. msm_bedais[be_id].active);
  1658. rc = adm_programable_channel_mixer(port_id,
  1659. copp_idx,
  1660. session_id,
  1661. session_type,
  1662. params,
  1663. 0);
  1664. if (rc) {
  1665. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1666. rc = -EINVAL;
  1667. }
  1668. return rc;
  1669. }
  1670. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1671. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1672. int dspst_id, int stream_type)
  1673. {
  1674. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1675. struct route_payload payload;
  1676. u32 channels, sample_rate;
  1677. uint16_t bits_per_sample = 16, be_bit_width;
  1678. uint32_t passthr_mode = LEGACY_PCM;
  1679. int ret = 0;
  1680. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1681. /* bad ID assigned in machine driver */
  1682. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1683. return -EINVAL;
  1684. }
  1685. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1686. session_type = SESSION_TYPE_RX;
  1687. path_type = ADM_PATH_PLAYBACK;
  1688. port_type = MSM_AFE_PORT_TYPE_RX;
  1689. } else {
  1690. session_type = SESSION_TYPE_TX;
  1691. path_type = ADM_PATH_LIVE_REC;
  1692. port_type = MSM_AFE_PORT_TYPE_TX;
  1693. }
  1694. mutex_lock(&routing_lock);
  1695. payload.num_copps = 0; /* only RX needs to use payload */
  1696. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1697. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1698. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1699. /* re-enable EQ if active */
  1700. msm_qti_pp_send_eq_values(fedai_id);
  1701. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1702. if (!is_be_dai_extproc(i) &&
  1703. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1704. (msm_bedais[i].active) &&
  1705. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1706. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1707. int port_id = get_port_id(msm_bedais[i].port_id);
  1708. /*
  1709. * check if ADM needs to be configured with different
  1710. * channel mapping than backend
  1711. */
  1712. if (!msm_bedais[i].adm_override_ch)
  1713. channels = msm_bedais[i].channel;
  1714. else
  1715. channels = msm_bedais[i].adm_override_ch;
  1716. bits_per_sample = msm_routing_get_bit_width(
  1717. msm_bedais[i].format);
  1718. app_type =
  1719. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1720. if (app_type) {
  1721. app_type_idx =
  1722. msm_pcm_routing_get_app_type_idx(app_type);
  1723. sample_rate =
  1724. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1725. .sample_rate;
  1726. bits_per_sample =
  1727. app_type_cfg[app_type_idx].bit_width;
  1728. } else
  1729. sample_rate = msm_bedais[i].sample_rate;
  1730. acdb_dev_id =
  1731. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1732. .acdb_dev_id;
  1733. topology = msm_routing_get_adm_topology(fedai_id,
  1734. session_type,
  1735. i);
  1736. be_bit_width = msm_routing_get_bit_width(
  1737. msm_bedais[i].format);
  1738. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1739. 384000 ||msm_bedais[i].sample_rate == 352800)
  1740. && be_bit_width == 32)
  1741. bits_per_sample = msm_routing_get_bit_width(
  1742. SNDRV_PCM_FORMAT_S32_LE);
  1743. copp_idx = adm_open(port_id, path_type,
  1744. sample_rate, channels, topology,
  1745. perf_mode, bits_per_sample,
  1746. app_type, acdb_dev_id,
  1747. session_type);
  1748. if ((copp_idx < 0) ||
  1749. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1750. pr_err("%s: adm open failed copp_idx:%d\n",
  1751. __func__, copp_idx);
  1752. mutex_unlock(&routing_lock);
  1753. return -EINVAL;
  1754. }
  1755. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1756. __func__, fedai_id, session_type, i);
  1757. set_bit(copp_idx,
  1758. &session_copp_map[fedai_id][session_type][i]);
  1759. if (msm_is_resample_needed(
  1760. sample_rate,
  1761. msm_bedais[i].sample_rate))
  1762. adm_copp_mfc_cfg(port_id, copp_idx,
  1763. msm_bedais[i].sample_rate);
  1764. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1765. unsigned long copp =
  1766. session_copp_map[fedai_id][session_type][i];
  1767. if (test_bit(j, &copp)) {
  1768. payload.port_id[num_copps] = port_id;
  1769. payload.copp_idx[num_copps] = j;
  1770. payload.app_type[num_copps] =
  1771. fe_dai_app_type_cfg
  1772. [fedai_id][session_type]
  1773. [i].app_type;
  1774. payload.acdb_dev_id[num_copps] =
  1775. fe_dai_app_type_cfg
  1776. [fedai_id][session_type]
  1777. [i].acdb_dev_id;
  1778. payload.sample_rate[num_copps] =
  1779. fe_dai_app_type_cfg
  1780. [fedai_id][session_type]
  1781. [i].sample_rate;
  1782. num_copps++;
  1783. }
  1784. }
  1785. if (perf_mode == LEGACY_PCM_MODE)
  1786. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1787. topology, channels);
  1788. }
  1789. }
  1790. if (num_copps) {
  1791. payload.num_copps = num_copps;
  1792. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1793. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1794. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1795. }
  1796. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1797. dspst_id, stream_type);
  1798. mutex_unlock(&routing_lock);
  1799. return ret;
  1800. }
  1801. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1802. int dspst_id, int stream_type,
  1803. struct msm_pcm_routing_evt event_info)
  1804. {
  1805. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1806. stream_type)) {
  1807. pr_err("%s: failed to reg phy stream\n", __func__);
  1808. return -EINVAL;
  1809. }
  1810. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1811. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1812. else
  1813. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1814. return 0;
  1815. }
  1816. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1817. {
  1818. int i, port_type, session_type, path_type, topology, port_id;
  1819. struct msm_pcm_routing_fdai_data *fdai;
  1820. if (!is_mm_lsm_fe_id(fedai_id)) {
  1821. /* bad ID assigned in machine driver */
  1822. pr_err("%s: bad MM ID\n", __func__);
  1823. return;
  1824. }
  1825. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1826. port_type = MSM_AFE_PORT_TYPE_RX;
  1827. session_type = SESSION_TYPE_RX;
  1828. path_type = ADM_PATH_PLAYBACK;
  1829. } else {
  1830. port_type = MSM_AFE_PORT_TYPE_TX;
  1831. session_type = SESSION_TYPE_TX;
  1832. path_type = ADM_PATH_LIVE_REC;
  1833. }
  1834. mutex_lock(&routing_lock);
  1835. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1836. if (!is_be_dai_extproc(i) &&
  1837. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1838. (msm_bedais[i].active) &&
  1839. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1840. int idx;
  1841. unsigned long copp =
  1842. session_copp_map[fedai_id][session_type][i];
  1843. fdai = &fe_dai_map[fedai_id][session_type];
  1844. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1845. if (test_bit(idx, &copp))
  1846. break;
  1847. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1848. pr_debug("%s: copp idx is invalid, exiting\n",
  1849. __func__);
  1850. continue;
  1851. }
  1852. port_id = get_port_id(msm_bedais[i].port_id);
  1853. topology = adm_get_topology_for_port_copp_idx(
  1854. port_id, idx);
  1855. msm_routing_unload_topology(topology);
  1856. adm_close(port_id, fdai->perf_mode, idx);
  1857. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1858. __func__, copp, fedai_id, session_type, i);
  1859. clear_bit(idx,
  1860. &session_copp_map[fedai_id][session_type][i]);
  1861. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1862. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1863. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1864. (fdai->passthr_mode == LEGACY_PCM))
  1865. msm_pcm_routing_deinit_pp(port_id, topology);
  1866. }
  1867. }
  1868. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1869. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1870. mutex_unlock(&routing_lock);
  1871. }
  1872. /* Check if FE/BE route is set */
  1873. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1874. {
  1875. bool rc = false;
  1876. if (!is_mm_lsm_fe_id(fe_id)) {
  1877. /* recheck FE ID in the mixer control defined in this file */
  1878. pr_err("%s: bad MM ID\n", __func__);
  1879. return rc;
  1880. }
  1881. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1882. rc = true;
  1883. return rc;
  1884. }
  1885. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1886. {
  1887. int session_type, path_type, topology;
  1888. u32 channels, sample_rate;
  1889. uint16_t bits_per_sample = 16, be_bit_width;
  1890. struct msm_pcm_routing_fdai_data *fdai;
  1891. uint32_t passthr_mode;
  1892. bool is_lsm;
  1893. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1894. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1895. afe_get_port_type(msm_bedais[reg].port_id) ==
  1896. MSM_AFE_PORT_TYPE_RX) {
  1897. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1898. __func__, set, msm_bedais[reg].port_id);
  1899. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1900. } else if (!is_mm_lsm_fe_id(val)) {
  1901. /* recheck FE ID in the mixer control defined in this file */
  1902. pr_err("%s: bad MM ID\n", __func__);
  1903. return;
  1904. }
  1905. if (!route_check_fe_id_adm_support(val)) {
  1906. /* ignore adm open if not supported for fe_id */
  1907. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1908. if (set)
  1909. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1910. else
  1911. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1912. return;
  1913. }
  1914. session_type =
  1915. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1916. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1917. fdai = &fe_dai_map[val][session_type];
  1918. passthr_mode = fdai->passthr_mode;
  1919. if (session_type == SESSION_TYPE_RX) {
  1920. if (passthr_mode != LEGACY_PCM)
  1921. path_type = ADM_PATH_COMPRESSED_RX;
  1922. else
  1923. path_type = ADM_PATH_PLAYBACK;
  1924. } else {
  1925. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1926. path_type = ADM_PATH_COMPRESSED_TX;
  1927. else
  1928. path_type = ADM_PATH_LIVE_REC;
  1929. }
  1930. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1931. (val <= MSM_FRONTEND_DAI_LSM8);
  1932. mutex_lock(&routing_lock);
  1933. if (set) {
  1934. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1935. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1936. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1937. voc_start_playback(set, msm_bedais[reg].port_id);
  1938. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1939. if (msm_bedais[reg].active && fdai->strm_id !=
  1940. INVALID_SESSION) {
  1941. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1942. int port_id = get_port_id(msm_bedais[reg].port_id);
  1943. /*
  1944. * check if ADM needs to be configured with different
  1945. * channel mapping than backend
  1946. */
  1947. if (!msm_bedais[reg].adm_override_ch)
  1948. channels = msm_bedais[reg].channel;
  1949. else
  1950. channels = msm_bedais[reg].adm_override_ch;
  1951. if (session_type == SESSION_TYPE_TX &&
  1952. fdai->be_srate &&
  1953. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1954. pr_debug("%s: flush strm %d diff BE rates\n",
  1955. __func__, fdai->strm_id);
  1956. if (fdai->event_info.event_func)
  1957. fdai->event_info.event_func(
  1958. MSM_PCM_RT_EVT_BUF_RECFG,
  1959. fdai->event_info.priv_data);
  1960. fdai->be_srate = 0; /* might not need it */
  1961. }
  1962. bits_per_sample = msm_routing_get_bit_width(
  1963. msm_bedais[reg].format);
  1964. app_type =
  1965. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1966. if (app_type && is_lsm) {
  1967. app_type_idx =
  1968. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1969. sample_rate =
  1970. fe_dai_app_type_cfg[val][session_type][reg]
  1971. .sample_rate;
  1972. bits_per_sample =
  1973. lsm_app_type_cfg[app_type_idx].bit_width;
  1974. } else if (app_type) {
  1975. app_type_idx =
  1976. msm_pcm_routing_get_app_type_idx(app_type);
  1977. sample_rate =
  1978. fe_dai_app_type_cfg[val][session_type][reg]
  1979. .sample_rate;
  1980. bits_per_sample =
  1981. app_type_cfg[app_type_idx].bit_width;
  1982. } else
  1983. sample_rate = msm_bedais[reg].sample_rate;
  1984. topology = msm_routing_get_adm_topology(val,
  1985. session_type,
  1986. reg);
  1987. acdb_dev_id =
  1988. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1989. be_bit_width = msm_routing_get_bit_width(
  1990. msm_bedais[reg].format);
  1991. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1992. == 384000 ||msm_bedais[reg].sample_rate ==
  1993. 352800) && be_bit_width == 32)
  1994. bits_per_sample = msm_routing_get_bit_width(
  1995. SNDRV_PCM_FORMAT_S32_LE);
  1996. copp_idx = adm_open(port_id, path_type,
  1997. sample_rate, channels, topology,
  1998. fdai->perf_mode, bits_per_sample,
  1999. app_type, acdb_dev_id,
  2000. session_type);
  2001. if ((copp_idx < 0) ||
  2002. (copp_idx >= MAX_COPPS_PER_PORT)) {
  2003. pr_err("%s: adm open failed\n", __func__);
  2004. mutex_unlock(&routing_lock);
  2005. return;
  2006. }
  2007. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  2008. __func__, val, session_type, reg);
  2009. set_bit(copp_idx,
  2010. &session_copp_map[val][session_type][reg]);
  2011. if (msm_is_resample_needed(
  2012. sample_rate,
  2013. msm_bedais[reg].sample_rate))
  2014. adm_copp_mfc_cfg(port_id, copp_idx,
  2015. msm_bedais[reg].sample_rate);
  2016. if (session_type == SESSION_TYPE_RX &&
  2017. fdai->event_info.event_func)
  2018. fdai->event_info.event_func(
  2019. MSM_PCM_RT_EVT_DEVSWITCH,
  2020. fdai->event_info.priv_data);
  2021. msm_pcm_routing_build_matrix(val, session_type,
  2022. path_type,
  2023. fdai->perf_mode,
  2024. passthr_mode);
  2025. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2026. (passthr_mode == LEGACY_PCM))
  2027. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2028. topology, channels);
  2029. }
  2030. } else {
  2031. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2032. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2033. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2034. voc_start_playback(set, msm_bedais[reg].port_id);
  2035. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2036. if (msm_bedais[reg].active && fdai->strm_id !=
  2037. INVALID_SESSION) {
  2038. int idx;
  2039. int port_id;
  2040. unsigned long copp =
  2041. session_copp_map[val][session_type][reg];
  2042. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2043. if (test_bit(idx, &copp))
  2044. break;
  2045. if (idx >= MAX_COPPS_PER_PORT) {
  2046. pr_debug("%s: copp idx is invalid, exiting\n",
  2047. __func__);
  2048. mutex_unlock(&routing_lock);
  2049. return;
  2050. }
  2051. port_id = get_port_id(msm_bedais[reg].port_id);
  2052. topology = adm_get_topology_for_port_copp_idx(port_id,
  2053. idx);
  2054. msm_routing_unload_topology(topology);
  2055. adm_close(port_id, fdai->perf_mode, idx);
  2056. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2057. __func__, copp, val, session_type, reg,
  2058. topology);
  2059. clear_bit(idx,
  2060. &session_copp_map[val][session_type][reg]);
  2061. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2062. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2063. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2064. (passthr_mode == LEGACY_PCM))
  2065. msm_pcm_routing_deinit_pp(port_id, topology);
  2066. msm_pcm_routing_build_matrix(val, session_type,
  2067. path_type,
  2068. fdai->perf_mode,
  2069. passthr_mode);
  2070. }
  2071. }
  2072. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2073. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2074. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2075. mutex_unlock(&routing_lock);
  2076. }
  2077. static int msm_routing_get_audio_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_audio_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. if (ucontrol->value.integer.value[0] &&
  2099. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2100. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2101. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2102. update);
  2103. } else if (!ucontrol->value.integer.value[0] &&
  2104. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2105. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2106. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2107. update);
  2108. }
  2109. return 1;
  2110. }
  2111. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2112. struct snd_ctl_elem_value *ucontrol)
  2113. {
  2114. struct soc_mixer_control *mc =
  2115. (struct soc_mixer_control *)kcontrol->private_value;
  2116. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2117. ucontrol->value.integer.value[0] = 1;
  2118. else
  2119. ucontrol->value.integer.value[0] = 0;
  2120. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2121. ucontrol->value.integer.value[0]);
  2122. return 0;
  2123. }
  2124. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2125. struct snd_ctl_elem_value *ucontrol)
  2126. {
  2127. struct snd_soc_dapm_widget *widget =
  2128. snd_soc_dapm_kcontrol_widget(kcontrol);
  2129. struct soc_mixer_control *mc =
  2130. (struct soc_mixer_control *)kcontrol->private_value;
  2131. struct snd_soc_dapm_update *update = NULL;
  2132. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2133. ucontrol->value.integer.value[0]);
  2134. if (ucontrol->value.integer.value[0]) {
  2135. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2136. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2137. snd_soc_dapm_mixer_update_power(widget->dapm,
  2138. kcontrol, 1, update);
  2139. } else if (!ucontrol->value.integer.value[0]) {
  2140. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2141. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2142. snd_soc_dapm_mixer_update_power(widget->dapm,
  2143. kcontrol, 0, update);
  2144. }
  2145. return 1;
  2146. }
  2147. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2148. {
  2149. u32 session_id = 0;
  2150. u16 path_type;
  2151. struct media_format_info voc_be_media_format;
  2152. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2153. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2154. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2155. __func__, val, session_id);
  2156. mutex_lock(&routing_lock);
  2157. if (set)
  2158. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2159. else
  2160. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2161. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2162. afe_get_port_type(msm_bedais[reg].port_id) ==
  2163. MSM_AFE_PORT_TYPE_RX) {
  2164. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2165. __func__, set, msm_bedais[reg].port_id);
  2166. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2167. }
  2168. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2169. MSM_AFE_PORT_TYPE_RX)
  2170. path_type = RX_PATH;
  2171. else
  2172. path_type = TX_PATH;
  2173. if (set) {
  2174. if (msm_bedais[reg].active) {
  2175. voc_set_route_flag(session_id, path_type, 1);
  2176. memset(&voc_be_media_format, 0,
  2177. sizeof(struct media_format_info));
  2178. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2179. voc_be_media_format.num_channels =
  2180. msm_bedais[reg].channel;
  2181. voc_be_media_format.sample_rate =
  2182. msm_bedais[reg].sample_rate;
  2183. voc_be_media_format.bits_per_sample =
  2184. msm_bedais[reg].format;
  2185. /* Defaulting this to 1 for voice call usecases */
  2186. voc_be_media_format.channel_mapping[0] = 1;
  2187. voc_set_device_config(session_id, path_type,
  2188. &voc_be_media_format);
  2189. if (voc_get_route_flag(session_id, TX_PATH) &&
  2190. voc_get_route_flag(session_id, RX_PATH))
  2191. voc_enable_device(session_id);
  2192. } else {
  2193. pr_debug("%s BE is not active\n", __func__);
  2194. }
  2195. } else {
  2196. voc_set_route_flag(session_id, path_type, 0);
  2197. voc_disable_device(session_id);
  2198. }
  2199. mutex_unlock(&routing_lock);
  2200. }
  2201. static int msm_routing_get_voice_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_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. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2226. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2227. update);
  2228. } else {
  2229. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2230. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2231. update);
  2232. }
  2233. return 1;
  2234. }
  2235. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2236. struct snd_ctl_elem_value *ucontrol)
  2237. {
  2238. struct soc_mixer_control *mc =
  2239. (struct soc_mixer_control *)kcontrol->private_value;
  2240. mutex_lock(&routing_lock);
  2241. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2242. ucontrol->value.integer.value[0] = 1;
  2243. else
  2244. ucontrol->value.integer.value[0] = 0;
  2245. mutex_unlock(&routing_lock);
  2246. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2247. ucontrol->value.integer.value[0]);
  2248. return 0;
  2249. }
  2250. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2251. struct snd_ctl_elem_value *ucontrol)
  2252. {
  2253. struct snd_soc_dapm_widget *widget =
  2254. snd_soc_dapm_kcontrol_widget(kcontrol);
  2255. struct soc_mixer_control *mc =
  2256. (struct soc_mixer_control *)kcontrol->private_value;
  2257. struct snd_soc_dapm_update *update = NULL;
  2258. if (ucontrol->value.integer.value[0]) {
  2259. mutex_lock(&routing_lock);
  2260. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2261. mutex_unlock(&routing_lock);
  2262. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2263. update);
  2264. } else {
  2265. mutex_lock(&routing_lock);
  2266. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2267. mutex_unlock(&routing_lock);
  2268. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2269. update);
  2270. }
  2271. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2272. ucontrol->value.integer.value[0]);
  2273. return 1;
  2274. }
  2275. /*
  2276. * Return the mapping between port ID and backend ID to enable the AFE callback
  2277. * to determine the acdb_dev_id from the port id
  2278. */
  2279. int msm_pcm_get_be_id_from_port_id(int port_id)
  2280. {
  2281. int i;
  2282. int be_id = -EINVAL;
  2283. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2284. if (msm_bedais[i].port_id == port_id) {
  2285. be_id = i;
  2286. break;
  2287. }
  2288. }
  2289. return be_id;
  2290. }
  2291. /*
  2292. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2293. * correct AFE calibration information by comparing the header information.
  2294. */
  2295. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2296. {
  2297. int acdb_id = -EINVAL;
  2298. int i = 0;
  2299. int session;
  2300. int port_type = afe_get_port_type(port_id);
  2301. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2302. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2303. __func__, port_id, be_id, port_type);
  2304. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2305. session = SESSION_TYPE_TX;
  2306. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2307. session = SESSION_TYPE_RX;
  2308. } else {
  2309. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2310. acdb_id = -EINVAL;
  2311. goto exit;
  2312. }
  2313. if (be_id < 0) {
  2314. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2315. goto exit;
  2316. }
  2317. mutex_lock(&routing_lock);
  2318. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2319. MSM_FRONTEND_DAI_MAX);
  2320. if (i < MSM_FRONTEND_DAI_MAX)
  2321. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2322. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2323. __func__, i, session, be_id, acdb_id);
  2324. mutex_unlock(&routing_lock);
  2325. exit:
  2326. return acdb_id;
  2327. }
  2328. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2329. struct snd_ctl_elem_value *ucontrol)
  2330. {
  2331. ucontrol->value.integer.value[0] = fm_switch_enable;
  2332. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2333. ucontrol->value.integer.value[0]);
  2334. return 0;
  2335. }
  2336. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2337. struct snd_ctl_elem_value *ucontrol)
  2338. {
  2339. struct snd_soc_dapm_widget *widget =
  2340. snd_soc_dapm_kcontrol_widget(kcontrol);
  2341. struct snd_soc_dapm_update *update = NULL;
  2342. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2343. ucontrol->value.integer.value[0]);
  2344. if (ucontrol->value.integer.value[0])
  2345. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2346. update);
  2347. else
  2348. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2349. update);
  2350. fm_switch_enable = ucontrol->value.integer.value[0];
  2351. return 1;
  2352. }
  2353. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2354. struct snd_ctl_elem_value *ucontrol)
  2355. {
  2356. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2357. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2358. ucontrol->value.integer.value[0]);
  2359. return 0;
  2360. }
  2361. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2362. struct snd_ctl_elem_value *ucontrol)
  2363. {
  2364. struct snd_soc_dapm_widget *widget =
  2365. snd_soc_dapm_kcontrol_widget(kcontrol);
  2366. struct snd_soc_dapm_update *update = NULL;
  2367. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2368. ucontrol->value.integer.value[0]);
  2369. if (ucontrol->value.integer.value[0])
  2370. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2371. 1, update);
  2372. else
  2373. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2374. 0, update);
  2375. hfp_switch_enable = ucontrol->value.integer.value[0];
  2376. return 1;
  2377. }
  2378. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2379. struct snd_ctl_elem_value *ucontrol)
  2380. {
  2381. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2382. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2383. ucontrol->value.integer.value[0]);
  2384. return 0;
  2385. }
  2386. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2387. struct snd_ctl_elem_value *ucontrol)
  2388. {
  2389. struct snd_soc_dapm_widget *widget =
  2390. snd_soc_dapm_kcontrol_widget(kcontrol);
  2391. struct snd_soc_dapm_update *update = NULL;
  2392. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2393. ucontrol->value.integer.value[0]);
  2394. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2395. if (a2dp_switch_enable)
  2396. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2397. 1, update);
  2398. else
  2399. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2400. 0, update);
  2401. return 1;
  2402. }
  2403. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2404. struct snd_ctl_elem_value *ucontrol)
  2405. {
  2406. ucontrol->value.integer.value[0] = sco_switch_enable;
  2407. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2408. ucontrol->value.integer.value[0]);
  2409. return 0;
  2410. }
  2411. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2412. struct snd_ctl_elem_value *ucontrol)
  2413. {
  2414. struct snd_soc_dapm_widget *widget =
  2415. snd_soc_dapm_kcontrol_widget(kcontrol);
  2416. struct snd_soc_dapm_update *update = NULL;
  2417. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2418. ucontrol->value.integer.value[0]);
  2419. sco_switch_enable = ucontrol->value.integer.value[0];
  2420. if (sco_switch_enable)
  2421. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2422. 1, update);
  2423. else
  2424. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2425. 0, update);
  2426. return 1;
  2427. }
  2428. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2429. struct snd_ctl_elem_value *ucontrol)
  2430. {
  2431. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2432. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2433. ucontrol->value.integer.value[0]);
  2434. return 0;
  2435. }
  2436. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2437. struct snd_ctl_elem_value *ucontrol)
  2438. {
  2439. struct snd_soc_dapm_widget *widget =
  2440. snd_soc_dapm_kcontrol_widget(kcontrol);
  2441. struct snd_soc_dapm_update *update = NULL;
  2442. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2443. ucontrol->value.integer.value[0]);
  2444. if (ucontrol->value.integer.value[0])
  2445. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2446. update);
  2447. else
  2448. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2449. update);
  2450. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2451. return 1;
  2452. }
  2453. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2454. struct snd_ctl_elem_value *ucontrol)
  2455. {
  2456. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2457. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2458. ucontrol->value.integer.value[0]);
  2459. return 0;
  2460. }
  2461. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2462. struct snd_ctl_elem_value *ucontrol)
  2463. {
  2464. struct snd_soc_dapm_widget *widget =
  2465. snd_soc_dapm_kcontrol_widget(kcontrol);
  2466. struct snd_soc_dapm_update *update = NULL;
  2467. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2468. ucontrol->value.integer.value[0]);
  2469. if (ucontrol->value.integer.value[0])
  2470. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2471. update);
  2472. else
  2473. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2474. update);
  2475. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2476. return 1;
  2477. }
  2478. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2479. struct snd_ctl_elem_value *ucontrol)
  2480. {
  2481. ucontrol->value.integer.value[0] = usb_switch_enable;
  2482. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2483. ucontrol->value.integer.value[0]);
  2484. return 0;
  2485. }
  2486. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2487. struct snd_ctl_elem_value *ucontrol)
  2488. {
  2489. struct snd_soc_dapm_widget *widget =
  2490. snd_soc_dapm_kcontrol_widget(kcontrol);
  2491. struct snd_soc_dapm_update *update = NULL;
  2492. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2493. ucontrol->value.integer.value[0]);
  2494. if (ucontrol->value.integer.value[0])
  2495. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2496. 1, update);
  2497. else
  2498. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2499. 0, update);
  2500. usb_switch_enable = ucontrol->value.integer.value[0];
  2501. return 1;
  2502. }
  2503. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2504. struct snd_ctl_elem_value *ucontrol)
  2505. {
  2506. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2507. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2508. ucontrol->value.integer.value[0]);
  2509. return 0;
  2510. }
  2511. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2512. struct snd_ctl_elem_value *ucontrol)
  2513. {
  2514. struct snd_soc_dapm_widget *widget =
  2515. snd_soc_dapm_kcontrol_widget(kcontrol);
  2516. struct snd_soc_dapm_update *update = NULL;
  2517. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2518. ucontrol->value.integer.value[0]);
  2519. if (ucontrol->value.integer.value[0])
  2520. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2521. update);
  2522. else
  2523. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2524. update);
  2525. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2526. return 1;
  2527. }
  2528. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2529. struct snd_ctl_elem_value *ucontrol)
  2530. {
  2531. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2532. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2533. ucontrol->value.integer.value[0]);
  2534. return 0;
  2535. }
  2536. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2537. struct snd_ctl_elem_value *ucontrol)
  2538. {
  2539. struct snd_soc_dapm_widget *widget =
  2540. snd_soc_dapm_kcontrol_widget(kcontrol);
  2541. struct snd_soc_dapm_update *update = NULL;
  2542. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2543. ucontrol->value.integer.value[0]);
  2544. if (ucontrol->value.integer.value[0])
  2545. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2546. update);
  2547. else
  2548. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2549. update);
  2550. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2551. return 1;
  2552. }
  2553. static int msm_routing_get_tert_mi2s_switch_mixer(
  2554. struct snd_kcontrol *kcontrol,
  2555. struct snd_ctl_elem_value *ucontrol)
  2556. {
  2557. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2558. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2559. ucontrol->value.integer.value[0]);
  2560. return 0;
  2561. }
  2562. static int msm_routing_put_tert_mi2s_switch_mixer(
  2563. struct snd_kcontrol *kcontrol,
  2564. struct snd_ctl_elem_value *ucontrol)
  2565. {
  2566. struct snd_soc_dapm_widget *widget =
  2567. snd_soc_dapm_kcontrol_widget(kcontrol);
  2568. struct snd_soc_dapm_update *update = NULL;
  2569. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2570. ucontrol->value.integer.value[0]);
  2571. if (ucontrol->value.integer.value[0])
  2572. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2573. update);
  2574. else
  2575. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2576. update);
  2577. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2578. return 1;
  2579. }
  2580. static int msm_routing_get_quat_mi2s_switch_mixer(
  2581. struct snd_kcontrol *kcontrol,
  2582. struct snd_ctl_elem_value *ucontrol)
  2583. {
  2584. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2585. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2586. ucontrol->value.integer.value[0]);
  2587. return 0;
  2588. }
  2589. static int msm_routing_put_quat_mi2s_switch_mixer(
  2590. struct snd_kcontrol *kcontrol,
  2591. struct snd_ctl_elem_value *ucontrol)
  2592. {
  2593. struct snd_soc_dapm_widget *widget =
  2594. snd_soc_dapm_kcontrol_widget(kcontrol);
  2595. struct snd_soc_dapm_update *update = NULL;
  2596. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2597. ucontrol->value.integer.value[0]);
  2598. if (ucontrol->value.integer.value[0])
  2599. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2600. update);
  2601. else
  2602. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2603. update);
  2604. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2605. return 1;
  2606. }
  2607. static int msm_routing_get_quin_mi2s_switch_mixer(
  2608. struct snd_kcontrol *kcontrol,
  2609. struct snd_ctl_elem_value *ucontrol)
  2610. {
  2611. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2612. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2613. ucontrol->value.integer.value[0]);
  2614. return 0;
  2615. }
  2616. static int msm_routing_put_quin_mi2s_switch_mixer(
  2617. struct snd_kcontrol *kcontrol,
  2618. struct snd_ctl_elem_value *ucontrol)
  2619. {
  2620. struct snd_soc_dapm_widget *widget =
  2621. snd_soc_dapm_kcontrol_widget(kcontrol);
  2622. struct snd_soc_dapm_update *update = NULL;
  2623. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2624. ucontrol->value.integer.value[0]);
  2625. if (ucontrol->value.integer.value[0])
  2626. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2627. update);
  2628. else
  2629. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2630. update);
  2631. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2632. return 1;
  2633. }
  2634. static int msm_routing_get_sen_mi2s_switch_mixer(
  2635. struct snd_kcontrol *kcontrol,
  2636. struct snd_ctl_elem_value *ucontrol)
  2637. {
  2638. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2639. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2640. ucontrol->value.integer.value[0]);
  2641. return 0;
  2642. }
  2643. static int msm_routing_put_sen_mi2s_switch_mixer(
  2644. struct snd_kcontrol *kcontrol,
  2645. struct snd_ctl_elem_value *ucontrol)
  2646. {
  2647. struct snd_soc_dapm_widget *widget =
  2648. snd_soc_dapm_kcontrol_widget(kcontrol);
  2649. struct snd_soc_dapm_update *update = NULL;
  2650. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2651. ucontrol->value.integer.value[0]);
  2652. if (ucontrol->value.integer.value[0])
  2653. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2654. update);
  2655. else
  2656. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2657. update);
  2658. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2659. return 1;
  2660. }
  2661. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2662. struct snd_ctl_elem_value *ucontrol)
  2663. {
  2664. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2665. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2666. ucontrol->value.integer.value[0]);
  2667. return 0;
  2668. }
  2669. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2670. struct snd_ctl_elem_value *ucontrol)
  2671. {
  2672. struct snd_soc_dapm_widget *widget =
  2673. snd_soc_dapm_kcontrol_widget(kcontrol);
  2674. struct snd_soc_dapm_update *update = NULL;
  2675. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2676. ucontrol->value.integer.value[0]);
  2677. if (ucontrol->value.integer.value[0])
  2678. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2679. update);
  2680. else
  2681. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2682. update);
  2683. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2684. return 1;
  2685. }
  2686. static void msm_routing_get_lsm_fe_idx(struct snd_kcontrol *kcontrol,
  2687. u8 *fe_idx)
  2688. {
  2689. int fe_id = MSM_FRONTEND_DAI_LSM1;
  2690. if (strnstr(kcontrol->id.name, "LSM1", sizeof("LSM1"))) {
  2691. fe_id = MSM_FRONTEND_DAI_LSM1;
  2692. } else if (strnstr(kcontrol->id.name, "LSM2", sizeof("LSM2"))) {
  2693. fe_id = MSM_FRONTEND_DAI_LSM2;
  2694. } else if (strnstr(kcontrol->id.name, "LSM3", sizeof("LSM3"))) {
  2695. fe_id = MSM_FRONTEND_DAI_LSM3;
  2696. } else if (strnstr(kcontrol->id.name, "LSM4", sizeof("LSM4"))) {
  2697. fe_id = MSM_FRONTEND_DAI_LSM4;
  2698. } else if (strnstr(kcontrol->id.name, "LSM5", sizeof("LSM5"))) {
  2699. fe_id = MSM_FRONTEND_DAI_LSM5;
  2700. } else if (strnstr(kcontrol->id.name, "LSM6", sizeof("LSM6"))) {
  2701. fe_id = MSM_FRONTEND_DAI_LSM6;
  2702. } else if (strnstr(kcontrol->id.name, "LSM7", sizeof("LSM7"))) {
  2703. fe_id = MSM_FRONTEND_DAI_LSM7;
  2704. } else if (strnstr(kcontrol->id.name, "LSM8", sizeof("LSM8"))) {
  2705. fe_id = MSM_FRONTEND_DAI_LSM8;
  2706. } else {
  2707. pr_err("%s: Invalid kcontrol name:%s\n", __func__,
  2708. kcontrol->id.name);
  2709. return;
  2710. }
  2711. *fe_idx = fe_id - MSM_FRONTEND_DAI_LSM1;
  2712. pr_debug("%s: fe_id: %d, fe_idx:%d\n", __func__, fe_id, *fe_idx);
  2713. }
  2714. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2715. struct snd_ctl_elem_value *ucontrol)
  2716. {
  2717. u8 fe_idx = 0;
  2718. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2719. ucontrol->value.integer.value[0] = lsm_port_index[fe_idx];
  2720. return 0;
  2721. }
  2722. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2723. struct snd_ctl_elem_value *ucontrol)
  2724. {
  2725. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2726. int mux = ucontrol->value.enumerated.item[0];
  2727. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2728. u8 fe_idx = 0;
  2729. if (mux >= e->items) {
  2730. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2731. return -EINVAL;
  2732. }
  2733. pr_debug("%s: LSM enable %ld\n", __func__,
  2734. ucontrol->value.integer.value[0]);
  2735. switch (ucontrol->value.integer.value[0]) {
  2736. case 1:
  2737. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2738. break;
  2739. case 2:
  2740. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2741. break;
  2742. case 3:
  2743. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2744. break;
  2745. case 4:
  2746. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2747. break;
  2748. case 5:
  2749. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2750. break;
  2751. case 6:
  2752. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2753. break;
  2754. case 7:
  2755. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2756. break;
  2757. case 8:
  2758. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2759. break;
  2760. case 9:
  2761. lsm_port = ADM_LSM_PORT_ID;
  2762. break;
  2763. case 10:
  2764. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2765. break;
  2766. case 11:
  2767. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2768. break;
  2769. case 12:
  2770. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2771. break;
  2772. case 13:
  2773. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2774. break;
  2775. case 14:
  2776. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2777. break;
  2778. case 15:
  2779. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2780. break;
  2781. case 16:
  2782. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2783. break;
  2784. default:
  2785. pr_err("Default lsm port");
  2786. break;
  2787. }
  2788. set_lsm_port(lsm_port);
  2789. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2790. lsm_port_index[fe_idx] = ucontrol->value.integer.value[0];
  2791. return 0;
  2792. }
  2793. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2794. struct snd_ctl_elem_value *ucontrol)
  2795. {
  2796. int i;
  2797. u16 port_id;
  2798. enum afe_mad_type mad_type;
  2799. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2800. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2801. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2802. strlen(lsm_port_text[i])))
  2803. break;
  2804. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2805. pr_warn("%s: Invalid id name %s\n", __func__,
  2806. kcontrol->id.name);
  2807. return -EINVAL;
  2808. }
  2809. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2810. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2811. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2812. strlen(lsm_port_text[7])))
  2813. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2814. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2815. strlen(lsm_port_text[8])))
  2816. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2817. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2818. strlen(lsm_port_text[10])))
  2819. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2820. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2821. strlen(lsm_port_text[14])))
  2822. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2823. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2824. strlen(lsm_port_text[15])))
  2825. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2826. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2827. strlen(lsm_port_text[16])))
  2828. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2829. mad_type = afe_port_get_mad_type(port_id);
  2830. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2831. mad_type);
  2832. switch (mad_type) {
  2833. case MAD_HW_NONE:
  2834. ucontrol->value.integer.value[0] = MADNONE;
  2835. break;
  2836. case MAD_HW_AUDIO:
  2837. ucontrol->value.integer.value[0] = MADAUDIO;
  2838. break;
  2839. case MAD_HW_BEACON:
  2840. ucontrol->value.integer.value[0] = MADBEACON;
  2841. break;
  2842. case MAD_HW_ULTRASOUND:
  2843. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2844. break;
  2845. case MAD_SW_AUDIO:
  2846. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2847. break;
  2848. default:
  2849. pr_warn("%s: Unknown\n", __func__);
  2850. return -EINVAL;
  2851. }
  2852. return 0;
  2853. }
  2854. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2855. struct snd_ctl_elem_value *ucontrol)
  2856. {
  2857. int i;
  2858. u16 port_id;
  2859. enum afe_mad_type mad_type;
  2860. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2861. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2862. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2863. strlen(lsm_port_text[i])))
  2864. break;
  2865. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2866. pr_warn("%s: Invalid id name %s\n", __func__,
  2867. kcontrol->id.name);
  2868. return -EINVAL;
  2869. }
  2870. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2871. switch (ucontrol->value.integer.value[0]) {
  2872. case MADNONE:
  2873. mad_type = MAD_HW_NONE;
  2874. break;
  2875. case MADAUDIO:
  2876. mad_type = MAD_HW_AUDIO;
  2877. break;
  2878. case MADBEACON:
  2879. mad_type = MAD_HW_BEACON;
  2880. break;
  2881. case MADULTRASOUND:
  2882. mad_type = MAD_HW_ULTRASOUND;
  2883. break;
  2884. case MADSWAUDIO:
  2885. mad_type = MAD_SW_AUDIO;
  2886. break;
  2887. default:
  2888. pr_warn("%s: Unknown\n", __func__);
  2889. return -EINVAL;
  2890. }
  2891. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2892. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2893. strlen(lsm_port_text[7])))
  2894. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2895. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2896. strlen(lsm_port_text[8])))
  2897. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2898. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2899. strlen(lsm_port_text[10])))
  2900. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2901. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2902. strlen(lsm_port_text[14])))
  2903. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2904. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2905. strlen(lsm_port_text[15])))
  2906. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2907. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2908. strlen(lsm_port_text[16])))
  2909. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2910. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2911. mad_type);
  2912. return afe_port_set_mad_type(port_id, mad_type);
  2913. }
  2914. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2915. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2916. adm_override_chs_text);
  2917. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2918. {
  2919. int backend_id;
  2920. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2921. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2922. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2923. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2924. } else {
  2925. pr_err("%s: unsupported backend id: %s",
  2926. __func__, kcontrol->id.name);
  2927. return -EINVAL;
  2928. }
  2929. return backend_id;
  2930. }
  2931. static int msm_routing_adm_channel_config_get(
  2932. struct snd_kcontrol *kcontrol,
  2933. struct snd_ctl_elem_value *ucontrol)
  2934. {
  2935. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2936. if (backend_id >= 0) {
  2937. mutex_lock(&routing_lock);
  2938. ucontrol->value.integer.value[0] =
  2939. msm_bedais[backend_id].adm_override_ch;
  2940. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2941. ucontrol->value.integer.value[0], backend_id);
  2942. mutex_unlock(&routing_lock);
  2943. }
  2944. return 0;
  2945. }
  2946. static int msm_routing_adm_channel_config_put(
  2947. struct snd_kcontrol *kcontrol,
  2948. struct snd_ctl_elem_value *ucontrol)
  2949. {
  2950. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2951. if (backend_id >= 0) {
  2952. mutex_lock(&routing_lock);
  2953. msm_bedais[backend_id].adm_override_ch =
  2954. ucontrol->value.integer.value[0];
  2955. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2956. __func__, backend_id,
  2957. msm_bedais[backend_id].adm_override_ch);
  2958. mutex_unlock(&routing_lock);
  2959. }
  2960. return 0;
  2961. }
  2962. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2963. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2964. msm_routing_adm_channel_config_get,
  2965. msm_routing_adm_channel_config_put),
  2966. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2967. msm_routing_adm_channel_config_get,
  2968. msm_routing_adm_channel_config_put),
  2969. };
  2970. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2971. struct snd_ctl_elem_value *ucontrol)
  2972. {
  2973. mutex_lock(&routing_lock);
  2974. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2975. mutex_unlock(&routing_lock);
  2976. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2977. ucontrol->value.integer.value[0]);
  2978. return 0;
  2979. };
  2980. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2981. struct snd_ctl_elem_value *ucontrol)
  2982. {
  2983. struct aanc_data aanc_info;
  2984. mutex_lock(&routing_lock);
  2985. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2986. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2987. ucontrol->value.integer.value[0]);
  2988. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2989. if (ucontrol->value.integer.value[0] == 0) {
  2990. aanc_info.aanc_active = false;
  2991. aanc_info.aanc_tx_port = 0;
  2992. aanc_info.aanc_rx_port = 0;
  2993. } else {
  2994. aanc_info.aanc_active = true;
  2995. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2996. aanc_info.aanc_tx_port =
  2997. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2998. }
  2999. afe_set_aanc_info(&aanc_info);
  3000. mutex_unlock(&routing_lock);
  3001. return 0;
  3002. };
  3003. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  3004. struct snd_ctl_elem_value *ucontrol)
  3005. {
  3006. int idx = 0, shift = 0;
  3007. struct soc_mixer_control *mc =
  3008. (struct soc_mixer_control *)kcontrol->private_value;
  3009. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3010. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3011. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3012. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3013. return -EINVAL;
  3014. }
  3015. if (test_bit(shift,
  3016. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  3017. ucontrol->value.integer.value[0] = 1;
  3018. else
  3019. ucontrol->value.integer.value[0] = 0;
  3020. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  3021. ucontrol->value.integer.value[0]);
  3022. return 0;
  3023. }
  3024. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  3025. struct snd_ctl_elem_value *ucontrol)
  3026. {
  3027. int idx = 0, shift = 0;
  3028. struct soc_mixer_control *mc =
  3029. (struct soc_mixer_control *)kcontrol->private_value;
  3030. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3031. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3032. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3033. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3034. return -EINVAL;
  3035. }
  3036. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  3037. __func__, mc->shift, mc->rshift,
  3038. ucontrol->value.integer.value[0], idx, shift);
  3039. if (ucontrol->value.integer.value[0]) {
  3040. afe_loopback(1, msm_bedais[mc->shift].port_id,
  3041. msm_bedais[mc->rshift].port_id);
  3042. set_bit(shift,
  3043. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3044. } else {
  3045. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3046. msm_bedais[mc->rshift].port_id);
  3047. clear_bit(shift,
  3048. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3049. }
  3050. return 1;
  3051. }
  3052. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3053. struct snd_ctl_elem_value *ucontrol)
  3054. {
  3055. u16 fe_id = 0;
  3056. fe_id = ((struct soc_mixer_control *)
  3057. kcontrol->private_value)->shift;
  3058. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3059. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3060. return -EINVAL;
  3061. }
  3062. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3063. return 0;
  3064. }
  3065. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3066. struct snd_ctl_elem_value *ucontrol)
  3067. {
  3068. u16 fe_id = 0;
  3069. fe_id = ((struct soc_mixer_control *)
  3070. kcontrol->private_value)->shift;
  3071. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3072. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3073. return -EINVAL;
  3074. }
  3075. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3076. return 1;
  3077. }
  3078. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3079. struct snd_ctl_elem_value *ucontrol)
  3080. {
  3081. u16 fe_id = 0;
  3082. fe_id = ((struct soc_multi_mixer_control *)
  3083. kcontrol->private_value)->shift;
  3084. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3085. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3086. return -EINVAL;
  3087. }
  3088. ucontrol->value.integer.value[0] =
  3089. channel_mixer[fe_id].output_channel;
  3090. return 0;
  3091. }
  3092. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3093. struct snd_ctl_elem_value *ucontrol)
  3094. {
  3095. u16 fe_id = 0;
  3096. fe_id = ((struct soc_multi_mixer_control *)
  3097. kcontrol->private_value)->shift;
  3098. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3099. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3100. return -EINVAL;
  3101. }
  3102. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3103. fe_id,
  3104. (unsigned int)(ucontrol->value.integer.value[0]));
  3105. channel_mixer[fe_id].output_channel =
  3106. (unsigned int)(ucontrol->value.integer.value[0]);
  3107. return 1;
  3108. }
  3109. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3110. /* If new backend is added, need update this array */
  3111. static const char *const be_name[] = {
  3112. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3113. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3114. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3115. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3116. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3117. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3118. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3119. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3120. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3121. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3122. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3123. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3124. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3125. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3126. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3127. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3128. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3129. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3130. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3131. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3132. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3133. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3134. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3135. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3136. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3137. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3138. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3139. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3140. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3141. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3142. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3143. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3144. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3145. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3146. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3147. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3148. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3149. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3150. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3151. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3152. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3153. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3154. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3155. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3156. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3157. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3158. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3159. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3160. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3161. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3162. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3163. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3164. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3165. "SEC_META_MI2S_RX", "PROXY_RX", "PROXY_TX"
  3166. };
  3167. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3168. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3169. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3170. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3171. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3172. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3173. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3174. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3175. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3176. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3177. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3178. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3179. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3180. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3181. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3182. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3183. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3184. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3185. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3186. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3187. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3188. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3189. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3190. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3191. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3192. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3193. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3194. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3195. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3196. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3197. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3198. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3199. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3200. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3201. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3202. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3203. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3204. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3205. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3206. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3207. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3208. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3209. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3210. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3211. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3212. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3213. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3214. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3215. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3216. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3217. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3218. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3219. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3220. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3221. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3222. unsigned int channels,
  3223. unsigned int items, const char *const names[])
  3224. {
  3225. if (uinfo->value.enumerated.item >= items)
  3226. uinfo->value.enumerated.item = items - 1;
  3227. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3228. sizeof(uinfo->value.enumerated.name),
  3229. "ALSA: too long item name '%s'\n",
  3230. names[uinfo->value.enumerated.item]);
  3231. strlcpy(uinfo->value.enumerated.name,
  3232. names[uinfo->value.enumerated.item],
  3233. sizeof(uinfo->value.enumerated.name));
  3234. return 0;
  3235. }
  3236. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3237. struct snd_ctl_elem_info *uinfo)
  3238. {
  3239. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3240. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3241. uinfo->count = 1;
  3242. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3243. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3244. return 0;
  3245. }
  3246. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3247. struct snd_ctl_elem_value *ucontrol)
  3248. {
  3249. u16 fe_id = 0;
  3250. fe_id = ((struct soc_enum *)
  3251. kcontrol->private_value)->shift_l;
  3252. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3253. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3254. return -EINVAL;
  3255. }
  3256. pr_debug("%s: FE %d %s\n", __func__,
  3257. fe_id,
  3258. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3259. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3260. return 0;
  3261. }
  3262. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3263. struct snd_ctl_elem_value *ucontrol)
  3264. {
  3265. u16 fe_id = 0;
  3266. fe_id = ((struct soc_enum *)
  3267. kcontrol->private_value)->shift_l;
  3268. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3269. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3270. return -EINVAL;
  3271. }
  3272. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3273. pr_debug("%s: %s FE %d\n", __func__,
  3274. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3275. fe_id);
  3276. return 0;
  3277. }
  3278. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3279. struct snd_ctl_elem_info *uinfo)
  3280. {
  3281. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3282. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3283. uinfo->count = 1;
  3284. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3285. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3286. return 0;
  3287. }
  3288. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3289. struct snd_ctl_elem_value *ucontrol)
  3290. {
  3291. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3292. u16 fe_id = 0, in_ch = 0;
  3293. fe_id = e->shift_l;
  3294. in_ch = e->shift_r;
  3295. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3296. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3297. return -EINVAL;
  3298. }
  3299. if (in_ch >= ADM_MAX_CHANNELS) {
  3300. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3301. return -EINVAL;
  3302. }
  3303. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3304. return 1;
  3305. }
  3306. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3307. struct snd_ctl_elem_value *ucontrol)
  3308. {
  3309. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3310. u16 fe_id = 0, in_ch = 0;
  3311. fe_id = e->shift_l;
  3312. in_ch = e->shift_r;
  3313. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3314. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3315. return -EINVAL;
  3316. }
  3317. if (in_ch >= ADM_MAX_CHANNELS) {
  3318. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3319. return -EINVAL;
  3320. }
  3321. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3322. return 1;
  3323. }
  3324. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3325. struct snd_ctl_elem_info *uinfo)
  3326. {
  3327. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3328. uinfo->count = ADM_MAX_CHANNELS;
  3329. uinfo->value.integer.min = 0;
  3330. uinfo->value.integer.max = WEIGHT_0_DB;
  3331. return 0;
  3332. }
  3333. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3334. struct snd_ctl_elem_value *ucontrol)
  3335. {
  3336. u16 fe_id = 0, out_ch = 0;
  3337. int i, weight;
  3338. fe_id = ((struct soc_multi_mixer_control *)
  3339. kcontrol->private_value)->shift;
  3340. out_ch = ((struct soc_multi_mixer_control *)
  3341. kcontrol->private_value)->rshift;
  3342. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3343. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3344. return -EINVAL;
  3345. }
  3346. if (out_ch >= ADM_MAX_CHANNELS) {
  3347. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3348. return -EINVAL;
  3349. }
  3350. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3351. __func__, fe_id,
  3352. ucontrol->value.integer.value[0],
  3353. ucontrol->value.integer.value[1],
  3354. ucontrol->value.integer.value[2],
  3355. ucontrol->value.integer.value[3],
  3356. ucontrol->value.integer.value[4],
  3357. ucontrol->value.integer.value[5],
  3358. ucontrol->value.integer.value[6],
  3359. ucontrol->value.integer.value[7]);
  3360. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3361. weight = ucontrol->value.integer.value[i];
  3362. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3363. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3364. __func__, fe_id, out_ch, i,
  3365. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3366. }
  3367. return 0;
  3368. }
  3369. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3370. struct snd_ctl_elem_value *ucontrol)
  3371. {
  3372. u16 fe_id = 0, out_ch = 0;
  3373. int i;
  3374. fe_id = ((struct soc_multi_mixer_control *)
  3375. kcontrol->private_value)->shift;
  3376. out_ch = ((struct soc_multi_mixer_control *)
  3377. kcontrol->private_value)->rshift;
  3378. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3379. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3380. return -EINVAL;
  3381. }
  3382. if (out_ch >= ADM_MAX_CHANNELS) {
  3383. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3384. return -EINVAL;
  3385. }
  3386. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3387. ucontrol->value.integer.value[i] =
  3388. channel_mixer[fe_id].channel_weight[out_ch][i];
  3389. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3390. __func__, fe_id,
  3391. ucontrol->value.integer.value[0],
  3392. ucontrol->value.integer.value[1],
  3393. ucontrol->value.integer.value[2],
  3394. ucontrol->value.integer.value[3],
  3395. ucontrol->value.integer.value[4],
  3396. ucontrol->value.integer.value[5],
  3397. ucontrol->value.integer.value[6],
  3398. ucontrol->value.integer.value[7]);
  3399. return 0;
  3400. }
  3401. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3402. struct snd_ctl_elem_info *uinfo)
  3403. {
  3404. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3405. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3406. /* Valid channel map value ranges from 1 to 64 */
  3407. uinfo->value.integer.min = 0;
  3408. uinfo->value.integer.max = 64;
  3409. return 0;
  3410. }
  3411. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3412. struct snd_ctl_elem_value *ucontrol)
  3413. {
  3414. u16 fe_id = 0;
  3415. int i, ch_map;
  3416. fe_id = ((struct soc_multi_mixer_control *)
  3417. kcontrol->private_value)->shift;
  3418. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3419. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3420. return -EINVAL;
  3421. }
  3422. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3423. ch_map = ucontrol->value.integer.value[i];
  3424. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3425. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3426. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3427. }
  3428. /* Make override_out_ch_map false if ch map is reset */
  3429. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3430. channel_mixer[fe_id].override_out_ch_map = false;
  3431. else
  3432. channel_mixer[fe_id].override_out_ch_map = true;
  3433. return 0;
  3434. }
  3435. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3436. struct snd_ctl_elem_value *ucontrol)
  3437. {
  3438. u16 fe_id = 0;
  3439. int i;
  3440. fe_id = ((struct soc_multi_mixer_control *)
  3441. kcontrol->private_value)->shift;
  3442. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3443. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3444. return -EINVAL;
  3445. }
  3446. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3447. ucontrol->value.integer.value[i] =
  3448. channel_mixer[fe_id].out_ch_map[i];
  3449. return 0;
  3450. }
  3451. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3452. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3453. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3454. msm_pcm_get_channel_rule_index,
  3455. msm_pcm_put_channel_rule_index),
  3456. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3457. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3458. msm_pcm_get_channel_rule_index,
  3459. msm_pcm_put_channel_rule_index),
  3460. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3461. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3462. msm_pcm_get_channel_rule_index,
  3463. msm_pcm_put_channel_rule_index),
  3464. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3465. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3466. msm_pcm_get_channel_rule_index,
  3467. msm_pcm_put_channel_rule_index),
  3468. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3469. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3470. msm_pcm_get_channel_rule_index,
  3471. msm_pcm_put_channel_rule_index),
  3472. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3473. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3474. msm_pcm_get_channel_rule_index,
  3475. msm_pcm_put_channel_rule_index),
  3476. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3477. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3478. msm_pcm_get_channel_rule_index,
  3479. msm_pcm_put_channel_rule_index),
  3480. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3481. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3482. msm_pcm_get_channel_rule_index,
  3483. msm_pcm_put_channel_rule_index),
  3484. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3485. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3486. msm_pcm_get_channel_rule_index,
  3487. msm_pcm_put_channel_rule_index),
  3488. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3489. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3490. msm_pcm_get_channel_rule_index,
  3491. msm_pcm_put_channel_rule_index),
  3492. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3493. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3494. msm_pcm_get_channel_rule_index,
  3495. msm_pcm_put_channel_rule_index),
  3496. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3497. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3498. msm_pcm_get_out_chs,
  3499. msm_pcm_put_out_chs),
  3500. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3501. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3502. msm_pcm_get_out_chs,
  3503. msm_pcm_put_out_chs),
  3504. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3505. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3506. msm_pcm_get_out_chs,
  3507. msm_pcm_put_out_chs),
  3508. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3509. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3510. msm_pcm_get_out_chs,
  3511. msm_pcm_put_out_chs),
  3512. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3513. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3514. msm_pcm_get_out_chs,
  3515. msm_pcm_put_out_chs),
  3516. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3517. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3518. msm_pcm_get_out_chs,
  3519. msm_pcm_put_out_chs),
  3520. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3521. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3522. msm_pcm_get_out_chs,
  3523. msm_pcm_put_out_chs),
  3524. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3525. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3526. msm_pcm_get_out_chs,
  3527. msm_pcm_put_out_chs),
  3528. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3529. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3530. msm_pcm_get_out_chs,
  3531. msm_pcm_put_out_chs),
  3532. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3533. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3534. msm_pcm_get_out_chs,
  3535. msm_pcm_put_out_chs),
  3536. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3537. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3538. msm_pcm_get_out_chs,
  3539. msm_pcm_put_out_chs),
  3540. {
  3541. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3542. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3543. .name = "MultiMedia1 Channel Mixer",
  3544. .info = msm_pcm_channel_mixer_info,
  3545. .get = msm_pcm_channel_mixer_get,
  3546. .put = msm_pcm_channel_mixer_put,
  3547. .private_value = (unsigned long)&(mm1_channel_mux)
  3548. },
  3549. {
  3550. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3551. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3552. .name = "MultiMedia2 Channel Mixer",
  3553. .info = msm_pcm_channel_mixer_info,
  3554. .get = msm_pcm_channel_mixer_get,
  3555. .put = msm_pcm_channel_mixer_put,
  3556. .private_value = (unsigned long)&(mm2_channel_mux)
  3557. },
  3558. {
  3559. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3560. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3561. .name = "MultiMedia3 Channel Mixer",
  3562. .info = msm_pcm_channel_mixer_info,
  3563. .get = msm_pcm_channel_mixer_get,
  3564. .put = msm_pcm_channel_mixer_put,
  3565. .private_value = (unsigned long)&(mm3_channel_mux)
  3566. },
  3567. {
  3568. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3569. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3570. .name = "MultiMedia4 Channel Mixer",
  3571. .info = msm_pcm_channel_mixer_info,
  3572. .get = msm_pcm_channel_mixer_get,
  3573. .put = msm_pcm_channel_mixer_put,
  3574. .private_value = (unsigned long)&(mm4_channel_mux)
  3575. },
  3576. {
  3577. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3578. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3579. .name = "MultiMedia18 Channel Mixer",
  3580. .info = msm_pcm_channel_mixer_info,
  3581. .get = msm_pcm_channel_mixer_get,
  3582. .put = msm_pcm_channel_mixer_put,
  3583. .private_value = (unsigned long)&(mm18_channel_mux)
  3584. },
  3585. {
  3586. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3587. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3588. .name = "MultiMedia19 Channel Mixer",
  3589. .info = msm_pcm_channel_mixer_info,
  3590. .get = msm_pcm_channel_mixer_get,
  3591. .put = msm_pcm_channel_mixer_put,
  3592. .private_value = (unsigned long)&(mm19_channel_mux)
  3593. },
  3594. {
  3595. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3596. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3597. .name = "MultiMedia28 Channel Mixer",
  3598. .info = msm_pcm_channel_mixer_info,
  3599. .get = msm_pcm_channel_mixer_get,
  3600. .put = msm_pcm_channel_mixer_put,
  3601. .private_value = (unsigned long)&(mm28_channel_mux)
  3602. },
  3603. {
  3604. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3605. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3606. .name = "MultiMedia29 Channel Mixer",
  3607. .info = msm_pcm_channel_mixer_info,
  3608. .get = msm_pcm_channel_mixer_get,
  3609. .put = msm_pcm_channel_mixer_put,
  3610. .private_value = (unsigned long)&(mm29_channel_mux)
  3611. },
  3612. {
  3613. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3614. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3615. .name = "MultiMedia30 Channel Mixer",
  3616. .info = msm_pcm_channel_mixer_info,
  3617. .get = msm_pcm_channel_mixer_get,
  3618. .put = msm_pcm_channel_mixer_put,
  3619. .private_value = (unsigned long)&(mm30_channel_mux)
  3620. },
  3621. {
  3622. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3623. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3624. .name = "MultiMedia1 Output Channel1",
  3625. .info = msm_pcm_channel_weight_info,
  3626. .get = msm_pcm_channel_weight_get,
  3627. .put = msm_pcm_channel_weight_put,
  3628. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3629. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3630. },
  3631. {
  3632. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3633. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3634. .name = "MultiMedia1 Output Channel2",
  3635. .info = msm_pcm_channel_weight_info,
  3636. .get = msm_pcm_channel_weight_get,
  3637. .put = msm_pcm_channel_weight_put,
  3638. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3639. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3640. },
  3641. {
  3642. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3643. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3644. .name = "MultiMedia1 Output Channel3",
  3645. .info = msm_pcm_channel_weight_info,
  3646. .get = msm_pcm_channel_weight_get,
  3647. .put = msm_pcm_channel_weight_put,
  3648. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3649. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3650. },
  3651. {
  3652. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3653. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3654. .name = "MultiMedia1 Output Channel4",
  3655. .info = msm_pcm_channel_weight_info,
  3656. .get = msm_pcm_channel_weight_get,
  3657. .put = msm_pcm_channel_weight_put,
  3658. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3659. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3660. },
  3661. {
  3662. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3663. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3664. .name = "MultiMedia1 Output Channel5",
  3665. .info = msm_pcm_channel_weight_info,
  3666. .get = msm_pcm_channel_weight_get,
  3667. .put = msm_pcm_channel_weight_put,
  3668. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3669. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3670. },
  3671. {
  3672. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3673. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3674. .name = "MultiMedia1 Output Channel6",
  3675. .info = msm_pcm_channel_weight_info,
  3676. .get = msm_pcm_channel_weight_get,
  3677. .put = msm_pcm_channel_weight_put,
  3678. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3679. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3680. },
  3681. {
  3682. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3683. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3684. .name = "MultiMedia1 Output Channel7",
  3685. .info = msm_pcm_channel_weight_info,
  3686. .get = msm_pcm_channel_weight_get,
  3687. .put = msm_pcm_channel_weight_put,
  3688. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3689. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3690. },
  3691. {
  3692. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3693. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3694. .name = "MultiMedia1 Output Channel8",
  3695. .info = msm_pcm_channel_weight_info,
  3696. .get = msm_pcm_channel_weight_get,
  3697. .put = msm_pcm_channel_weight_put,
  3698. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3699. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3700. },
  3701. {
  3702. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3703. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3704. .name = "MultiMedia1 Output Channel9",
  3705. .info = msm_pcm_channel_weight_info,
  3706. .get = msm_pcm_channel_weight_get,
  3707. .put = msm_pcm_channel_weight_put,
  3708. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3709. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3710. },
  3711. {
  3712. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3713. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3714. .name = "MultiMedia1 Output Channel10",
  3715. .info = msm_pcm_channel_weight_info,
  3716. .get = msm_pcm_channel_weight_get,
  3717. .put = msm_pcm_channel_weight_put,
  3718. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3719. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3720. },
  3721. {
  3722. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3723. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3724. .name = "MultiMedia1 Output Channel11",
  3725. .info = msm_pcm_channel_weight_info,
  3726. .get = msm_pcm_channel_weight_get,
  3727. .put = msm_pcm_channel_weight_put,
  3728. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3729. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3730. },
  3731. {
  3732. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3733. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3734. .name = "MultiMedia1 Output Channel12",
  3735. .info = msm_pcm_channel_weight_info,
  3736. .get = msm_pcm_channel_weight_get,
  3737. .put = msm_pcm_channel_weight_put,
  3738. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3739. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3740. },
  3741. {
  3742. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3743. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3744. .name = "MultiMedia1 Output Channel13",
  3745. .info = msm_pcm_channel_weight_info,
  3746. .get = msm_pcm_channel_weight_get,
  3747. .put = msm_pcm_channel_weight_put,
  3748. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3749. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3750. },
  3751. {
  3752. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3753. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3754. .name = "MultiMedia1 Output Channel14",
  3755. .info = msm_pcm_channel_weight_info,
  3756. .get = msm_pcm_channel_weight_get,
  3757. .put = msm_pcm_channel_weight_put,
  3758. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3759. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3760. },
  3761. {
  3762. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3763. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3764. .name = "MultiMedia2 Output Channel1",
  3765. .info = msm_pcm_channel_weight_info,
  3766. .get = msm_pcm_channel_weight_get,
  3767. .put = msm_pcm_channel_weight_put,
  3768. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3769. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3770. },
  3771. {
  3772. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3773. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3774. .name = "MultiMedia2 Output Channel2",
  3775. .info = msm_pcm_channel_weight_info,
  3776. .get = msm_pcm_channel_weight_get,
  3777. .put = msm_pcm_channel_weight_put,
  3778. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3779. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3780. },
  3781. {
  3782. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3783. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3784. .name = "MultiMedia2 Output Channel3",
  3785. .info = msm_pcm_channel_weight_info,
  3786. .get = msm_pcm_channel_weight_get,
  3787. .put = msm_pcm_channel_weight_put,
  3788. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3789. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3790. },
  3791. {
  3792. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3793. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3794. .name = "MultiMedia3 Output Channel1",
  3795. .info = msm_pcm_channel_weight_info,
  3796. .get = msm_pcm_channel_weight_get,
  3797. .put = msm_pcm_channel_weight_put,
  3798. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3799. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3800. },
  3801. {
  3802. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3803. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3804. .name = "MultiMedia3 Output Channel2",
  3805. .info = msm_pcm_channel_weight_info,
  3806. .get = msm_pcm_channel_weight_get,
  3807. .put = msm_pcm_channel_weight_put,
  3808. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3809. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3810. },
  3811. {
  3812. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3813. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3814. .name = "MultiMedia18 Output Channel1",
  3815. .info = msm_pcm_channel_weight_info,
  3816. .get = msm_pcm_channel_weight_get,
  3817. .put = msm_pcm_channel_weight_put,
  3818. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3819. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3820. },
  3821. {
  3822. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3823. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3824. .name = "MultiMedia18 Output Channel2",
  3825. .info = msm_pcm_channel_weight_info,
  3826. .get = msm_pcm_channel_weight_get,
  3827. .put = msm_pcm_channel_weight_put,
  3828. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3829. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3830. },
  3831. {
  3832. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3833. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3834. .name = "MultiMedia18 Output Channel3",
  3835. .info = msm_pcm_channel_weight_info,
  3836. .get = msm_pcm_channel_weight_get,
  3837. .put = msm_pcm_channel_weight_put,
  3838. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3839. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3840. },
  3841. {
  3842. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3843. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3844. .name = "MultiMedia18 Output Channel4",
  3845. .info = msm_pcm_channel_weight_info,
  3846. .get = msm_pcm_channel_weight_get,
  3847. .put = msm_pcm_channel_weight_put,
  3848. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3849. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3850. },
  3851. {
  3852. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3853. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3854. .name = "MultiMedia18 Output Channel5",
  3855. .info = msm_pcm_channel_weight_info,
  3856. .get = msm_pcm_channel_weight_get,
  3857. .put = msm_pcm_channel_weight_put,
  3858. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3859. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3860. },
  3861. {
  3862. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3863. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3864. .name = "MultiMedia18 Output Channel6",
  3865. .info = msm_pcm_channel_weight_info,
  3866. .get = msm_pcm_channel_weight_get,
  3867. .put = msm_pcm_channel_weight_put,
  3868. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3869. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3870. },
  3871. {
  3872. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3873. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3874. .name = "MultiMedia18 Output Channel7",
  3875. .info = msm_pcm_channel_weight_info,
  3876. .get = msm_pcm_channel_weight_get,
  3877. .put = msm_pcm_channel_weight_put,
  3878. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3879. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3880. },
  3881. {
  3882. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3883. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3884. .name = "MultiMedia18 Output Channel8",
  3885. .info = msm_pcm_channel_weight_info,
  3886. .get = msm_pcm_channel_weight_get,
  3887. .put = msm_pcm_channel_weight_put,
  3888. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3889. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3890. },
  3891. {
  3892. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3893. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3894. .name = "MultiMedia18 Output Channel9",
  3895. .info = msm_pcm_channel_weight_info,
  3896. .get = msm_pcm_channel_weight_get,
  3897. .put = msm_pcm_channel_weight_put,
  3898. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3899. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3900. },
  3901. {
  3902. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3903. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3904. .name = "MultiMedia18 Output Channel10",
  3905. .info = msm_pcm_channel_weight_info,
  3906. .get = msm_pcm_channel_weight_get,
  3907. .put = msm_pcm_channel_weight_put,
  3908. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3909. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3910. },
  3911. {
  3912. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3913. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3914. .name = "MultiMedia18 Output Channel11",
  3915. .info = msm_pcm_channel_weight_info,
  3916. .get = msm_pcm_channel_weight_get,
  3917. .put = msm_pcm_channel_weight_put,
  3918. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3919. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3920. },
  3921. {
  3922. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3923. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3924. .name = "MultiMedia18 Output Channel12",
  3925. .info = msm_pcm_channel_weight_info,
  3926. .get = msm_pcm_channel_weight_get,
  3927. .put = msm_pcm_channel_weight_put,
  3928. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3929. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3930. },
  3931. {
  3932. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3933. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3934. .name = "MultiMedia18 Output Channel13",
  3935. .info = msm_pcm_channel_weight_info,
  3936. .get = msm_pcm_channel_weight_get,
  3937. .put = msm_pcm_channel_weight_put,
  3938. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3939. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3940. },
  3941. {
  3942. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3943. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3944. .name = "MultiMedia18 Output Channel14",
  3945. .info = msm_pcm_channel_weight_info,
  3946. .get = msm_pcm_channel_weight_get,
  3947. .put = msm_pcm_channel_weight_put,
  3948. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3949. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3950. },
  3951. {
  3952. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3953. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3954. .name = "MultiMedia19 Output Channel1",
  3955. .info = msm_pcm_channel_weight_info,
  3956. .get = msm_pcm_channel_weight_get,
  3957. .put = msm_pcm_channel_weight_put,
  3958. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3959. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3960. },
  3961. {
  3962. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3963. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3964. .name = "MultiMedia19 Output Channel2",
  3965. .info = msm_pcm_channel_weight_info,
  3966. .get = msm_pcm_channel_weight_get,
  3967. .put = msm_pcm_channel_weight_put,
  3968. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3969. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3970. },
  3971. {
  3972. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3973. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3974. .name = "MultiMedia19 Output Channel3",
  3975. .info = msm_pcm_channel_weight_info,
  3976. .get = msm_pcm_channel_weight_get,
  3977. .put = msm_pcm_channel_weight_put,
  3978. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3979. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3980. },
  3981. {
  3982. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3983. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3984. .name = "MultiMedia19 Output Channel4",
  3985. .info = msm_pcm_channel_weight_info,
  3986. .get = msm_pcm_channel_weight_get,
  3987. .put = msm_pcm_channel_weight_put,
  3988. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3989. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3990. },
  3991. {
  3992. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3993. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3994. .name = "MultiMedia19 Output Channel5",
  3995. .info = msm_pcm_channel_weight_info,
  3996. .get = msm_pcm_channel_weight_get,
  3997. .put = msm_pcm_channel_weight_put,
  3998. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3999. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  4000. },
  4001. {
  4002. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4003. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4004. .name = "MultiMedia19 Output Channel6",
  4005. .info = msm_pcm_channel_weight_info,
  4006. .get = msm_pcm_channel_weight_get,
  4007. .put = msm_pcm_channel_weight_put,
  4008. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4009. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  4010. },
  4011. {
  4012. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4013. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4014. .name = "MultiMedia19 Output Channel7",
  4015. .info = msm_pcm_channel_weight_info,
  4016. .get = msm_pcm_channel_weight_get,
  4017. .put = msm_pcm_channel_weight_put,
  4018. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4019. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  4020. },
  4021. {
  4022. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4023. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4024. .name = "MultiMedia19 Output Channel8",
  4025. .info = msm_pcm_channel_weight_info,
  4026. .get = msm_pcm_channel_weight_get,
  4027. .put = msm_pcm_channel_weight_put,
  4028. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4029. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  4030. },
  4031. {
  4032. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4033. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4034. .name = "MultiMedia19 Output Channel9",
  4035. .info = msm_pcm_channel_weight_info,
  4036. .get = msm_pcm_channel_weight_get,
  4037. .put = msm_pcm_channel_weight_put,
  4038. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4039. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  4040. },
  4041. {
  4042. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4044. .name = "MultiMedia19 Output Channel10",
  4045. .info = msm_pcm_channel_weight_info,
  4046. .get = msm_pcm_channel_weight_get,
  4047. .put = msm_pcm_channel_weight_put,
  4048. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4049. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4050. },
  4051. {
  4052. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4053. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4054. .name = "MultiMedia19 Output Channel11",
  4055. .info = msm_pcm_channel_weight_info,
  4056. .get = msm_pcm_channel_weight_get,
  4057. .put = msm_pcm_channel_weight_put,
  4058. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4059. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4060. },
  4061. {
  4062. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4063. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4064. .name = "MultiMedia19 Output Channel12",
  4065. .info = msm_pcm_channel_weight_info,
  4066. .get = msm_pcm_channel_weight_get,
  4067. .put = msm_pcm_channel_weight_put,
  4068. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4069. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4070. },
  4071. {
  4072. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4073. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4074. .name = "MultiMedia19 Output Channel13",
  4075. .info = msm_pcm_channel_weight_info,
  4076. .get = msm_pcm_channel_weight_get,
  4077. .put = msm_pcm_channel_weight_put,
  4078. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4079. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4080. },
  4081. {
  4082. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4083. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4084. .name = "MultiMedia19 Output Channel14",
  4085. .info = msm_pcm_channel_weight_info,
  4086. .get = msm_pcm_channel_weight_get,
  4087. .put = msm_pcm_channel_weight_put,
  4088. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4089. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4090. },
  4091. {
  4092. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4093. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4094. .name = "MultiMedia28 Output Channel1",
  4095. .info = msm_pcm_channel_weight_info,
  4096. .get = msm_pcm_channel_weight_get,
  4097. .put = msm_pcm_channel_weight_put,
  4098. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4099. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4100. },
  4101. {
  4102. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4103. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4104. .name = "MultiMedia28 Output Channel2",
  4105. .info = msm_pcm_channel_weight_info,
  4106. .get = msm_pcm_channel_weight_get,
  4107. .put = msm_pcm_channel_weight_put,
  4108. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4109. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4110. },
  4111. {
  4112. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4113. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4114. .name = "MultiMedia28 Output Channel3",
  4115. .info = msm_pcm_channel_weight_info,
  4116. .get = msm_pcm_channel_weight_get,
  4117. .put = msm_pcm_channel_weight_put,
  4118. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4119. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4120. },
  4121. {
  4122. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4123. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4124. .name = "MultiMedia28 Output Channel4",
  4125. .info = msm_pcm_channel_weight_info,
  4126. .get = msm_pcm_channel_weight_get,
  4127. .put = msm_pcm_channel_weight_put,
  4128. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4129. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4130. },
  4131. {
  4132. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4133. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4134. .name = "MultiMedia28 Output Channel5",
  4135. .info = msm_pcm_channel_weight_info,
  4136. .get = msm_pcm_channel_weight_get,
  4137. .put = msm_pcm_channel_weight_put,
  4138. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4139. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4140. },
  4141. {
  4142. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4143. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4144. .name = "MultiMedia28 Output Channel6",
  4145. .info = msm_pcm_channel_weight_info,
  4146. .get = msm_pcm_channel_weight_get,
  4147. .put = msm_pcm_channel_weight_put,
  4148. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4149. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4150. },
  4151. {
  4152. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4153. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4154. .name = "MultiMedia28 Output Channel7",
  4155. .info = msm_pcm_channel_weight_info,
  4156. .get = msm_pcm_channel_weight_get,
  4157. .put = msm_pcm_channel_weight_put,
  4158. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4159. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4160. },
  4161. {
  4162. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4163. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4164. .name = "MultiMedia28 Output Channel8",
  4165. .info = msm_pcm_channel_weight_info,
  4166. .get = msm_pcm_channel_weight_get,
  4167. .put = msm_pcm_channel_weight_put,
  4168. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4169. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4170. },
  4171. {
  4172. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4173. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4174. .name = "MultiMedia28 Output Channel9",
  4175. .info = msm_pcm_channel_weight_info,
  4176. .get = msm_pcm_channel_weight_get,
  4177. .put = msm_pcm_channel_weight_put,
  4178. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4179. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4180. },
  4181. {
  4182. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4183. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4184. .name = "MultiMedia28 Output Channel10",
  4185. .info = msm_pcm_channel_weight_info,
  4186. .get = msm_pcm_channel_weight_get,
  4187. .put = msm_pcm_channel_weight_put,
  4188. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4189. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4190. },
  4191. {
  4192. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4193. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4194. .name = "MultiMedia28 Output Channel11",
  4195. .info = msm_pcm_channel_weight_info,
  4196. .get = msm_pcm_channel_weight_get,
  4197. .put = msm_pcm_channel_weight_put,
  4198. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4199. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4200. },
  4201. {
  4202. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4203. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4204. .name = "MultiMedia28 Output Channel12",
  4205. .info = msm_pcm_channel_weight_info,
  4206. .get = msm_pcm_channel_weight_get,
  4207. .put = msm_pcm_channel_weight_put,
  4208. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4209. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4210. },
  4211. {
  4212. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4213. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4214. .name = "MultiMedia28 Output Channel13",
  4215. .info = msm_pcm_channel_weight_info,
  4216. .get = msm_pcm_channel_weight_get,
  4217. .put = msm_pcm_channel_weight_put,
  4218. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4219. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4220. },
  4221. {
  4222. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4223. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4224. .name = "MultiMedia28 Output Channel14",
  4225. .info = msm_pcm_channel_weight_info,
  4226. .get = msm_pcm_channel_weight_get,
  4227. .put = msm_pcm_channel_weight_put,
  4228. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4229. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4230. },
  4231. {
  4232. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4233. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4234. .name = "MultiMedia29 Output Channel1",
  4235. .info = msm_pcm_channel_weight_info,
  4236. .get = msm_pcm_channel_weight_get,
  4237. .put = msm_pcm_channel_weight_put,
  4238. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4239. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4240. },
  4241. {
  4242. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4243. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4244. .name = "MultiMedia29 Output Channel2",
  4245. .info = msm_pcm_channel_weight_info,
  4246. .get = msm_pcm_channel_weight_get,
  4247. .put = msm_pcm_channel_weight_put,
  4248. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4249. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4250. },
  4251. {
  4252. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4253. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4254. .name = "MultiMedia29 Output Channel3",
  4255. .info = msm_pcm_channel_weight_info,
  4256. .get = msm_pcm_channel_weight_get,
  4257. .put = msm_pcm_channel_weight_put,
  4258. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4259. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4260. },
  4261. {
  4262. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4263. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4264. .name = "MultiMedia29 Output Channel4",
  4265. .info = msm_pcm_channel_weight_info,
  4266. .get = msm_pcm_channel_weight_get,
  4267. .put = msm_pcm_channel_weight_put,
  4268. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4269. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4270. },
  4271. {
  4272. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4273. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4274. .name = "MultiMedia29 Output Channel5",
  4275. .info = msm_pcm_channel_weight_info,
  4276. .get = msm_pcm_channel_weight_get,
  4277. .put = msm_pcm_channel_weight_put,
  4278. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4279. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4280. },
  4281. {
  4282. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4283. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4284. .name = "MultiMedia29 Output Channel6",
  4285. .info = msm_pcm_channel_weight_info,
  4286. .get = msm_pcm_channel_weight_get,
  4287. .put = msm_pcm_channel_weight_put,
  4288. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4289. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4290. },
  4291. {
  4292. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4293. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4294. .name = "MultiMedia29 Output Channel7",
  4295. .info = msm_pcm_channel_weight_info,
  4296. .get = msm_pcm_channel_weight_get,
  4297. .put = msm_pcm_channel_weight_put,
  4298. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4299. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4300. },
  4301. {
  4302. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4303. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4304. .name = "MultiMedia29 Output Channel8",
  4305. .info = msm_pcm_channel_weight_info,
  4306. .get = msm_pcm_channel_weight_get,
  4307. .put = msm_pcm_channel_weight_put,
  4308. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4309. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4310. },
  4311. {
  4312. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4313. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4314. .name = "MultiMedia29 Output Channel9",
  4315. .info = msm_pcm_channel_weight_info,
  4316. .get = msm_pcm_channel_weight_get,
  4317. .put = msm_pcm_channel_weight_put,
  4318. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4319. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4320. },
  4321. {
  4322. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4323. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4324. .name = "MultiMedia29 Output Channel10",
  4325. .info = msm_pcm_channel_weight_info,
  4326. .get = msm_pcm_channel_weight_get,
  4327. .put = msm_pcm_channel_weight_put,
  4328. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4329. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4330. },
  4331. {
  4332. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4333. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4334. .name = "MultiMedia29 Output Channel11",
  4335. .info = msm_pcm_channel_weight_info,
  4336. .get = msm_pcm_channel_weight_get,
  4337. .put = msm_pcm_channel_weight_put,
  4338. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4339. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4340. },
  4341. {
  4342. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4343. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4344. .name = "MultiMedia29 Output Channel12",
  4345. .info = msm_pcm_channel_weight_info,
  4346. .get = msm_pcm_channel_weight_get,
  4347. .put = msm_pcm_channel_weight_put,
  4348. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4349. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4350. },
  4351. {
  4352. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4353. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4354. .name = "MultiMedia29 Output Channel13",
  4355. .info = msm_pcm_channel_weight_info,
  4356. .get = msm_pcm_channel_weight_get,
  4357. .put = msm_pcm_channel_weight_put,
  4358. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4359. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4360. },
  4361. {
  4362. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4363. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4364. .name = "MultiMedia29 Output Channel14",
  4365. .info = msm_pcm_channel_weight_info,
  4366. .get = msm_pcm_channel_weight_get,
  4367. .put = msm_pcm_channel_weight_put,
  4368. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4369. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4370. },
  4371. {
  4372. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4373. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4374. .name = "MultiMedia30 Output Channel1",
  4375. .info = msm_pcm_channel_weight_info,
  4376. .get = msm_pcm_channel_weight_get,
  4377. .put = msm_pcm_channel_weight_put,
  4378. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4379. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4380. },
  4381. {
  4382. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4383. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4384. .name = "MultiMedia30 Output Channel2",
  4385. .info = msm_pcm_channel_weight_info,
  4386. .get = msm_pcm_channel_weight_get,
  4387. .put = msm_pcm_channel_weight_put,
  4388. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4389. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4390. },
  4391. {
  4392. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4393. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4394. .name = "MultiMedia30 Output Channel3",
  4395. .info = msm_pcm_channel_weight_info,
  4396. .get = msm_pcm_channel_weight_get,
  4397. .put = msm_pcm_channel_weight_put,
  4398. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4399. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4400. },
  4401. {
  4402. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4403. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4404. .name = "MultiMedia30 Output Channel4",
  4405. .info = msm_pcm_channel_weight_info,
  4406. .get = msm_pcm_channel_weight_get,
  4407. .put = msm_pcm_channel_weight_put,
  4408. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4409. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4410. },
  4411. {
  4412. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4413. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4414. .name = "MultiMedia30 Output Channel5",
  4415. .info = msm_pcm_channel_weight_info,
  4416. .get = msm_pcm_channel_weight_get,
  4417. .put = msm_pcm_channel_weight_put,
  4418. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4419. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4420. },
  4421. {
  4422. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4423. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4424. .name = "MultiMedia30 Output Channel6",
  4425. .info = msm_pcm_channel_weight_info,
  4426. .get = msm_pcm_channel_weight_get,
  4427. .put = msm_pcm_channel_weight_put,
  4428. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4429. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4430. },
  4431. {
  4432. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4433. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4434. .name = "MultiMedia30 Output Channel7",
  4435. .info = msm_pcm_channel_weight_info,
  4436. .get = msm_pcm_channel_weight_get,
  4437. .put = msm_pcm_channel_weight_put,
  4438. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4439. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4440. },
  4441. {
  4442. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4443. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4444. .name = "MultiMedia30 Output Channel8",
  4445. .info = msm_pcm_channel_weight_info,
  4446. .get = msm_pcm_channel_weight_get,
  4447. .put = msm_pcm_channel_weight_put,
  4448. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4449. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4450. },
  4451. {
  4452. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4453. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4454. .name = "MultiMedia30 Output Channel9",
  4455. .info = msm_pcm_channel_weight_info,
  4456. .get = msm_pcm_channel_weight_get,
  4457. .put = msm_pcm_channel_weight_put,
  4458. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4459. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4460. },
  4461. {
  4462. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4463. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4464. .name = "MultiMedia30 Output Channel10",
  4465. .info = msm_pcm_channel_weight_info,
  4466. .get = msm_pcm_channel_weight_get,
  4467. .put = msm_pcm_channel_weight_put,
  4468. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4469. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4470. },
  4471. {
  4472. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4473. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4474. .name = "MultiMedia30 Output Channel11",
  4475. .info = msm_pcm_channel_weight_info,
  4476. .get = msm_pcm_channel_weight_get,
  4477. .put = msm_pcm_channel_weight_put,
  4478. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4479. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4480. },
  4481. {
  4482. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4483. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4484. .name = "MultiMedia30 Output Channel12",
  4485. .info = msm_pcm_channel_weight_info,
  4486. .get = msm_pcm_channel_weight_get,
  4487. .put = msm_pcm_channel_weight_put,
  4488. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4489. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4490. },
  4491. {
  4492. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4493. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4494. .name = "MultiMedia30 Output Channel13",
  4495. .info = msm_pcm_channel_weight_info,
  4496. .get = msm_pcm_channel_weight_get,
  4497. .put = msm_pcm_channel_weight_put,
  4498. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4499. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4500. },
  4501. {
  4502. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4503. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4504. .name = "MultiMedia30 Output Channel14",
  4505. .info = msm_pcm_channel_weight_info,
  4506. .get = msm_pcm_channel_weight_get,
  4507. .put = msm_pcm_channel_weight_put,
  4508. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4509. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4510. },
  4511. {
  4512. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4513. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4514. .name = "MultiMedia1 Channel1",
  4515. .info = msm_pcm_channel_input_be_info,
  4516. .get = msm_pcm_channel_input_be_get,
  4517. .put = msm_pcm_channel_input_be_put,
  4518. .private_value = (unsigned long)&(mm1_ch1_enum)
  4519. },
  4520. {
  4521. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4522. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4523. .name = "MultiMedia1 Channel2",
  4524. .info = msm_pcm_channel_input_be_info,
  4525. .get = msm_pcm_channel_input_be_get,
  4526. .put = msm_pcm_channel_input_be_put,
  4527. .private_value = (unsigned long)&(mm1_ch2_enum)
  4528. },
  4529. {
  4530. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4531. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4532. .name = "MultiMedia1 Channel3",
  4533. .info = msm_pcm_channel_input_be_info,
  4534. .get = msm_pcm_channel_input_be_get,
  4535. .put = msm_pcm_channel_input_be_put,
  4536. .private_value = (unsigned long)&(mm1_ch3_enum)
  4537. },
  4538. {
  4539. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4540. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4541. .name = "MultiMedia1 Channel4",
  4542. .info = msm_pcm_channel_input_be_info,
  4543. .get = msm_pcm_channel_input_be_get,
  4544. .put = msm_pcm_channel_input_be_put,
  4545. .private_value = (unsigned long)&(mm1_ch4_enum)
  4546. },
  4547. {
  4548. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4549. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4550. .name = "MultiMedia1 Channel5",
  4551. .info = msm_pcm_channel_input_be_info,
  4552. .get = msm_pcm_channel_input_be_get,
  4553. .put = msm_pcm_channel_input_be_put,
  4554. .private_value = (unsigned long)&(mm1_ch5_enum)
  4555. },
  4556. {
  4557. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4558. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4559. .name = "MultiMedia1 Channel6",
  4560. .info = msm_pcm_channel_input_be_info,
  4561. .get = msm_pcm_channel_input_be_get,
  4562. .put = msm_pcm_channel_input_be_put,
  4563. .private_value = (unsigned long)&(mm1_ch6_enum)
  4564. },
  4565. {
  4566. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4567. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4568. .name = "MultiMedia1 Channel7",
  4569. .info = msm_pcm_channel_input_be_info,
  4570. .get = msm_pcm_channel_input_be_get,
  4571. .put = msm_pcm_channel_input_be_put,
  4572. .private_value = (unsigned long)&(mm1_ch7_enum)
  4573. },
  4574. {
  4575. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4576. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4577. .name = "MultiMedia1 Channel8",
  4578. .info = msm_pcm_channel_input_be_info,
  4579. .get = msm_pcm_channel_input_be_get,
  4580. .put = msm_pcm_channel_input_be_put,
  4581. .private_value = (unsigned long)&(mm1_ch8_enum)
  4582. },
  4583. {
  4584. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4585. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4586. .name = "MultiMedia18 Channel1",
  4587. .info = msm_pcm_channel_input_be_info,
  4588. .get = msm_pcm_channel_input_be_get,
  4589. .put = msm_pcm_channel_input_be_put,
  4590. .private_value = (unsigned long)&(mm18_ch1_enum)
  4591. },
  4592. {
  4593. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4594. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4595. .name = "MultiMedia18 Channel2",
  4596. .info = msm_pcm_channel_input_be_info,
  4597. .get = msm_pcm_channel_input_be_get,
  4598. .put = msm_pcm_channel_input_be_put,
  4599. .private_value = (unsigned long)&(mm18_ch2_enum)
  4600. },
  4601. {
  4602. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4603. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4604. .name = "MultiMedia19 Channel1",
  4605. .info = msm_pcm_channel_input_be_info,
  4606. .get = msm_pcm_channel_input_be_get,
  4607. .put = msm_pcm_channel_input_be_put,
  4608. .private_value = (unsigned long)&(mm19_ch1_enum)
  4609. },
  4610. {
  4611. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4612. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4613. .name = "MultiMedia19 Channel2",
  4614. .info = msm_pcm_channel_input_be_info,
  4615. .get = msm_pcm_channel_input_be_get,
  4616. .put = msm_pcm_channel_input_be_put,
  4617. .private_value = (unsigned long)&(mm19_ch2_enum)
  4618. },
  4619. {
  4620. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4621. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4622. .name = "MultiMedia28 Channel1",
  4623. .info = msm_pcm_channel_input_be_info,
  4624. .get = msm_pcm_channel_input_be_get,
  4625. .put = msm_pcm_channel_input_be_put,
  4626. .private_value = (unsigned long)&(mm28_ch1_enum)
  4627. },
  4628. {
  4629. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4630. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4631. .name = "MultiMedia28 Channel2",
  4632. .info = msm_pcm_channel_input_be_info,
  4633. .get = msm_pcm_channel_input_be_get,
  4634. .put = msm_pcm_channel_input_be_put,
  4635. .private_value = (unsigned long)&(mm28_ch2_enum)
  4636. },
  4637. {
  4638. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4639. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4640. .name = "MultiMedia29 Channel1",
  4641. .info = msm_pcm_channel_input_be_info,
  4642. .get = msm_pcm_channel_input_be_get,
  4643. .put = msm_pcm_channel_input_be_put,
  4644. .private_value = (unsigned long)&(mm29_ch1_enum)
  4645. },
  4646. {
  4647. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4648. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4649. .name = "MultiMedia29 Channel2",
  4650. .info = msm_pcm_channel_input_be_info,
  4651. .get = msm_pcm_channel_input_be_get,
  4652. .put = msm_pcm_channel_input_be_put,
  4653. .private_value = (unsigned long)&(mm29_ch2_enum)
  4654. },
  4655. {
  4656. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4657. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4658. .name = "MultiMedia30 Channel1",
  4659. .info = msm_pcm_channel_input_be_info,
  4660. .get = msm_pcm_channel_input_be_get,
  4661. .put = msm_pcm_channel_input_be_put,
  4662. .private_value = (unsigned long)&(mm30_ch1_enum)
  4663. },
  4664. {
  4665. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4666. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4667. .name = "MultiMedia30 Channel2",
  4668. .info = msm_pcm_channel_input_be_info,
  4669. .get = msm_pcm_channel_input_be_get,
  4670. .put = msm_pcm_channel_input_be_put,
  4671. .private_value = (unsigned long)&(mm30_ch2_enum)
  4672. },
  4673. {
  4674. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4675. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4676. .name = "MultiMedia1 Output Channel Map",
  4677. .info = msm_pcm_channel_output_map_info,
  4678. .get = msm_pcm_channel_output_map_get,
  4679. .put = msm_pcm_channel_output_map_put,
  4680. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4681. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4682. },
  4683. {
  4684. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4685. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4686. .name = "MultiMedia2 Output Channel Map",
  4687. .info = msm_pcm_channel_output_map_info,
  4688. .get = msm_pcm_channel_output_map_get,
  4689. .put = msm_pcm_channel_output_map_put,
  4690. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4691. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4692. },
  4693. {
  4694. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4695. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4696. .name = "MultiMedia3 Output Channel Map",
  4697. .info = msm_pcm_channel_output_map_info,
  4698. .get = msm_pcm_channel_output_map_get,
  4699. .put = msm_pcm_channel_output_map_put,
  4700. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4701. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4702. },
  4703. {
  4704. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4705. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4706. .name = "MultiMedia4 Output Channel Map",
  4707. .info = msm_pcm_channel_output_map_info,
  4708. .get = msm_pcm_channel_output_map_get,
  4709. .put = msm_pcm_channel_output_map_put,
  4710. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4711. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4712. },
  4713. {
  4714. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4715. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4716. .name = "MultiMedia5 Output Channel Map",
  4717. .info = msm_pcm_channel_output_map_info,
  4718. .get = msm_pcm_channel_output_map_get,
  4719. .put = msm_pcm_channel_output_map_put,
  4720. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4721. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4722. },
  4723. {
  4724. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4725. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4726. .name = "MultiMedia6 Output Channel Map",
  4727. .info = msm_pcm_channel_output_map_info,
  4728. .get = msm_pcm_channel_output_map_get,
  4729. .put = msm_pcm_channel_output_map_put,
  4730. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4731. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4732. },
  4733. {
  4734. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4735. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4736. .name = "MultiMedia18 Output Channel Map",
  4737. .info = msm_pcm_channel_output_map_info,
  4738. .get = msm_pcm_channel_output_map_get,
  4739. .put = msm_pcm_channel_output_map_put,
  4740. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4741. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4742. },
  4743. {
  4744. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4745. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4746. .name = "MultiMedia19 Output Channel Map",
  4747. .info = msm_pcm_channel_output_map_info,
  4748. .get = msm_pcm_channel_output_map_get,
  4749. .put = msm_pcm_channel_output_map_put,
  4750. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4751. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4752. },
  4753. {
  4754. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4755. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4756. .name = "MultiMedia28 Output Channel Map",
  4757. .info = msm_pcm_channel_output_map_info,
  4758. .get = msm_pcm_channel_output_map_get,
  4759. .put = msm_pcm_channel_output_map_put,
  4760. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4761. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4762. },
  4763. {
  4764. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4765. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4766. .name = "MultiMedia29 Output Channel Map",
  4767. .info = msm_pcm_channel_output_map_info,
  4768. .get = msm_pcm_channel_output_map_get,
  4769. .put = msm_pcm_channel_output_map_put,
  4770. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4771. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4772. },
  4773. {
  4774. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4775. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4776. .name = "MultiMedia30 Output Channel Map",
  4777. .info = msm_pcm_channel_output_map_info,
  4778. .get = msm_pcm_channel_output_map_get,
  4779. .put = msm_pcm_channel_output_map_put,
  4780. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4781. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4782. },
  4783. };
  4784. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4785. struct snd_ctl_elem_value *ucontrol)
  4786. {
  4787. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4788. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4789. ucontrol->value.integer.value[0]);
  4790. return 0;
  4791. }
  4792. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4793. struct snd_ctl_elem_value *ucontrol)
  4794. {
  4795. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4796. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4797. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4798. return 0;
  4799. }
  4800. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4801. struct snd_ctl_elem_value *ucontrol)
  4802. {
  4803. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4804. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4805. ucontrol->value.integer.value[0]);
  4806. return 0;
  4807. }
  4808. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4809. struct snd_ctl_elem_value *ucontrol)
  4810. {
  4811. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4812. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4813. __func__, msm_ec_ref_ch_downmixed);
  4814. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4815. return 0;
  4816. }
  4817. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4818. struct snd_ctl_elem_value *ucontrol)
  4819. {
  4820. int i = 0, ret = 0;
  4821. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4822. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4823. kcontrol->private_value)->shift;
  4824. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4825. weights[i] = ucontrol->value.integer.value[i];
  4826. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4827. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4828. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4829. return ret;
  4830. }
  4831. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4832. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4833. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4834. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4835. struct snd_ctl_elem_value *ucontrol)
  4836. {
  4837. switch (msm_ec_ref_bit_format) {
  4838. case SNDRV_PCM_FORMAT_S24_LE:
  4839. ucontrol->value.integer.value[0] = 2;
  4840. break;
  4841. case SNDRV_PCM_FORMAT_S16_LE:
  4842. ucontrol->value.integer.value[0] = 1;
  4843. break;
  4844. default:
  4845. ucontrol->value.integer.value[0] = 0;
  4846. break;
  4847. }
  4848. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4849. __func__, ucontrol->value.integer.value[0]);
  4850. return 0;
  4851. }
  4852. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4853. struct snd_ctl_elem_value *ucontrol)
  4854. {
  4855. u16 bit_width = 0;
  4856. switch (ucontrol->value.integer.value[0]) {
  4857. case 2:
  4858. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4859. break;
  4860. case 1:
  4861. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4862. break;
  4863. default:
  4864. msm_ec_ref_bit_format = 0;
  4865. break;
  4866. }
  4867. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4868. bit_width = 16;
  4869. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4870. bit_width = 24;
  4871. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4872. __func__, msm_ec_ref_bit_format);
  4873. adm_ec_ref_rx_bit_width(bit_width);
  4874. return 0;
  4875. }
  4876. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4877. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4878. struct snd_ctl_elem_value *ucontrol)
  4879. {
  4880. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4881. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4882. __func__, ucontrol->value.integer.value[0]);
  4883. return 0;
  4884. }
  4885. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4886. struct snd_ctl_elem_value *ucontrol)
  4887. {
  4888. switch (ucontrol->value.integer.value[0]) {
  4889. case 0:
  4890. msm_ec_ref_sampling_rate = 0;
  4891. break;
  4892. case 1:
  4893. msm_ec_ref_sampling_rate = 8000;
  4894. break;
  4895. case 2:
  4896. msm_ec_ref_sampling_rate = 16000;
  4897. break;
  4898. case 3:
  4899. msm_ec_ref_sampling_rate = 32000;
  4900. break;
  4901. case 4:
  4902. msm_ec_ref_sampling_rate = 44100;
  4903. break;
  4904. case 5:
  4905. msm_ec_ref_sampling_rate = 48000;
  4906. break;
  4907. case 6:
  4908. msm_ec_ref_sampling_rate = 96000;
  4909. break;
  4910. case 7:
  4911. msm_ec_ref_sampling_rate = 192000;
  4912. break;
  4913. case 8:
  4914. msm_ec_ref_sampling_rate = 384000;
  4915. break;
  4916. default:
  4917. msm_ec_ref_sampling_rate = 48000;
  4918. break;
  4919. }
  4920. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4921. __func__, msm_ec_ref_sampling_rate);
  4922. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4923. return 0;
  4924. }
  4925. static int get_ec_ref_port_id(int value, int *index)
  4926. {
  4927. int port_id;
  4928. switch (value) {
  4929. case 0:
  4930. *index = 0;
  4931. port_id = AFE_PORT_INVALID;
  4932. break;
  4933. case 1:
  4934. *index = 1;
  4935. port_id = SLIMBUS_0_RX;
  4936. break;
  4937. case 2:
  4938. *index = 2;
  4939. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4940. break;
  4941. case 3:
  4942. *index = 3;
  4943. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4944. break;
  4945. case 4:
  4946. *index = 4;
  4947. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4948. break;
  4949. case 5:
  4950. *index = 5;
  4951. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4952. break;
  4953. case 6:
  4954. *index = 6;
  4955. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4956. break;
  4957. case 7:
  4958. *index = 7;
  4959. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4960. break;
  4961. case 9:
  4962. *index = 9;
  4963. port_id = SLIMBUS_5_RX;
  4964. break;
  4965. case 10:
  4966. *index = 10;
  4967. port_id = SLIMBUS_1_TX;
  4968. break;
  4969. case 11:
  4970. *index = 11;
  4971. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4972. break;
  4973. case 12:
  4974. *index = 12;
  4975. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4976. break;
  4977. case 13:
  4978. *index = 13;
  4979. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4980. break;
  4981. case 14:
  4982. *index = 14;
  4983. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4984. break;
  4985. case 15:
  4986. *index = 15;
  4987. port_id = SLIMBUS_6_RX;
  4988. break;
  4989. case 16:
  4990. *index = 16;
  4991. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4992. break;
  4993. case 17:
  4994. *index = 17;
  4995. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4996. break;
  4997. case 18:
  4998. *index = 18;
  4999. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  5000. break;
  5001. case 19:
  5002. *index = 19;
  5003. port_id = AFE_PORT_ID_USB_RX;
  5004. break;
  5005. case 20:
  5006. *index = 20;
  5007. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  5008. break;
  5009. case 21:
  5010. *index = 21;
  5011. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  5012. break;
  5013. case 22:
  5014. *index = 22;
  5015. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  5016. break;
  5017. case 23:
  5018. *index = 23;
  5019. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5020. break;
  5021. case 24:
  5022. *index = 24;
  5023. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  5024. break;
  5025. case 25:
  5026. *index = 25;
  5027. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  5028. break;
  5029. case 26:
  5030. *index = 26;
  5031. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  5032. break;
  5033. case 27:
  5034. *index = 27;
  5035. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  5036. break;
  5037. case 28:
  5038. *index = 28;
  5039. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  5040. break;
  5041. case 29:
  5042. *index = 29;
  5043. port_id = SLIMBUS_7_RX;
  5044. break;
  5045. case 30:
  5046. *index = 30;
  5047. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5048. break;
  5049. case 31:
  5050. *index = 31;
  5051. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5052. break;
  5053. case 32:
  5054. *index = 32;
  5055. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5056. break;
  5057. case 33:
  5058. *index = 33;
  5059. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5060. break;
  5061. case 34:
  5062. *index = 34;
  5063. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5064. break;
  5065. case 35:
  5066. *index = 35;
  5067. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5068. break;
  5069. case 36:
  5070. *index = 36;
  5071. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5072. break;
  5073. case 37:
  5074. *index = 37;
  5075. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5076. break;
  5077. case 38:
  5078. *index = 38;
  5079. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5080. break;
  5081. case 39:
  5082. *index = 39;
  5083. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  5084. break;
  5085. case 40:
  5086. *index = 40;
  5087. port_id = AFE_PORT_ID_SENARY_MI2S_TX;
  5088. break;
  5089. default:
  5090. *index = 0; /* NONE */
  5091. pr_err("%s: Invalid value %d\n", __func__, value);
  5092. port_id = AFE_PORT_INVALID;
  5093. break;
  5094. }
  5095. return port_id;
  5096. }
  5097. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5098. struct snd_ctl_elem_value *ucontrol)
  5099. {
  5100. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5101. mutex_lock(&routing_lock);
  5102. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5103. mutex_unlock(&routing_lock);
  5104. return 0;
  5105. }
  5106. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5107. struct snd_ctl_elem_value *ucontrol)
  5108. {
  5109. int value = ucontrol->value.integer.value[0];
  5110. mutex_lock(&routing_lock);
  5111. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5112. &afe_loopback_tx_port_index);
  5113. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5114. __func__, afe_loopback_tx_port_index);
  5115. mutex_unlock(&routing_lock);
  5116. return 0;
  5117. }
  5118. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5119. "32000", "44100", "48000", "96000", "192000", "384000"};
  5120. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5121. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5122. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5123. ec_ref_bit_format_text),
  5124. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5125. };
  5126. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5127. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5128. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5129. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5130. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5131. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5132. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5133. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5134. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5135. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5136. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5137. "DISPLAY_PORT1", "SEN_MI2S_RX", "QUIN_TDM_TX_0", "SENARY_MI2S_TX",
  5138. };
  5139. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5140. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5141. };
  5142. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5143. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5144. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5145. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5146. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5147. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5148. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5149. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5150. msm_route_ec_ref_params_enum[0],
  5151. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5152. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5153. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5154. msm_ec_ref_chmixer_weights_put),
  5155. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5156. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5157. msm_ec_ref_chmixer_weights_put),
  5158. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5159. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5160. msm_ec_ref_chmixer_weights_put),
  5161. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5162. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5163. msm_ec_ref_chmixer_weights_put),
  5164. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5165. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5166. msm_ec_ref_chmixer_weights_put),
  5167. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5168. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5169. msm_ec_ref_chmixer_weights_put),
  5170. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch7", SND_SOC_NOPM,
  5171. 6, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5172. msm_ec_ref_chmixer_weights_put),
  5173. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch8", SND_SOC_NOPM,
  5174. 7, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5175. msm_ec_ref_chmixer_weights_put),
  5176. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5177. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5178. };
  5179. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5180. struct snd_ctl_elem_value *ucontrol)
  5181. {
  5182. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5183. mutex_lock(&routing_lock);
  5184. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5185. mutex_unlock(&routing_lock);
  5186. return 0;
  5187. }
  5188. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5189. struct snd_ctl_elem_value *ucontrol)
  5190. {
  5191. int value = ucontrol->value.integer.value[0];
  5192. struct snd_soc_dapm_widget *widget =
  5193. snd_soc_dapm_kcontrol_widget(kcontrol);
  5194. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5195. struct snd_soc_dapm_update *update = NULL;
  5196. mutex_lock(&routing_lock);
  5197. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5198. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5199. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5200. __func__, msm_route_ec_ref_rx);
  5201. mutex_unlock(&routing_lock);
  5202. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5203. msm_route_ec_ref_rx, e, update);
  5204. return 0;
  5205. }
  5206. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5207. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5208. msm_route_ec_ref_rx_enum[0],
  5209. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5210. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5211. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5212. msm_route_ec_ref_rx_enum[0],
  5213. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5214. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5215. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5216. msm_route_ec_ref_rx_enum[0],
  5217. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5218. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5219. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5220. msm_route_ec_ref_rx_enum[0],
  5221. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5222. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5223. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5224. msm_route_ec_ref_rx_enum[0],
  5225. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5226. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5227. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5228. msm_route_ec_ref_rx_enum[0],
  5229. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5230. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5231. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5232. msm_route_ec_ref_rx_enum[0],
  5233. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5234. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5235. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5236. msm_route_ec_ref_rx_enum[0],
  5237. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5238. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5239. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5240. msm_route_ec_ref_rx_enum[0],
  5241. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5242. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5243. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5244. msm_route_ec_ref_rx_enum[0],
  5245. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5246. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5247. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5248. msm_route_ec_ref_rx_enum[0],
  5249. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5250. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5251. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5252. msm_route_ec_ref_rx_enum[0],
  5253. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5254. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5255. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5256. msm_route_ec_ref_rx_enum[0],
  5257. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5258. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5259. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5260. msm_route_ec_ref_rx_enum[0],
  5261. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5262. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5263. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5264. msm_route_ec_ref_rx_enum[0],
  5265. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5266. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5267. struct snd_ctl_elem_value *ucontrol)
  5268. {
  5269. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5270. mutex_lock(&routing_lock);
  5271. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5272. mutex_unlock(&routing_lock);
  5273. return 0;
  5274. }
  5275. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5276. struct snd_ctl_elem_value *ucontrol)
  5277. {
  5278. struct snd_soc_dapm_widget *widget =
  5279. snd_soc_dapm_kcontrol_widget(kcontrol);
  5280. int mux = ucontrol->value.enumerated.item[0];
  5281. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5282. int ret = 1;
  5283. bool state = true;
  5284. uint16_t ext_ec_ref_port_id;
  5285. struct snd_soc_dapm_update *update = NULL;
  5286. if (mux >= e->items) {
  5287. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5288. return -EINVAL;
  5289. }
  5290. mutex_lock(&routing_lock);
  5291. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5292. switch (msm_route_ext_ec_ref) {
  5293. case EXT_EC_REF_PRI_MI2S_TX:
  5294. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5295. break;
  5296. case EXT_EC_REF_SEC_MI2S_TX:
  5297. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5298. break;
  5299. case EXT_EC_REF_TERT_MI2S_TX:
  5300. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5301. break;
  5302. case EXT_EC_REF_QUAT_MI2S_TX:
  5303. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5304. break;
  5305. case EXT_EC_REF_QUIN_MI2S_TX:
  5306. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5307. break;
  5308. case EXT_EC_REF_SLIM_1_TX:
  5309. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5310. break;
  5311. case EXT_EC_REF_PRI_TDM_TX:
  5312. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5313. break;
  5314. case EXT_EC_REF_SEC_TDM_TX:
  5315. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5316. break;
  5317. case EXT_EC_REF_NONE:
  5318. default:
  5319. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5320. state = false;
  5321. break;
  5322. }
  5323. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5324. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5325. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5326. mutex_unlock(&routing_lock);
  5327. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5328. update);
  5329. } else {
  5330. ret = -EINVAL;
  5331. mutex_unlock(&routing_lock);
  5332. }
  5333. return ret;
  5334. }
  5335. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5336. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5337. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5338. "SLIM_1_TX", "PRI_TDM_TX",
  5339. "SEC_TDM_TX", "SENARY_MI2S_TX"};
  5340. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5341. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5342. };
  5343. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5344. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5345. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5346. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5347. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5348. MSM_BACKEND_DAI_PRI_I2S_RX,
  5349. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5350. msm_routing_put_audio_mixer),
  5351. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5352. MSM_BACKEND_DAI_PRI_I2S_RX,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5356. MSM_BACKEND_DAI_PRI_I2S_RX,
  5357. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5358. msm_routing_put_audio_mixer),
  5359. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5360. MSM_BACKEND_DAI_PRI_I2S_RX,
  5361. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5362. msm_routing_put_audio_mixer),
  5363. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5364. MSM_BACKEND_DAI_PRI_I2S_RX,
  5365. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5366. msm_routing_put_audio_mixer),
  5367. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5368. MSM_BACKEND_DAI_PRI_I2S_RX,
  5369. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5370. msm_routing_put_audio_mixer),
  5371. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5372. MSM_BACKEND_DAI_PRI_I2S_RX,
  5373. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5374. msm_routing_put_audio_mixer),
  5375. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5376. MSM_BACKEND_DAI_PRI_I2S_RX,
  5377. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5378. msm_routing_put_audio_mixer),
  5379. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5380. MSM_BACKEND_DAI_PRI_I2S_RX,
  5381. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5382. msm_routing_put_audio_mixer),
  5383. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5384. MSM_BACKEND_DAI_PRI_I2S_RX,
  5385. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5386. msm_routing_put_audio_mixer),
  5387. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5388. MSM_BACKEND_DAI_PRI_I2S_RX,
  5389. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5390. msm_routing_put_audio_mixer),
  5391. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5392. MSM_BACKEND_DAI_PRI_I2S_RX,
  5393. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5394. msm_routing_put_audio_mixer),
  5395. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5396. MSM_BACKEND_DAI_PRI_I2S_RX,
  5397. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5398. msm_routing_put_audio_mixer),
  5399. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5400. MSM_BACKEND_DAI_PRI_I2S_RX,
  5401. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5402. msm_routing_put_audio_mixer),
  5403. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5404. MSM_BACKEND_DAI_PRI_I2S_RX,
  5405. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5406. msm_routing_put_audio_mixer),
  5407. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5408. MSM_BACKEND_DAI_PRI_I2S_RX,
  5409. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5410. msm_routing_put_audio_mixer),
  5411. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5412. MSM_BACKEND_DAI_PRI_I2S_RX,
  5413. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5414. msm_routing_put_audio_mixer),
  5415. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5416. MSM_BACKEND_DAI_PRI_I2S_RX,
  5417. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5418. msm_routing_put_audio_mixer),
  5419. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5420. MSM_BACKEND_DAI_PRI_I2S_RX,
  5421. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5422. msm_routing_put_audio_mixer),
  5423. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5424. MSM_BACKEND_DAI_PRI_I2S_RX,
  5425. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5426. msm_routing_put_audio_mixer),
  5427. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5428. MSM_BACKEND_DAI_PRI_I2S_RX,
  5429. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5430. msm_routing_put_audio_mixer),
  5431. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5432. MSM_BACKEND_DAI_PRI_I2S_RX,
  5433. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5434. msm_routing_put_audio_mixer),
  5435. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5436. MSM_BACKEND_DAI_PRI_I2S_RX,
  5437. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5438. msm_routing_put_audio_mixer),
  5439. };
  5440. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5441. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5442. MSM_BACKEND_DAI_SEC_I2S_RX,
  5443. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5444. msm_routing_put_audio_mixer),
  5445. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5446. MSM_BACKEND_DAI_SEC_I2S_RX,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5450. MSM_BACKEND_DAI_SEC_I2S_RX,
  5451. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5452. msm_routing_put_audio_mixer),
  5453. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5454. MSM_BACKEND_DAI_SEC_I2S_RX,
  5455. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5456. msm_routing_put_audio_mixer),
  5457. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5458. MSM_BACKEND_DAI_SEC_I2S_RX,
  5459. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5460. msm_routing_put_audio_mixer),
  5461. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5462. MSM_BACKEND_DAI_SEC_I2S_RX,
  5463. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5464. msm_routing_put_audio_mixer),
  5465. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5466. MSM_BACKEND_DAI_SEC_I2S_RX,
  5467. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5468. msm_routing_put_audio_mixer),
  5469. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5470. MSM_BACKEND_DAI_SEC_I2S_RX,
  5471. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5472. msm_routing_put_audio_mixer),
  5473. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5474. MSM_BACKEND_DAI_SEC_I2S_RX,
  5475. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5476. msm_routing_put_audio_mixer),
  5477. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5478. MSM_BACKEND_DAI_SEC_I2S_RX,
  5479. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5480. msm_routing_put_audio_mixer),
  5481. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5482. MSM_BACKEND_DAI_SEC_I2S_RX,
  5483. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5484. msm_routing_put_audio_mixer),
  5485. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5486. MSM_BACKEND_DAI_SEC_I2S_RX,
  5487. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5488. msm_routing_put_audio_mixer),
  5489. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5490. MSM_BACKEND_DAI_SEC_I2S_RX,
  5491. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5492. msm_routing_put_audio_mixer),
  5493. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5494. MSM_BACKEND_DAI_SEC_I2S_RX,
  5495. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5496. msm_routing_put_audio_mixer),
  5497. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5498. MSM_BACKEND_DAI_SEC_I2S_RX,
  5499. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5500. msm_routing_put_audio_mixer),
  5501. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5502. MSM_BACKEND_DAI_SEC_I2S_RX,
  5503. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5504. msm_routing_put_audio_mixer),
  5505. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5506. MSM_BACKEND_DAI_SEC_I2S_RX,
  5507. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5508. msm_routing_put_audio_mixer),
  5509. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5510. MSM_BACKEND_DAI_SEC_I2S_RX,
  5511. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5512. msm_routing_put_audio_mixer),
  5513. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5514. MSM_BACKEND_DAI_SEC_I2S_RX,
  5515. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5516. msm_routing_put_audio_mixer),
  5517. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5518. MSM_BACKEND_DAI_SEC_I2S_RX,
  5519. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5520. msm_routing_put_audio_mixer),
  5521. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5522. MSM_BACKEND_DAI_SEC_I2S_RX,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5526. MSM_BACKEND_DAI_SEC_I2S_RX,
  5527. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5528. msm_routing_put_audio_mixer),
  5529. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5530. MSM_BACKEND_DAI_SEC_I2S_RX,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. };
  5534. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5535. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5536. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5537. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5538. msm_routing_put_audio_mixer),
  5539. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5540. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5541. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5542. msm_routing_put_audio_mixer),
  5543. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5544. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5545. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5546. msm_routing_put_audio_mixer),
  5547. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5548. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5549. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5550. msm_routing_put_audio_mixer),
  5551. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5552. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5553. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5554. msm_routing_put_audio_mixer),
  5555. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5556. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5557. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5558. msm_routing_put_audio_mixer),
  5559. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5560. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5561. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5562. msm_routing_put_audio_mixer),
  5563. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5564. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5565. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5566. msm_routing_put_audio_mixer),
  5567. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5568. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5569. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5570. msm_routing_put_audio_mixer),
  5571. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5572. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5573. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5574. msm_routing_put_audio_mixer),
  5575. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5576. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5577. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5578. msm_routing_put_audio_mixer),
  5579. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5580. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5581. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5582. msm_routing_put_audio_mixer),
  5583. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5584. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5585. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5586. msm_routing_put_audio_mixer),
  5587. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5588. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5589. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5590. msm_routing_put_audio_mixer),
  5591. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5592. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5593. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5594. msm_routing_put_audio_mixer),
  5595. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5596. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5600. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5601. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5602. msm_routing_put_audio_mixer),
  5603. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5604. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5624. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. };
  5628. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5629. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5630. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5631. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5632. msm_routing_put_audio_mixer),
  5633. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5634. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5635. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5636. msm_routing_put_audio_mixer),
  5637. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5638. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5639. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5640. msm_routing_put_audio_mixer),
  5641. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5642. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5643. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5644. msm_routing_put_audio_mixer),
  5645. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5646. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5647. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5648. msm_routing_put_audio_mixer),
  5649. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5650. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5651. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5652. msm_routing_put_audio_mixer),
  5653. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5654. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5655. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5656. msm_routing_put_audio_mixer),
  5657. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5658. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5662. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5663. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5664. msm_routing_put_audio_mixer),
  5665. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5666. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5667. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5668. msm_routing_put_audio_mixer),
  5669. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5670. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5671. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5672. msm_routing_put_audio_mixer),
  5673. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5674. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5675. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5676. msm_routing_put_audio_mixer),
  5677. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5678. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5682. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5683. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5684. msm_routing_put_audio_mixer),
  5685. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5686. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5690. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5718. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. };
  5722. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5723. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5724. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5726. msm_routing_put_audio_mixer),
  5727. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5728. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5732. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5734. msm_routing_put_audio_mixer),
  5735. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5736. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5738. msm_routing_put_audio_mixer),
  5739. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5740. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5744. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5746. msm_routing_put_audio_mixer),
  5747. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5748. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5749. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5750. msm_routing_put_audio_mixer),
  5751. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5752. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5756. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5758. msm_routing_put_audio_mixer),
  5759. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5760. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5762. msm_routing_put_audio_mixer),
  5763. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5764. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5768. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5772. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5788. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5789. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5790. msm_routing_put_audio_mixer),
  5791. };
  5792. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5793. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5794. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5795. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5796. msm_routing_put_audio_mixer),
  5797. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5798. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5799. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5800. msm_routing_put_audio_mixer),
  5801. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5802. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5804. msm_routing_put_audio_mixer),
  5805. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5806. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5807. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5808. msm_routing_put_audio_mixer),
  5809. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5810. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5812. msm_routing_put_audio_mixer),
  5813. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5814. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5818. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5822. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5823. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5824. msm_routing_put_audio_mixer),
  5825. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5826. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5827. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5828. msm_routing_put_audio_mixer),
  5829. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5830. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5834. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5838. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5842. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5846. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5850. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5851. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5852. msm_routing_put_audio_mixer),
  5853. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5854. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5855. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5856. msm_routing_put_audio_mixer),
  5857. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5858. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5859. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5860. msm_routing_put_audio_mixer),
  5861. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5862. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5863. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5864. msm_routing_put_audio_mixer),
  5865. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5866. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. };
  5886. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5887. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5888. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5889. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5890. msm_routing_put_audio_mixer),
  5891. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5892. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5893. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5894. msm_routing_put_audio_mixer),
  5895. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5896. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5900. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5901. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5902. msm_routing_put_audio_mixer),
  5903. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5904. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5912. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5916. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5920. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5921. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5922. msm_routing_put_audio_mixer),
  5923. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5924. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5928. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5932. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5933. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5934. msm_routing_put_audio_mixer),
  5935. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5936. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5940. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5964. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5968. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5972. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5976. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5977. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5978. msm_routing_put_audio_mixer),
  5979. };
  5980. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5981. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5982. MSM_BACKEND_DAI_MI2S_RX,
  5983. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5984. msm_routing_put_audio_mixer),
  5985. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5986. MSM_BACKEND_DAI_MI2S_RX,
  5987. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5988. msm_routing_put_audio_mixer),
  5989. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5990. MSM_BACKEND_DAI_MI2S_RX,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5994. MSM_BACKEND_DAI_MI2S_RX,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5998. MSM_BACKEND_DAI_MI2S_RX,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6002. MSM_BACKEND_DAI_MI2S_RX,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6006. MSM_BACKEND_DAI_MI2S_RX,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6010. MSM_BACKEND_DAI_MI2S_RX,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_MI2S_RX,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_MI2S_RX,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6022. MSM_BACKEND_DAI_MI2S_RX,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6026. MSM_BACKEND_DAI_MI2S_RX,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6030. MSM_BACKEND_DAI_MI2S_RX,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6034. MSM_BACKEND_DAI_MI2S_RX,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6038. MSM_BACKEND_DAI_MI2S_RX,
  6039. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6040. msm_routing_put_audio_mixer),
  6041. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6042. MSM_BACKEND_DAI_MI2S_RX,
  6043. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6044. msm_routing_put_audio_mixer),
  6045. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6046. MSM_BACKEND_DAI_MI2S_RX,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6050. MSM_BACKEND_DAI_MI2S_RX,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6054. MSM_BACKEND_DAI_MI2S_RX,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6058. MSM_BACKEND_DAI_MI2S_RX,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6062. MSM_BACKEND_DAI_MI2S_RX,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6066. MSM_BACKEND_DAI_MI2S_RX,
  6067. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6068. msm_routing_put_audio_mixer),
  6069. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6070. MSM_BACKEND_DAI_MI2S_RX,
  6071. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6072. msm_routing_put_audio_mixer),
  6073. };
  6074. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6075. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6076. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6092. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6096. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6100. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6104. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6105. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6106. msm_routing_put_audio_mixer),
  6107. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6108. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6112. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6113. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6114. msm_routing_put_audio_mixer),
  6115. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6116. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6117. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6118. msm_routing_put_audio_mixer),
  6119. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6120. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6121. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6122. msm_routing_put_audio_mixer),
  6123. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6124. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6128. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6129. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6130. msm_routing_put_audio_mixer),
  6131. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6132. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6133. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6134. msm_routing_put_audio_mixer),
  6135. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6136. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6137. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6138. msm_routing_put_audio_mixer),
  6139. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6140. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6144. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6145. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6146. msm_routing_put_audio_mixer),
  6147. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6148. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6149. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6150. msm_routing_put_audio_mixer),
  6151. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6152. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6153. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6154. msm_routing_put_audio_mixer),
  6155. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6156. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6157. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6158. msm_routing_put_audio_mixer),
  6159. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6160. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6161. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6162. msm_routing_put_audio_mixer),
  6163. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6164. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6168. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6169. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6170. msm_routing_put_audio_mixer),
  6171. };
  6172. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6173. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6174. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6178. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6182. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6186. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6187. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6188. msm_routing_put_audio_mixer),
  6189. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6190. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6194. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6195. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6196. msm_routing_put_audio_mixer),
  6197. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6198. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6199. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6200. msm_routing_put_audio_mixer),
  6201. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6202. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6203. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6204. msm_routing_put_audio_mixer),
  6205. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6206. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6207. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6208. msm_routing_put_audio_mixer),
  6209. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6210. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6214. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6218. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6219. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6220. msm_routing_put_audio_mixer),
  6221. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6222. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6223. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6224. msm_routing_put_audio_mixer),
  6225. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6226. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6227. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6228. msm_routing_put_audio_mixer),
  6229. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6230. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6231. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6232. msm_routing_put_audio_mixer),
  6233. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6234. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6238. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6242. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6246. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6250. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6251. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6252. msm_routing_put_audio_mixer),
  6253. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6254. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6258. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6262. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. };
  6266. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6267. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6268. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6269. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6270. msm_routing_put_audio_mixer),
  6271. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6272. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6273. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6274. msm_routing_put_audio_mixer),
  6275. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6276. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6280. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6281. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6282. msm_routing_put_audio_mixer),
  6283. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6284. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6285. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6286. msm_routing_put_audio_mixer),
  6287. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6288. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6289. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6290. msm_routing_put_audio_mixer),
  6291. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6292. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6293. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6294. msm_routing_put_audio_mixer),
  6295. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6296. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6300. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6301. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6302. msm_routing_put_audio_mixer),
  6303. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6304. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6305. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6306. msm_routing_put_audio_mixer),
  6307. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6308. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6312. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6313. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6314. msm_routing_put_audio_mixer),
  6315. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6316. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6317. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6318. msm_routing_put_audio_mixer),
  6319. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6320. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6324. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6332. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6336. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6340. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. };
  6356. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6357. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6358. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6362. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6363. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6364. msm_routing_put_audio_mixer),
  6365. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6366. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6367. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6368. msm_routing_put_audio_mixer),
  6369. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6370. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6374. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6375. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6376. msm_routing_put_audio_mixer),
  6377. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6378. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6382. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6386. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6422. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6426. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6430. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6438. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. };
  6442. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6443. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6444. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6445. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6446. msm_routing_put_audio_mixer),
  6447. };
  6448. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6449. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6450. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6451. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6452. msm_routing_put_audio_mixer),
  6453. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6454. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6455. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6456. msm_routing_put_audio_mixer),
  6457. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6458. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6459. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6460. msm_routing_put_audio_mixer),
  6461. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6462. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6463. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6464. msm_routing_put_audio_mixer),
  6465. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6466. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6467. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6468. msm_routing_put_audio_mixer),
  6469. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6470. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6471. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6472. msm_routing_put_audio_mixer),
  6473. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6474. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6475. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6476. msm_routing_put_audio_mixer),
  6477. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6478. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6479. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6480. msm_routing_put_audio_mixer),
  6481. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6482. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6483. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6484. msm_routing_put_audio_mixer),
  6485. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6486. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6487. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6488. msm_routing_put_audio_mixer),
  6489. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6490. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6491. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6492. msm_routing_put_audio_mixer),
  6493. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6494. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6495. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6496. msm_routing_put_audio_mixer),
  6497. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6498. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6499. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6500. msm_routing_put_audio_mixer),
  6501. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6502. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6503. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6504. msm_routing_put_audio_mixer),
  6505. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6506. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6507. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6508. msm_routing_put_audio_mixer),
  6509. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6510. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6511. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6512. msm_routing_put_audio_mixer),
  6513. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6514. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6515. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6516. msm_routing_put_audio_mixer),
  6517. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6518. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6519. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6520. msm_routing_put_audio_mixer),
  6521. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6522. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6523. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6524. msm_routing_put_audio_mixer),
  6525. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6526. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6527. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6528. msm_routing_put_audio_mixer),
  6529. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6530. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6531. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6532. msm_routing_put_audio_mixer),
  6533. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6534. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6538. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6539. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6540. msm_routing_put_audio_mixer),
  6541. };
  6542. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6543. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6544. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6545. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6546. msm_routing_put_audio_mixer),
  6547. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6548. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6549. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6550. msm_routing_put_audio_mixer),
  6551. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6552. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6553. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6554. msm_routing_put_audio_mixer),
  6555. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6556. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6557. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6558. msm_routing_put_audio_mixer),
  6559. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6560. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6562. msm_routing_put_audio_mixer),
  6563. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6564. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6565. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6566. msm_routing_put_audio_mixer),
  6567. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6568. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6569. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6570. msm_routing_put_audio_mixer),
  6571. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6572. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6573. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6574. msm_routing_put_audio_mixer),
  6575. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6576. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6577. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6578. msm_routing_put_audio_mixer),
  6579. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6580. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6581. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6582. msm_routing_put_audio_mixer),
  6583. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6584. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6585. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6586. msm_routing_put_audio_mixer),
  6587. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6588. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6589. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6590. msm_routing_put_audio_mixer),
  6591. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6592. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6593. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6594. msm_routing_put_audio_mixer),
  6595. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6596. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6600. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6601. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6602. msm_routing_put_audio_mixer),
  6603. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6604. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6605. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6606. msm_routing_put_audio_mixer),
  6607. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6608. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6612. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6613. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6614. msm_routing_put_audio_mixer),
  6615. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6616. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6617. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6618. msm_routing_put_audio_mixer),
  6619. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6620. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6624. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6625. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6626. msm_routing_put_audio_mixer),
  6627. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6628. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6632. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6636. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6637. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6638. msm_routing_put_audio_mixer),
  6639. };
  6640. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6641. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6642. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6643. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6644. msm_routing_put_audio_mixer),
  6645. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6646. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6647. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6648. msm_routing_put_audio_mixer),
  6649. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6650. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6654. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6655. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6656. msm_routing_put_audio_mixer),
  6657. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6658. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6662. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6666. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6667. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6668. msm_routing_put_audio_mixer),
  6669. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6670. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6674. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6678. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6682. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6686. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6687. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6688. msm_routing_put_audio_mixer),
  6689. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6690. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6691. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6692. msm_routing_put_audio_mixer),
  6693. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6694. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6698. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6702. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. };
  6706. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6707. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6708. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6709. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6710. msm_routing_put_audio_mixer),
  6711. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6712. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6713. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6714. msm_routing_put_audio_mixer),
  6715. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6716. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6717. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6718. msm_routing_put_audio_mixer),
  6719. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6720. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6721. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6722. msm_routing_put_audio_mixer),
  6723. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6724. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6728. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6732. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6736. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6752. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6753. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6754. msm_routing_put_audio_mixer),
  6755. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6756. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6757. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6758. msm_routing_put_audio_mixer),
  6759. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6760. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6764. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6765. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6766. msm_routing_put_audio_mixer),
  6767. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6768. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. };
  6772. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6773. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6774. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6775. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6776. msm_routing_put_audio_mixer),
  6777. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6778. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6779. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6780. msm_routing_put_audio_mixer),
  6781. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6782. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6783. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6784. msm_routing_put_audio_mixer),
  6785. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6786. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6787. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6788. msm_routing_put_audio_mixer),
  6789. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6790. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6794. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6795. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6796. msm_routing_put_audio_mixer),
  6797. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6798. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6802. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6803. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6804. msm_routing_put_audio_mixer),
  6805. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6806. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6807. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6808. msm_routing_put_audio_mixer),
  6809. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6810. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6814. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6815. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6816. msm_routing_put_audio_mixer),
  6817. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6818. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6819. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6820. msm_routing_put_audio_mixer),
  6821. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6822. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6826. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6830. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6842. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6846. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6850. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6851. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6852. msm_routing_put_audio_mixer),
  6853. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6854. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6855. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6856. msm_routing_put_audio_mixer),
  6857. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6858. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. };
  6862. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6863. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6864. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6868. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6872. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6876. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6880. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6884. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6888. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6892. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6896. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6897. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6898. msm_routing_put_audio_mixer),
  6899. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6900. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6904. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6912. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6913. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6914. msm_routing_put_audio_mixer),
  6915. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6916. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6920. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6924. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6928. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6932. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6936. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6937. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6938. msm_routing_put_audio_mixer),
  6939. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6940. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6941. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6942. msm_routing_put_audio_mixer),
  6943. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6944. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6948. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6949. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6950. msm_routing_put_audio_mixer),
  6951. };
  6952. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6953. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6954. MSM_BACKEND_DAI_HDMI_RX,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_HDMI_RX,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_HDMI_RX,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_HDMI_RX,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_HDMI_RX,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_HDMI_RX,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_HDMI_RX,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6982. MSM_BACKEND_DAI_HDMI_RX,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6986. MSM_BACKEND_DAI_HDMI_RX,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6990. MSM_BACKEND_DAI_HDMI_RX,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_HDMI_RX,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_HDMI_RX,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7002. MSM_BACKEND_DAI_HDMI_RX,
  7003. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7004. msm_routing_put_audio_mixer),
  7005. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7006. MSM_BACKEND_DAI_HDMI_RX,
  7007. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7008. msm_routing_put_audio_mixer),
  7009. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7010. MSM_BACKEND_DAI_HDMI_RX,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7014. MSM_BACKEND_DAI_HDMI_RX,
  7015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7016. msm_routing_put_audio_mixer),
  7017. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7018. MSM_BACKEND_DAI_HDMI_RX,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7022. MSM_BACKEND_DAI_HDMI_RX,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7026. MSM_BACKEND_DAI_HDMI_RX,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7030. MSM_BACKEND_DAI_HDMI_RX,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7034. MSM_BACKEND_DAI_HDMI_RX,
  7035. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7036. msm_routing_put_audio_mixer),
  7037. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7038. MSM_BACKEND_DAI_HDMI_RX,
  7039. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7040. msm_routing_put_audio_mixer),
  7041. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7042. MSM_BACKEND_DAI_HDMI_RX,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. };
  7046. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  7047. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7052. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7060. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7072. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7076. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7078. msm_routing_put_audio_mixer),
  7079. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7080. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7084. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. };
  7116. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7117. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7134. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7142. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7146. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. };
  7186. /* incall music delivery mixer */
  7187. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7188. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7189. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7190. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7191. msm_routing_put_audio_mixer),
  7192. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7193. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7194. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7195. msm_routing_put_audio_mixer),
  7196. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7197. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7198. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7199. msm_routing_put_audio_mixer),
  7200. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7201. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7202. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7203. msm_routing_put_audio_mixer),
  7204. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7205. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7206. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7207. msm_routing_put_audio_mixer),
  7208. };
  7209. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7210. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7219. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7220. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7221. msm_routing_put_audio_mixer),
  7222. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7223. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7224. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7225. msm_routing_put_audio_mixer),
  7226. };
  7227. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7228. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7229. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7230. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7231. msm_routing_put_audio_mixer),
  7232. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7233. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7235. msm_routing_put_audio_mixer),
  7236. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7237. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7238. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7239. msm_routing_put_audio_mixer),
  7240. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7241. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. };
  7245. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7246. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7247. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7248. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7249. msm_routing_put_audio_mixer),
  7250. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7251. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7252. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7253. msm_routing_put_audio_mixer),
  7254. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7255. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7256. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7257. msm_routing_put_audio_mixer),
  7258. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7259. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7260. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7261. msm_routing_put_audio_mixer),
  7262. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7263. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7264. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7265. msm_routing_put_audio_mixer),
  7266. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7267. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7268. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7269. msm_routing_put_audio_mixer),
  7270. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7271. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7272. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7273. msm_routing_put_audio_mixer),
  7274. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7275. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7276. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7277. msm_routing_put_audio_mixer),
  7278. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7279. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7280. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7281. msm_routing_put_audio_mixer),
  7282. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7283. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7284. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7285. msm_routing_put_audio_mixer),
  7286. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7287. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7288. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7289. msm_routing_put_audio_mixer),
  7290. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7291. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7292. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7293. msm_routing_put_audio_mixer),
  7294. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7295. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7296. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7297. msm_routing_put_audio_mixer),
  7298. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7299. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7300. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7301. msm_routing_put_audio_mixer),
  7302. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7303. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7304. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7305. msm_routing_put_audio_mixer),
  7306. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7307. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7308. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7309. msm_routing_put_audio_mixer),
  7310. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7311. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7312. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7313. msm_routing_put_audio_mixer),
  7314. };
  7315. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7316. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7317. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7318. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7319. msm_routing_put_audio_mixer),
  7320. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7321. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7322. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7323. msm_routing_put_audio_mixer),
  7324. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7325. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7326. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7327. msm_routing_put_audio_mixer),
  7328. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7329. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7330. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7331. msm_routing_put_audio_mixer),
  7332. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7333. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7334. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7335. msm_routing_put_audio_mixer),
  7336. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7337. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7338. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7339. msm_routing_put_audio_mixer),
  7340. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7341. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7342. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7343. msm_routing_put_audio_mixer),
  7344. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7345. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7346. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7347. msm_routing_put_audio_mixer),
  7348. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7349. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7350. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7351. msm_routing_put_audio_mixer),
  7352. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7353. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7354. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7355. msm_routing_put_audio_mixer),
  7356. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7357. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7358. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7359. msm_routing_put_audio_mixer),
  7360. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7361. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7362. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7363. msm_routing_put_audio_mixer),
  7364. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7365. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7366. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7367. msm_routing_put_audio_mixer),
  7368. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7369. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7370. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7371. msm_routing_put_audio_mixer),
  7372. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7373. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7374. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7375. msm_routing_put_audio_mixer),
  7376. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7377. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7378. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7379. msm_routing_put_audio_mixer),
  7380. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7381. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7382. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7383. msm_routing_put_audio_mixer),
  7384. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7385. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7386. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7387. msm_routing_put_audio_mixer),
  7388. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7389. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7390. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7391. msm_routing_put_audio_mixer),
  7392. };
  7393. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7394. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7395. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7396. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7397. msm_routing_put_audio_mixer),
  7398. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7399. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7400. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7401. msm_routing_put_audio_mixer),
  7402. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7403. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7404. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7405. msm_routing_put_audio_mixer),
  7406. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7407. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7408. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7409. msm_routing_put_audio_mixer),
  7410. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7411. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7412. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7413. msm_routing_put_audio_mixer),
  7414. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7415. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7416. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7417. msm_routing_put_audio_mixer),
  7418. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7419. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7420. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7421. msm_routing_put_audio_mixer),
  7422. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7423. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7424. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7425. msm_routing_put_audio_mixer),
  7426. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7427. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7428. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7429. msm_routing_put_audio_mixer),
  7430. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7431. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7432. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7433. msm_routing_put_audio_mixer),
  7434. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7435. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7436. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7437. msm_routing_put_audio_mixer),
  7438. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7439. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7440. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7441. msm_routing_put_audio_mixer),
  7442. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7443. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7444. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7445. msm_routing_put_audio_mixer),
  7446. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7447. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7448. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7449. msm_routing_put_audio_mixer),
  7450. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7451. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7452. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7453. msm_routing_put_audio_mixer),
  7454. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7455. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7456. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7457. msm_routing_put_audio_mixer),
  7458. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7459. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7460. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7461. msm_routing_put_audio_mixer),
  7462. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7463. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7464. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7465. msm_routing_put_audio_mixer),
  7466. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7467. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. };
  7471. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7472. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7473. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7474. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7475. msm_routing_put_audio_mixer),
  7476. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7477. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7478. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7479. msm_routing_put_audio_mixer),
  7480. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7481. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7482. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7483. msm_routing_put_audio_mixer),
  7484. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7485. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7486. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7487. msm_routing_put_audio_mixer),
  7488. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7489. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7490. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7491. msm_routing_put_audio_mixer),
  7492. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7493. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7494. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7495. msm_routing_put_audio_mixer),
  7496. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7497. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7498. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7499. msm_routing_put_audio_mixer),
  7500. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7501. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7502. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7503. msm_routing_put_audio_mixer),
  7504. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7505. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7506. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7507. msm_routing_put_audio_mixer),
  7508. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7509. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7510. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7511. msm_routing_put_audio_mixer),
  7512. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7513. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7514. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7515. msm_routing_put_audio_mixer),
  7516. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7517. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7518. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7519. msm_routing_put_audio_mixer),
  7520. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7521. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7522. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7523. msm_routing_put_audio_mixer),
  7524. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7525. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7526. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7527. msm_routing_put_audio_mixer),
  7528. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7529. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7530. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7531. msm_routing_put_audio_mixer),
  7532. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7533. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7534. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7535. msm_routing_put_audio_mixer),
  7536. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7537. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7538. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7539. msm_routing_put_audio_mixer),
  7540. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. };
  7549. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7550. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7551. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7552. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7553. msm_routing_put_audio_mixer),
  7554. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7555. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7556. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7557. msm_routing_put_audio_mixer),
  7558. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7559. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7560. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7561. msm_routing_put_audio_mixer),
  7562. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7563. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7564. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7565. msm_routing_put_audio_mixer),
  7566. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7567. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7568. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7569. msm_routing_put_audio_mixer),
  7570. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7571. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7572. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7573. msm_routing_put_audio_mixer),
  7574. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7575. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7576. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7577. msm_routing_put_audio_mixer),
  7578. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7579. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7580. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7581. msm_routing_put_audio_mixer),
  7582. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7583. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7584. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7585. msm_routing_put_audio_mixer),
  7586. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7587. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7588. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7589. msm_routing_put_audio_mixer),
  7590. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7591. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7592. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7593. msm_routing_put_audio_mixer),
  7594. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7595. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7596. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7597. msm_routing_put_audio_mixer),
  7598. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7599. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7600. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7601. msm_routing_put_audio_mixer),
  7602. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7603. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7604. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7605. msm_routing_put_audio_mixer),
  7606. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. };
  7627. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7628. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7629. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7630. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7631. msm_routing_put_audio_mixer),
  7632. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7633. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7634. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7635. msm_routing_put_audio_mixer),
  7636. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7637. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7638. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7639. msm_routing_put_audio_mixer),
  7640. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7641. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7642. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7643. msm_routing_put_audio_mixer),
  7644. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7645. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7646. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7647. msm_routing_put_audio_mixer),
  7648. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7649. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7650. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7651. msm_routing_put_audio_mixer),
  7652. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7653. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7654. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7655. msm_routing_put_audio_mixer),
  7656. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7657. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7658. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7659. msm_routing_put_audio_mixer),
  7660. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7661. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7662. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7663. msm_routing_put_audio_mixer),
  7664. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7665. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7666. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7667. msm_routing_put_audio_mixer),
  7668. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7669. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7670. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7671. msm_routing_put_audio_mixer),
  7672. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7673. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7674. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7675. msm_routing_put_audio_mixer),
  7676. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. };
  7705. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7706. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7707. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7708. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7709. msm_routing_put_audio_mixer),
  7710. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7711. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7712. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7713. msm_routing_put_audio_mixer),
  7714. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7715. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7716. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7717. msm_routing_put_audio_mixer),
  7718. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7719. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7720. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7721. msm_routing_put_audio_mixer),
  7722. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7723. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7725. msm_routing_put_audio_mixer),
  7726. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7727. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7728. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7729. msm_routing_put_audio_mixer),
  7730. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7731. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7732. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7733. msm_routing_put_audio_mixer),
  7734. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7735. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7736. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7737. msm_routing_put_audio_mixer),
  7738. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7739. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7740. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7741. msm_routing_put_audio_mixer),
  7742. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7743. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7745. msm_routing_put_audio_mixer),
  7746. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7747. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7748. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7749. msm_routing_put_audio_mixer),
  7750. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7779. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7780. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7781. msm_routing_put_audio_mixer),
  7782. };
  7783. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7784. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7785. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7786. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7787. msm_routing_put_audio_mixer),
  7788. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7789. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7790. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7791. msm_routing_put_audio_mixer),
  7792. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7793. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7794. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7795. msm_routing_put_audio_mixer),
  7796. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7797. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7798. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7799. msm_routing_put_audio_mixer),
  7800. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7801. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7802. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7803. msm_routing_put_audio_mixer),
  7804. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7805. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7806. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7807. msm_routing_put_audio_mixer),
  7808. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7809. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7810. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7811. msm_routing_put_audio_mixer),
  7812. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7813. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7814. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7815. msm_routing_put_audio_mixer),
  7816. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7817. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7818. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7819. msm_routing_put_audio_mixer),
  7820. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7821. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7822. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7823. msm_routing_put_audio_mixer),
  7824. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7825. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7826. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7827. msm_routing_put_audio_mixer),
  7828. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7845. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7846. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7847. msm_routing_put_audio_mixer),
  7848. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7849. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7850. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7851. msm_routing_put_audio_mixer),
  7852. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7853. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7854. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7855. msm_routing_put_audio_mixer),
  7856. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7858. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7859. msm_routing_put_audio_mixer),
  7860. };
  7861. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7862. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7863. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7864. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7865. msm_routing_put_audio_mixer),
  7866. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7867. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7868. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7869. msm_routing_put_audio_mixer),
  7870. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7871. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7872. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7873. msm_routing_put_audio_mixer),
  7874. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7875. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7876. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7877. msm_routing_put_audio_mixer),
  7878. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7879. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7880. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7881. msm_routing_put_audio_mixer),
  7882. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7883. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7884. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7885. msm_routing_put_audio_mixer),
  7886. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7887. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7888. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7889. msm_routing_put_audio_mixer),
  7890. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7891. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7892. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7893. msm_routing_put_audio_mixer),
  7894. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7895. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7896. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7897. msm_routing_put_audio_mixer),
  7898. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7899. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7900. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7901. msm_routing_put_audio_mixer),
  7902. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7903. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7904. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7905. msm_routing_put_audio_mixer),
  7906. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7907. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7908. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7909. msm_routing_put_audio_mixer),
  7910. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7911. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7912. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7913. msm_routing_put_audio_mixer),
  7914. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7915. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7916. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7917. msm_routing_put_audio_mixer),
  7918. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7919. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7920. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7921. msm_routing_put_audio_mixer),
  7922. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7923. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7924. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7925. msm_routing_put_audio_mixer),
  7926. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7927. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7928. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7929. msm_routing_put_audio_mixer),
  7930. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7931. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7932. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7933. msm_routing_put_audio_mixer),
  7934. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7935. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7936. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7937. msm_routing_put_audio_mixer),
  7938. };
  7939. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7940. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7941. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7942. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7943. msm_routing_put_audio_mixer),
  7944. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7945. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7946. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7947. msm_routing_put_audio_mixer),
  7948. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7949. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7950. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7951. msm_routing_put_audio_mixer),
  7952. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7953. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7954. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7955. msm_routing_put_audio_mixer),
  7956. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7957. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7958. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7959. msm_routing_put_audio_mixer),
  7960. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7961. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7962. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7963. msm_routing_put_audio_mixer),
  7964. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7965. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7966. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7967. msm_routing_put_audio_mixer),
  7968. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7969. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7970. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7971. msm_routing_put_audio_mixer),
  7972. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7973. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7974. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7975. msm_routing_put_audio_mixer),
  7976. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7977. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7978. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7979. msm_routing_put_audio_mixer),
  7980. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7981. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7982. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7983. msm_routing_put_audio_mixer),
  7984. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7985. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7986. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7987. msm_routing_put_audio_mixer),
  7988. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7989. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7990. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7991. msm_routing_put_audio_mixer),
  7992. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7993. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7994. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7995. msm_routing_put_audio_mixer),
  7996. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7997. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7998. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7999. msm_routing_put_audio_mixer),
  8000. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8001. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8002. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8003. msm_routing_put_audio_mixer),
  8004. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8005. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8006. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8007. msm_routing_put_audio_mixer),
  8008. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8009. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8010. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8011. msm_routing_put_audio_mixer),
  8012. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8013. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8014. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8015. msm_routing_put_audio_mixer),
  8016. };
  8017. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  8018. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8019. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8021. msm_routing_put_audio_mixer),
  8022. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8023. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8024. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8025. msm_routing_put_audio_mixer),
  8026. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8027. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8028. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8029. msm_routing_put_audio_mixer),
  8030. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8031. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8032. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8033. msm_routing_put_audio_mixer),
  8034. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8035. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8036. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8037. msm_routing_put_audio_mixer),
  8038. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8039. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8040. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8041. msm_routing_put_audio_mixer),
  8042. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8043. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8044. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8045. msm_routing_put_audio_mixer),
  8046. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8047. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8048. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8049. msm_routing_put_audio_mixer),
  8050. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8051. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8052. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8053. msm_routing_put_audio_mixer),
  8054. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8055. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8056. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8057. msm_routing_put_audio_mixer),
  8058. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8059. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8060. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8061. msm_routing_put_audio_mixer),
  8062. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8063. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8064. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8065. msm_routing_put_audio_mixer),
  8066. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8067. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8068. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8069. msm_routing_put_audio_mixer),
  8070. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8071. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8072. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8073. msm_routing_put_audio_mixer),
  8074. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8075. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8076. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8077. msm_routing_put_audio_mixer),
  8078. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8079. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8080. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8081. msm_routing_put_audio_mixer),
  8082. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8083. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8084. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8085. msm_routing_put_audio_mixer),
  8086. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8087. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8088. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8089. msm_routing_put_audio_mixer),
  8090. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8091. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8092. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8093. msm_routing_put_audio_mixer),
  8094. };
  8095. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  8096. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8097. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8098. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8099. msm_routing_put_audio_mixer),
  8100. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8101. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8102. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8103. msm_routing_put_audio_mixer),
  8104. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8105. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8106. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8107. msm_routing_put_audio_mixer),
  8108. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8109. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8110. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8111. msm_routing_put_audio_mixer),
  8112. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8113. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8114. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8115. msm_routing_put_audio_mixer),
  8116. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8117. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8118. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8119. msm_routing_put_audio_mixer),
  8120. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8121. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8122. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8123. msm_routing_put_audio_mixer),
  8124. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8125. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8126. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8127. msm_routing_put_audio_mixer),
  8128. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8129. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8130. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8131. msm_routing_put_audio_mixer),
  8132. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8133. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8134. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8135. msm_routing_put_audio_mixer),
  8136. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8137. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8138. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8139. msm_routing_put_audio_mixer),
  8140. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8141. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8142. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8143. msm_routing_put_audio_mixer),
  8144. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8145. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8146. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8147. msm_routing_put_audio_mixer),
  8148. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8149. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8150. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8151. msm_routing_put_audio_mixer),
  8152. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8153. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8154. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8155. msm_routing_put_audio_mixer),
  8156. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8157. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8158. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8159. msm_routing_put_audio_mixer),
  8160. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8161. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8162. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8163. msm_routing_put_audio_mixer),
  8164. };
  8165. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8166. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8167. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8168. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8169. msm_routing_put_audio_mixer),
  8170. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8171. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8172. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8173. msm_routing_put_audio_mixer),
  8174. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8175. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8176. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8177. msm_routing_put_audio_mixer),
  8178. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8179. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8180. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8181. msm_routing_put_audio_mixer),
  8182. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8183. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8184. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8185. msm_routing_put_audio_mixer),
  8186. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8187. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8188. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8189. msm_routing_put_audio_mixer),
  8190. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8191. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8192. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8193. msm_routing_put_audio_mixer),
  8194. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8195. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8196. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8197. msm_routing_put_audio_mixer),
  8198. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8199. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8200. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8201. msm_routing_put_audio_mixer),
  8202. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8203. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8204. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8205. msm_routing_put_audio_mixer),
  8206. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8207. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8208. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8209. msm_routing_put_audio_mixer),
  8210. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8211. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8212. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8213. msm_routing_put_audio_mixer),
  8214. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8215. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8216. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8217. msm_routing_put_audio_mixer),
  8218. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8219. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8220. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8221. msm_routing_put_audio_mixer),
  8222. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8223. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8224. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8225. msm_routing_put_audio_mixer),
  8226. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8227. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8228. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8229. msm_routing_put_audio_mixer),
  8230. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8231. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8232. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8233. msm_routing_put_audio_mixer),
  8234. };
  8235. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8236. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8237. MSM_BACKEND_DAI_USB_RX,
  8238. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8239. msm_routing_put_audio_mixer),
  8240. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8241. MSM_BACKEND_DAI_USB_RX,
  8242. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8243. msm_routing_put_audio_mixer),
  8244. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8245. MSM_BACKEND_DAI_USB_RX,
  8246. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8247. msm_routing_put_audio_mixer),
  8248. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8249. MSM_BACKEND_DAI_USB_RX,
  8250. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8251. msm_routing_put_audio_mixer),
  8252. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8253. MSM_BACKEND_DAI_USB_RX,
  8254. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8255. msm_routing_put_audio_mixer),
  8256. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8257. MSM_BACKEND_DAI_USB_RX,
  8258. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8259. msm_routing_put_audio_mixer),
  8260. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8261. MSM_BACKEND_DAI_USB_RX,
  8262. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8263. msm_routing_put_audio_mixer),
  8264. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8265. MSM_BACKEND_DAI_USB_RX,
  8266. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8267. msm_routing_put_audio_mixer),
  8268. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8269. MSM_BACKEND_DAI_USB_RX,
  8270. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8271. msm_routing_put_audio_mixer),
  8272. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8273. MSM_BACKEND_DAI_USB_RX,
  8274. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8275. msm_routing_put_audio_mixer),
  8276. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8277. MSM_BACKEND_DAI_USB_RX,
  8278. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8279. msm_routing_put_audio_mixer),
  8280. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8281. MSM_BACKEND_DAI_USB_RX,
  8282. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8283. msm_routing_put_audio_mixer),
  8284. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8285. MSM_BACKEND_DAI_USB_RX,
  8286. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8287. msm_routing_put_audio_mixer),
  8288. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8289. MSM_BACKEND_DAI_USB_RX,
  8290. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8291. msm_routing_put_audio_mixer),
  8292. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8293. MSM_BACKEND_DAI_USB_RX,
  8294. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8295. msm_routing_put_audio_mixer),
  8296. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8297. MSM_BACKEND_DAI_USB_RX,
  8298. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8299. msm_routing_put_audio_mixer),
  8300. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8301. MSM_BACKEND_DAI_USB_RX,
  8302. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8303. msm_routing_put_audio_mixer),
  8304. };
  8305. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8306. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8307. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8308. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8309. msm_routing_put_audio_mixer),
  8310. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8311. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8312. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8313. msm_routing_put_audio_mixer),
  8314. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8315. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8317. msm_routing_put_audio_mixer),
  8318. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8319. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8320. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8321. msm_routing_put_audio_mixer),
  8322. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8323. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8324. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8325. msm_routing_put_audio_mixer),
  8326. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8327. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8328. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8329. msm_routing_put_audio_mixer),
  8330. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8331. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8332. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8333. msm_routing_put_audio_mixer),
  8334. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8335. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8336. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8337. msm_routing_put_audio_mixer),
  8338. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8339. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8340. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8341. msm_routing_put_audio_mixer),
  8342. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8343. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8344. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8345. msm_routing_put_audio_mixer),
  8346. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8347. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8348. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8349. msm_routing_put_audio_mixer),
  8350. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8351. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8352. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8353. msm_routing_put_audio_mixer),
  8354. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8355. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8356. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8357. msm_routing_put_audio_mixer),
  8358. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8359. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8360. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8361. msm_routing_put_audio_mixer),
  8362. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8363. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8364. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8365. msm_routing_put_audio_mixer),
  8366. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8367. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8368. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8369. msm_routing_put_audio_mixer),
  8370. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8371. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8372. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8373. msm_routing_put_audio_mixer),
  8374. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8375. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8376. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8377. msm_routing_put_audio_mixer),
  8378. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8379. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8380. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8381. msm_routing_put_audio_mixer),
  8382. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8383. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8384. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8385. msm_routing_put_audio_mixer),
  8386. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8387. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8388. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8389. msm_routing_put_audio_mixer),
  8390. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8391. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8392. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8393. msm_routing_put_audio_mixer),
  8394. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8395. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8396. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8397. msm_routing_put_audio_mixer),
  8398. };
  8399. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8400. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8401. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8402. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8403. msm_routing_put_audio_mixer),
  8404. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8405. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8406. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8407. msm_routing_put_audio_mixer),
  8408. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8409. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8410. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8411. msm_routing_put_audio_mixer),
  8412. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8413. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8414. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8415. msm_routing_put_audio_mixer),
  8416. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8417. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8418. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8419. msm_routing_put_audio_mixer),
  8420. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8421. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8422. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8423. msm_routing_put_audio_mixer),
  8424. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8425. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8426. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8427. msm_routing_put_audio_mixer),
  8428. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8429. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8430. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8431. msm_routing_put_audio_mixer),
  8432. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8433. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8434. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8435. msm_routing_put_audio_mixer),
  8436. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8437. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8438. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8439. msm_routing_put_audio_mixer),
  8440. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8441. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8442. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8443. msm_routing_put_audio_mixer),
  8444. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8445. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8446. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8447. msm_routing_put_audio_mixer),
  8448. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8449. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8450. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8451. msm_routing_put_audio_mixer),
  8452. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8453. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8454. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8455. msm_routing_put_audio_mixer),
  8456. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8457. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8458. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8459. msm_routing_put_audio_mixer),
  8460. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8461. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8462. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8463. msm_routing_put_audio_mixer),
  8464. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8465. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8466. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8467. msm_routing_put_audio_mixer),
  8468. };
  8469. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8470. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8471. MSM_BACKEND_DAI_INT_FM_RX,
  8472. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8473. msm_routing_put_audio_mixer),
  8474. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8475. MSM_BACKEND_DAI_INT_FM_RX,
  8476. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8477. msm_routing_put_audio_mixer),
  8478. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8479. MSM_BACKEND_DAI_INT_FM_RX,
  8480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8481. msm_routing_put_audio_mixer),
  8482. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8483. MSM_BACKEND_DAI_INT_FM_RX,
  8484. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8485. msm_routing_put_audio_mixer),
  8486. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8487. MSM_BACKEND_DAI_INT_FM_RX,
  8488. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8489. msm_routing_put_audio_mixer),
  8490. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8491. MSM_BACKEND_DAI_INT_FM_RX,
  8492. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8493. msm_routing_put_audio_mixer),
  8494. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8495. MSM_BACKEND_DAI_INT_FM_RX,
  8496. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8497. msm_routing_put_audio_mixer),
  8498. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8499. MSM_BACKEND_DAI_INT_FM_RX,
  8500. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8501. msm_routing_put_audio_mixer),
  8502. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8503. MSM_BACKEND_DAI_INT_FM_RX,
  8504. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8505. msm_routing_put_audio_mixer),
  8506. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8507. MSM_BACKEND_DAI_INT_FM_RX,
  8508. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8509. msm_routing_put_audio_mixer),
  8510. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8511. MSM_BACKEND_DAI_INT_FM_RX,
  8512. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8513. msm_routing_put_audio_mixer),
  8514. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8515. MSM_BACKEND_DAI_INT_FM_RX,
  8516. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8517. msm_routing_put_audio_mixer),
  8518. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8519. MSM_BACKEND_DAI_INT_FM_RX,
  8520. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8521. msm_routing_put_audio_mixer),
  8522. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8523. MSM_BACKEND_DAI_INT_FM_RX,
  8524. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8525. msm_routing_put_audio_mixer),
  8526. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8527. MSM_BACKEND_DAI_INT_FM_RX,
  8528. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8529. msm_routing_put_audio_mixer),
  8530. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8531. MSM_BACKEND_DAI_INT_FM_RX,
  8532. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8533. msm_routing_put_audio_mixer),
  8534. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8535. MSM_BACKEND_DAI_INT_FM_RX,
  8536. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8537. msm_routing_put_audio_mixer),
  8538. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8539. MSM_BACKEND_DAI_INT_FM_RX,
  8540. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8541. msm_routing_put_audio_mixer),
  8542. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8543. MSM_BACKEND_DAI_INT_FM_RX,
  8544. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8545. msm_routing_put_audio_mixer),
  8546. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8547. MSM_BACKEND_DAI_INT_FM_RX,
  8548. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8549. msm_routing_put_audio_mixer),
  8550. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8551. MSM_BACKEND_DAI_INT_FM_RX,
  8552. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8553. msm_routing_put_audio_mixer),
  8554. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8555. MSM_BACKEND_DAI_INT_FM_RX,
  8556. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8557. msm_routing_put_audio_mixer),
  8558. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8559. MSM_BACKEND_DAI_INT_FM_RX,
  8560. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8561. msm_routing_put_audio_mixer),
  8562. };
  8563. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8564. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8565. MSM_BACKEND_DAI_AFE_PCM_RX,
  8566. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8567. msm_routing_put_audio_mixer),
  8568. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8569. MSM_BACKEND_DAI_AFE_PCM_RX,
  8570. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8571. msm_routing_put_audio_mixer),
  8572. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8573. MSM_BACKEND_DAI_AFE_PCM_RX,
  8574. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8575. msm_routing_put_audio_mixer),
  8576. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8577. MSM_BACKEND_DAI_AFE_PCM_RX,
  8578. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8579. msm_routing_put_audio_mixer),
  8580. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8581. MSM_BACKEND_DAI_AFE_PCM_RX,
  8582. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8583. msm_routing_put_audio_mixer),
  8584. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8585. MSM_BACKEND_DAI_AFE_PCM_RX,
  8586. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8587. msm_routing_put_audio_mixer),
  8588. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8589. MSM_BACKEND_DAI_AFE_PCM_RX,
  8590. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8591. msm_routing_put_audio_mixer),
  8592. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8593. MSM_BACKEND_DAI_AFE_PCM_RX,
  8594. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8595. msm_routing_put_audio_mixer),
  8596. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8597. MSM_BACKEND_DAI_AFE_PCM_RX,
  8598. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8599. msm_routing_put_audio_mixer),
  8600. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8601. MSM_BACKEND_DAI_AFE_PCM_RX,
  8602. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8603. msm_routing_put_audio_mixer),
  8604. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8605. MSM_BACKEND_DAI_AFE_PCM_RX,
  8606. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8607. msm_routing_put_audio_mixer),
  8608. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8609. MSM_BACKEND_DAI_AFE_PCM_RX,
  8610. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8611. msm_routing_put_audio_mixer),
  8612. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8613. MSM_BACKEND_DAI_AFE_PCM_RX,
  8614. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8615. msm_routing_put_audio_mixer),
  8616. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8617. MSM_BACKEND_DAI_AFE_PCM_RX,
  8618. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8619. msm_routing_put_audio_mixer),
  8620. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8621. MSM_BACKEND_DAI_AFE_PCM_RX,
  8622. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8623. msm_routing_put_audio_mixer),
  8624. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8625. MSM_BACKEND_DAI_AFE_PCM_RX,
  8626. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8627. msm_routing_put_audio_mixer),
  8628. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8629. MSM_BACKEND_DAI_AFE_PCM_RX,
  8630. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8631. msm_routing_put_audio_mixer),
  8632. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8633. MSM_BACKEND_DAI_AFE_PCM_RX,
  8634. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8635. msm_routing_put_audio_mixer),
  8636. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8637. MSM_BACKEND_DAI_AFE_PCM_RX,
  8638. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8639. msm_routing_put_audio_mixer),
  8640. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8641. MSM_BACKEND_DAI_AFE_PCM_RX,
  8642. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8643. msm_routing_put_audio_mixer),
  8644. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8645. MSM_BACKEND_DAI_AFE_PCM_RX,
  8646. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8647. msm_routing_put_audio_mixer),
  8648. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8649. MSM_BACKEND_DAI_AFE_PCM_RX,
  8650. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8651. msm_routing_put_audio_mixer),
  8652. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8653. MSM_BACKEND_DAI_AFE_PCM_RX,
  8654. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8655. msm_routing_put_audio_mixer),
  8656. };
  8657. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8658. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8659. MSM_BACKEND_DAI_AUXPCM_RX,
  8660. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8661. msm_routing_put_audio_mixer),
  8662. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8663. MSM_BACKEND_DAI_AUXPCM_RX,
  8664. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8665. msm_routing_put_audio_mixer),
  8666. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8667. MSM_BACKEND_DAI_AUXPCM_RX,
  8668. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8669. msm_routing_put_audio_mixer),
  8670. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8671. MSM_BACKEND_DAI_AUXPCM_RX,
  8672. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8673. msm_routing_put_audio_mixer),
  8674. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8675. MSM_BACKEND_DAI_AUXPCM_RX,
  8676. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8677. msm_routing_put_audio_mixer),
  8678. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8679. MSM_BACKEND_DAI_AUXPCM_RX,
  8680. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8681. msm_routing_put_audio_mixer),
  8682. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8683. MSM_BACKEND_DAI_AUXPCM_RX,
  8684. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8685. msm_routing_put_audio_mixer),
  8686. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8687. MSM_BACKEND_DAI_AUXPCM_RX,
  8688. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8689. msm_routing_put_audio_mixer),
  8690. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8691. MSM_BACKEND_DAI_AUXPCM_RX,
  8692. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8693. msm_routing_put_audio_mixer),
  8694. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8695. MSM_BACKEND_DAI_AUXPCM_RX,
  8696. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8697. msm_routing_put_audio_mixer),
  8698. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8699. MSM_BACKEND_DAI_AUXPCM_RX,
  8700. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8701. msm_routing_put_audio_mixer),
  8702. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8703. MSM_BACKEND_DAI_AUXPCM_RX,
  8704. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8705. msm_routing_put_audio_mixer),
  8706. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_AUXPCM_RX,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_AUXPCM_RX,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_AUXPCM_RX,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_AUXPCM_RX,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_AUXPCM_RX,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_AUXPCM_RX,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_AUXPCM_RX,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_AUXPCM_RX,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_AUXPCM_RX,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_AUXPCM_RX,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_AUXPCM_RX,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_AUXPCM_RX,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. };
  8755. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8756. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8757. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8758. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8759. msm_routing_put_audio_mixer),
  8760. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8761. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8762. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8763. msm_routing_put_audio_mixer),
  8764. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8765. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8766. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8767. msm_routing_put_audio_mixer),
  8768. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8769. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8770. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8771. msm_routing_put_audio_mixer),
  8772. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8773. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8774. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8775. msm_routing_put_audio_mixer),
  8776. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8777. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8778. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8779. msm_routing_put_audio_mixer),
  8780. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8781. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8782. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8783. msm_routing_put_audio_mixer),
  8784. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8785. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8786. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8787. msm_routing_put_audio_mixer),
  8788. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8789. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8790. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8791. msm_routing_put_audio_mixer),
  8792. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8793. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8794. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8795. msm_routing_put_audio_mixer),
  8796. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8797. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8798. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8799. msm_routing_put_audio_mixer),
  8800. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8801. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8802. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8803. msm_routing_put_audio_mixer),
  8804. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8805. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8806. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8807. msm_routing_put_audio_mixer),
  8808. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8809. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8810. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8811. msm_routing_put_audio_mixer),
  8812. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8813. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8814. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8815. msm_routing_put_audio_mixer),
  8816. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8817. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8818. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8819. msm_routing_put_audio_mixer),
  8820. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8821. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8822. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8823. msm_routing_put_audio_mixer),
  8824. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8845. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8846. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8847. msm_routing_put_audio_mixer),
  8848. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8849. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8850. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8851. msm_routing_put_audio_mixer),
  8852. };
  8853. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8854. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8855. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8856. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8857. msm_routing_put_audio_mixer),
  8858. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8859. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8860. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8861. msm_routing_put_audio_mixer),
  8862. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8863. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8864. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8865. msm_routing_put_audio_mixer),
  8866. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8867. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8868. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8869. msm_routing_put_audio_mixer),
  8870. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8871. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8872. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8873. msm_routing_put_audio_mixer),
  8874. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8875. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8876. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8877. msm_routing_put_audio_mixer),
  8878. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8879. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8880. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8881. msm_routing_put_audio_mixer),
  8882. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8883. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8884. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8885. msm_routing_put_audio_mixer),
  8886. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8887. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8888. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8889. msm_routing_put_audio_mixer),
  8890. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8915. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8916. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8917. msm_routing_put_audio_mixer),
  8918. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8919. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8920. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8921. msm_routing_put_audio_mixer),
  8922. };
  8923. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8924. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8925. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8927. msm_routing_put_audio_mixer),
  8928. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8929. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8930. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8931. msm_routing_put_audio_mixer),
  8932. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8933. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8934. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8935. msm_routing_put_audio_mixer),
  8936. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8937. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8938. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8939. msm_routing_put_audio_mixer),
  8940. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8941. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8942. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8943. msm_routing_put_audio_mixer),
  8944. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8945. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8947. msm_routing_put_audio_mixer),
  8948. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8949. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8950. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8951. msm_routing_put_audio_mixer),
  8952. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8953. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8954. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8955. msm_routing_put_audio_mixer),
  8956. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8957. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8958. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8959. msm_routing_put_audio_mixer),
  8960. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8961. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8962. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8963. msm_routing_put_audio_mixer),
  8964. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8965. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8966. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8967. msm_routing_put_audio_mixer),
  8968. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8969. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8970. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8971. msm_routing_put_audio_mixer),
  8972. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8973. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8974. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8975. msm_routing_put_audio_mixer),
  8976. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8977. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8978. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8979. msm_routing_put_audio_mixer),
  8980. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8981. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8982. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8983. msm_routing_put_audio_mixer),
  8984. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8985. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8986. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8987. msm_routing_put_audio_mixer),
  8988. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8989. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8990. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8991. msm_routing_put_audio_mixer),
  8992. };
  8993. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8994. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8995. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8996. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8997. msm_routing_put_audio_mixer),
  8998. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8999. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9000. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9001. msm_routing_put_audio_mixer),
  9002. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9003. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9004. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9005. msm_routing_put_audio_mixer),
  9006. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9007. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9008. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9009. msm_routing_put_audio_mixer),
  9010. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9011. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9012. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9013. msm_routing_put_audio_mixer),
  9014. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9015. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9016. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9017. msm_routing_put_audio_mixer),
  9018. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9019. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9020. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9021. msm_routing_put_audio_mixer),
  9022. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9023. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9024. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9025. msm_routing_put_audio_mixer),
  9026. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9027. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9028. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9029. msm_routing_put_audio_mixer),
  9030. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9031. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9032. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9033. msm_routing_put_audio_mixer),
  9034. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9035. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9036. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9037. msm_routing_put_audio_mixer),
  9038. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9039. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9040. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9041. msm_routing_put_audio_mixer),
  9042. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9043. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9044. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9045. msm_routing_put_audio_mixer),
  9046. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. };
  9063. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  9064. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9065. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9066. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9067. msm_routing_put_audio_mixer),
  9068. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9069. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9070. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9071. msm_routing_put_audio_mixer),
  9072. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9073. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9074. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9075. msm_routing_put_audio_mixer),
  9076. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9077. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9078. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9079. msm_routing_put_audio_mixer),
  9080. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9081. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9082. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9083. msm_routing_put_audio_mixer),
  9084. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9085. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9086. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9087. msm_routing_put_audio_mixer),
  9088. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9089. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9090. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9091. msm_routing_put_audio_mixer),
  9092. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9093. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9094. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9095. msm_routing_put_audio_mixer),
  9096. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9097. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9098. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9099. msm_routing_put_audio_mixer),
  9100. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9101. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9102. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9103. msm_routing_put_audio_mixer),
  9104. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9105. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9106. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9107. msm_routing_put_audio_mixer),
  9108. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9109. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9110. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9111. msm_routing_put_audio_mixer),
  9112. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9113. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9114. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9115. msm_routing_put_audio_mixer),
  9116. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9117. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9118. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9119. msm_routing_put_audio_mixer),
  9120. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9121. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9122. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9123. msm_routing_put_audio_mixer),
  9124. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9125. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9126. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9127. msm_routing_put_audio_mixer),
  9128. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9129. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9130. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9131. msm_routing_put_audio_mixer),
  9132. };
  9133. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  9134. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9135. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9136. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9137. msm_routing_put_audio_mixer),
  9138. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9139. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9140. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9141. msm_routing_put_audio_mixer),
  9142. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9143. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9144. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9145. msm_routing_put_audio_mixer),
  9146. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9147. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9148. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9149. msm_routing_put_audio_mixer),
  9150. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9151. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9152. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9153. msm_routing_put_audio_mixer),
  9154. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9155. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9156. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9157. msm_routing_put_audio_mixer),
  9158. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9159. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9160. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9161. msm_routing_put_audio_mixer),
  9162. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9163. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9164. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9165. msm_routing_put_audio_mixer),
  9166. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9167. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9168. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9169. msm_routing_put_audio_mixer),
  9170. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9171. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9172. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9173. msm_routing_put_audio_mixer),
  9174. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9175. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9176. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9177. msm_routing_put_audio_mixer),
  9178. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9179. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9180. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9181. msm_routing_put_audio_mixer),
  9182. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9183. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9184. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9185. msm_routing_put_audio_mixer),
  9186. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9187. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9188. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9189. msm_routing_put_audio_mixer),
  9190. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9191. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9192. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9193. msm_routing_put_audio_mixer),
  9194. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9195. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9196. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9197. msm_routing_put_audio_mixer),
  9198. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9199. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9200. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9201. msm_routing_put_audio_mixer),
  9202. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9203. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9204. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9205. msm_routing_put_audio_mixer),
  9206. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9207. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9208. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9209. msm_routing_put_audio_mixer),
  9210. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9211. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9212. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9213. msm_routing_put_audio_mixer),
  9214. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9215. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9216. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9217. msm_routing_put_audio_mixer),
  9218. };
  9219. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9220. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9221. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9222. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9223. msm_routing_put_audio_mixer),
  9224. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9225. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9227. msm_routing_put_audio_mixer),
  9228. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9229. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9230. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9231. msm_routing_put_audio_mixer),
  9232. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9233. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9234. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9235. msm_routing_put_audio_mixer),
  9236. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9237. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9238. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9239. msm_routing_put_audio_mixer),
  9240. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9241. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9242. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9243. msm_routing_put_audio_mixer),
  9244. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9245. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9246. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9247. msm_routing_put_audio_mixer),
  9248. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9249. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9250. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9251. msm_routing_put_audio_mixer),
  9252. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9253. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9254. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9255. msm_routing_put_audio_mixer),
  9256. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9257. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9258. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9259. msm_routing_put_audio_mixer),
  9260. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9261. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9262. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9263. msm_routing_put_audio_mixer),
  9264. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9265. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9266. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9267. msm_routing_put_audio_mixer),
  9268. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9269. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9270. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9271. msm_routing_put_audio_mixer),
  9272. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9273. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9274. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9275. msm_routing_put_audio_mixer),
  9276. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9277. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9278. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9279. msm_routing_put_audio_mixer),
  9280. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9281. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9282. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9283. msm_routing_put_audio_mixer),
  9284. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9285. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9286. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9287. msm_routing_put_audio_mixer),
  9288. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9289. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9290. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9291. msm_routing_put_audio_mixer),
  9292. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9293. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9294. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9295. msm_routing_put_audio_mixer),
  9296. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9297. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9298. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9299. msm_routing_put_audio_mixer),
  9300. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9301. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9302. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9303. msm_routing_put_audio_mixer),
  9304. };
  9305. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9306. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9307. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9308. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9309. msm_routing_put_audio_mixer),
  9310. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9311. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9312. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9313. msm_routing_put_audio_mixer),
  9314. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9315. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9316. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9317. msm_routing_put_audio_mixer),
  9318. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9319. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9320. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9321. msm_routing_put_audio_mixer),
  9322. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9323. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9324. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9325. msm_routing_put_audio_mixer),
  9326. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9327. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9328. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9329. msm_routing_put_audio_mixer),
  9330. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9331. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9332. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9333. msm_routing_put_audio_mixer),
  9334. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9335. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9336. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9337. msm_routing_put_audio_mixer),
  9338. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9339. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9340. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9341. msm_routing_put_audio_mixer),
  9342. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9343. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9344. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9345. msm_routing_put_audio_mixer),
  9346. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9347. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9348. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9349. msm_routing_put_audio_mixer),
  9350. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9351. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9352. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9353. msm_routing_put_audio_mixer),
  9354. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9367. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9368. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9369. msm_routing_put_audio_mixer),
  9370. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9371. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9372. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9373. msm_routing_put_audio_mixer),
  9374. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9375. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9376. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9377. msm_routing_put_audio_mixer),
  9378. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9379. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9380. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9381. msm_routing_put_audio_mixer),
  9382. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9383. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9384. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9385. msm_routing_put_audio_mixer),
  9386. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9387. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9388. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9389. msm_routing_put_audio_mixer),
  9390. };
  9391. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9392. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9393. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9394. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9395. msm_routing_put_audio_mixer),
  9396. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9397. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9398. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9399. msm_routing_put_audio_mixer),
  9400. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9401. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9402. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9403. msm_routing_put_audio_mixer),
  9404. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9405. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9406. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9407. msm_routing_put_audio_mixer),
  9408. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9409. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9410. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9411. msm_routing_put_audio_mixer),
  9412. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9413. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9414. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9415. msm_routing_put_audio_mixer),
  9416. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9417. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9418. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9419. msm_routing_put_audio_mixer),
  9420. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9421. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9422. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9423. msm_routing_put_audio_mixer),
  9424. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9425. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9426. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9427. msm_routing_put_audio_mixer),
  9428. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9429. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9430. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9431. msm_routing_put_audio_mixer),
  9432. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9433. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9434. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9435. msm_routing_put_audio_mixer),
  9436. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9437. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9438. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9439. msm_routing_put_audio_mixer),
  9440. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9441. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9442. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9443. msm_routing_put_audio_mixer),
  9444. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9445. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9446. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9447. msm_routing_put_audio_mixer),
  9448. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9449. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9450. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9451. msm_routing_put_audio_mixer),
  9452. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9453. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9454. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9455. msm_routing_put_audio_mixer),
  9456. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9457. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9458. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9459. msm_routing_put_audio_mixer),
  9460. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9461. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9462. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9463. msm_routing_put_audio_mixer),
  9464. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9465. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9466. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9467. msm_routing_put_audio_mixer),
  9468. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9469. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9470. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9471. msm_routing_put_audio_mixer),
  9472. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9473. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9474. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9475. msm_routing_put_audio_mixer),
  9476. };
  9477. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9478. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9479. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9480. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9481. msm_routing_put_audio_mixer),
  9482. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9483. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9484. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9485. msm_routing_put_audio_mixer),
  9486. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9487. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9488. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9489. msm_routing_put_audio_mixer),
  9490. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9491. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9492. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9493. msm_routing_put_audio_mixer),
  9494. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9495. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9496. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9497. msm_routing_put_audio_mixer),
  9498. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9499. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9500. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9501. msm_routing_put_audio_mixer),
  9502. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9503. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9504. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9505. msm_routing_put_audio_mixer),
  9506. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9507. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9508. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9509. msm_routing_put_audio_mixer),
  9510. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9511. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9512. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9513. msm_routing_put_audio_mixer),
  9514. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9515. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9516. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9517. msm_routing_put_audio_mixer),
  9518. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9519. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9520. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9521. msm_routing_put_audio_mixer),
  9522. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9523. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9524. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9525. msm_routing_put_audio_mixer),
  9526. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9527. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9528. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9529. msm_routing_put_audio_mixer),
  9530. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9531. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9532. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9533. msm_routing_put_audio_mixer),
  9534. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9535. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9536. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9537. msm_routing_put_audio_mixer),
  9538. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9539. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9540. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9541. msm_routing_put_audio_mixer),
  9542. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9543. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9544. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9545. msm_routing_put_audio_mixer),
  9546. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9547. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9548. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9549. msm_routing_put_audio_mixer),
  9550. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9551. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9552. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9553. msm_routing_put_audio_mixer),
  9554. };
  9555. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9556. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9557. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9558. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9559. msm_routing_put_audio_mixer),
  9560. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9561. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9562. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9563. msm_routing_put_audio_mixer),
  9564. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9565. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9566. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9567. msm_routing_put_audio_mixer),
  9568. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9569. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9570. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9571. msm_routing_put_audio_mixer),
  9572. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9573. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9574. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9575. msm_routing_put_audio_mixer),
  9576. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9577. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9578. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9579. msm_routing_put_audio_mixer),
  9580. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9581. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9582. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9583. msm_routing_put_audio_mixer),
  9584. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9585. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9586. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9587. msm_routing_put_audio_mixer),
  9588. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9589. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9590. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9591. msm_routing_put_audio_mixer),
  9592. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9593. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9594. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9595. msm_routing_put_audio_mixer),
  9596. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9597. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9598. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9599. msm_routing_put_audio_mixer),
  9600. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9601. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9602. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9603. msm_routing_put_audio_mixer),
  9604. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9605. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9606. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9607. msm_routing_put_audio_mixer),
  9608. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9609. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9610. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9611. msm_routing_put_audio_mixer),
  9612. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9613. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9614. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9615. msm_routing_put_audio_mixer),
  9616. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9617. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9618. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9619. msm_routing_put_audio_mixer),
  9620. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9621. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9622. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9623. msm_routing_put_audio_mixer),
  9624. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9625. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9626. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9627. msm_routing_put_audio_mixer),
  9628. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9629. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9630. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9631. msm_routing_put_audio_mixer),
  9632. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9633. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9634. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9635. msm_routing_put_audio_mixer),
  9636. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9637. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9638. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9639. msm_routing_put_audio_mixer),
  9640. };
  9641. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9642. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9643. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9644. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9645. msm_routing_put_audio_mixer),
  9646. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9647. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9648. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9649. msm_routing_put_audio_mixer),
  9650. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9651. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9652. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9653. msm_routing_put_audio_mixer),
  9654. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9655. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9656. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9657. msm_routing_put_audio_mixer),
  9658. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9659. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9660. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9661. msm_routing_put_audio_mixer),
  9662. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9663. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9664. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9665. msm_routing_put_audio_mixer),
  9666. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9667. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9668. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9669. msm_routing_put_audio_mixer),
  9670. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9671. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9672. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9673. msm_routing_put_audio_mixer),
  9674. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9675. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9676. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9677. msm_routing_put_audio_mixer),
  9678. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9679. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9681. msm_routing_put_audio_mixer),
  9682. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9683. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9684. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9685. msm_routing_put_audio_mixer),
  9686. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9687. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9688. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9689. msm_routing_put_audio_mixer),
  9690. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9691. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9692. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9693. msm_routing_put_audio_mixer),
  9694. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9695. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9696. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9697. msm_routing_put_audio_mixer),
  9698. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9699. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9700. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9701. msm_routing_put_audio_mixer),
  9702. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9703. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9704. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9705. msm_routing_put_audio_mixer),
  9706. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9707. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9708. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9709. msm_routing_put_audio_mixer),
  9710. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9711. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9712. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9713. msm_routing_put_audio_mixer),
  9714. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9715. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9716. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9717. msm_routing_put_audio_mixer),
  9718. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9719. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9720. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9721. msm_routing_put_audio_mixer),
  9722. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9723. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9724. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9725. msm_routing_put_audio_mixer),
  9726. };
  9727. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9728. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9729. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9730. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9731. msm_routing_put_audio_mixer),
  9732. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9733. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9734. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9735. msm_routing_put_audio_mixer),
  9736. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9737. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9738. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9739. msm_routing_put_audio_mixer),
  9740. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9741. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9742. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9743. msm_routing_put_audio_mixer),
  9744. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9745. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9746. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9747. msm_routing_put_audio_mixer),
  9748. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9749. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9750. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9751. msm_routing_put_audio_mixer),
  9752. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9753. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9754. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9755. msm_routing_put_audio_mixer),
  9756. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9757. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9758. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9759. msm_routing_put_audio_mixer),
  9760. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9761. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9762. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9763. msm_routing_put_audio_mixer),
  9764. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9765. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9766. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9767. msm_routing_put_audio_mixer),
  9768. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9769. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9770. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9771. msm_routing_put_audio_mixer),
  9772. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9773. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9774. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9775. msm_routing_put_audio_mixer),
  9776. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9777. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9778. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9779. msm_routing_put_audio_mixer),
  9780. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9781. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9782. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9783. msm_routing_put_audio_mixer),
  9784. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9785. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9786. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9787. msm_routing_put_audio_mixer),
  9788. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9789. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9790. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9791. msm_routing_put_audio_mixer),
  9792. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9793. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9794. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9795. msm_routing_put_audio_mixer),
  9796. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9797. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9798. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9799. msm_routing_put_audio_mixer),
  9800. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9801. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9802. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9803. msm_routing_put_audio_mixer),
  9804. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9805. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9806. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9807. msm_routing_put_audio_mixer),
  9808. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9809. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9810. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9811. msm_routing_put_audio_mixer),
  9812. };
  9813. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9814. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9815. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9816. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9817. msm_routing_put_audio_mixer),
  9818. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9819. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9820. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9821. msm_routing_put_audio_mixer),
  9822. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9823. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9824. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9825. msm_routing_put_audio_mixer),
  9826. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9827. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9828. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9829. msm_routing_put_audio_mixer),
  9830. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9831. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9833. msm_routing_put_audio_mixer),
  9834. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9835. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9836. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9837. msm_routing_put_audio_mixer),
  9838. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9839. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9840. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9841. msm_routing_put_audio_mixer),
  9842. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9843. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9844. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9845. msm_routing_put_audio_mixer),
  9846. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9847. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9848. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9849. msm_routing_put_audio_mixer),
  9850. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9851. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9852. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9853. msm_routing_put_audio_mixer),
  9854. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9860. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9861. msm_routing_put_audio_mixer),
  9862. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9864. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9865. msm_routing_put_audio_mixer),
  9866. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9868. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9869. msm_routing_put_audio_mixer),
  9870. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9872. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9873. msm_routing_put_audio_mixer),
  9874. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9876. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9877. msm_routing_put_audio_mixer),
  9878. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9879. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9880. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9881. msm_routing_put_audio_mixer),
  9882. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9884. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9885. msm_routing_put_audio_mixer),
  9886. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9887. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9888. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9889. msm_routing_put_audio_mixer),
  9890. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9891. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9892. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9893. msm_routing_put_audio_mixer),
  9894. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9895. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9896. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9897. msm_routing_put_audio_mixer),
  9898. };
  9899. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9900. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9901. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9902. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9903. msm_routing_put_audio_mixer),
  9904. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9905. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9906. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9907. msm_routing_put_audio_mixer),
  9908. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9909. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9910. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9911. msm_routing_put_audio_mixer),
  9912. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9913. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9914. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9915. msm_routing_put_audio_mixer),
  9916. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9917. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9918. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9919. msm_routing_put_audio_mixer),
  9920. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9921. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9922. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9923. msm_routing_put_audio_mixer),
  9924. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9925. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9926. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9927. msm_routing_put_audio_mixer),
  9928. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9929. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9930. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9931. msm_routing_put_audio_mixer),
  9932. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9934. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9935. msm_routing_put_audio_mixer),
  9936. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9938. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9939. msm_routing_put_audio_mixer),
  9940. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9942. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9943. msm_routing_put_audio_mixer),
  9944. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9945. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9946. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9947. msm_routing_put_audio_mixer),
  9948. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9949. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9950. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9951. msm_routing_put_audio_mixer),
  9952. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9953. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9954. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9955. msm_routing_put_audio_mixer),
  9956. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9957. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9958. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9959. msm_routing_put_audio_mixer),
  9960. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9961. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9962. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9963. msm_routing_put_audio_mixer),
  9964. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9965. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9966. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9967. msm_routing_put_audio_mixer),
  9968. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9969. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9970. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9971. msm_routing_put_audio_mixer),
  9972. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9973. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9974. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9975. msm_routing_put_audio_mixer),
  9976. };
  9977. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9978. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9979. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9980. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9981. msm_routing_put_audio_mixer),
  9982. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9983. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9984. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9985. msm_routing_put_audio_mixer),
  9986. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9987. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9988. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9989. msm_routing_put_audio_mixer),
  9990. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9991. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9992. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9993. msm_routing_put_audio_mixer),
  9994. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9995. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9996. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9997. msm_routing_put_audio_mixer),
  9998. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9999. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10000. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10001. msm_routing_put_audio_mixer),
  10002. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10003. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10004. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10005. msm_routing_put_audio_mixer),
  10006. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10007. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10008. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10009. msm_routing_put_audio_mixer),
  10010. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10011. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10012. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10013. msm_routing_put_audio_mixer),
  10014. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10015. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10016. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10017. msm_routing_put_audio_mixer),
  10018. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10019. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10020. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10021. msm_routing_put_audio_mixer),
  10022. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10023. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10024. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10025. msm_routing_put_audio_mixer),
  10026. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10027. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10028. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10029. msm_routing_put_audio_mixer),
  10030. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10031. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10032. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10033. msm_routing_put_audio_mixer),
  10034. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10035. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10036. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10037. msm_routing_put_audio_mixer),
  10038. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10039. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10040. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10041. msm_routing_put_audio_mixer),
  10042. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10043. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10044. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10045. msm_routing_put_audio_mixer),
  10046. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10047. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10048. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10049. msm_routing_put_audio_mixer),
  10050. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10051. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10052. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10053. msm_routing_put_audio_mixer),
  10054. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10055. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10056. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10057. msm_routing_put_audio_mixer),
  10058. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10059. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10060. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10061. msm_routing_put_audio_mixer),
  10062. };
  10063. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  10064. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10065. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10066. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10067. msm_routing_put_audio_mixer),
  10068. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10069. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10070. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10071. msm_routing_put_audio_mixer),
  10072. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10073. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10074. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10075. msm_routing_put_audio_mixer),
  10076. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10077. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10078. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10079. msm_routing_put_audio_mixer),
  10080. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10081. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10082. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10083. msm_routing_put_audio_mixer),
  10084. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10085. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10086. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10087. msm_routing_put_audio_mixer),
  10088. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10089. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10090. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10091. msm_routing_put_audio_mixer),
  10092. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10093. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10094. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10095. msm_routing_put_audio_mixer),
  10096. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10097. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10098. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10099. msm_routing_put_audio_mixer),
  10100. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10101. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10102. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10103. msm_routing_put_audio_mixer),
  10104. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10105. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10106. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10107. msm_routing_put_audio_mixer),
  10108. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10109. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10110. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10111. msm_routing_put_audio_mixer),
  10112. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10113. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10114. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10115. msm_routing_put_audio_mixer),
  10116. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10117. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10118. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10119. msm_routing_put_audio_mixer),
  10120. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10121. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10122. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10123. msm_routing_put_audio_mixer),
  10124. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10125. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10126. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10127. msm_routing_put_audio_mixer),
  10128. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10129. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10130. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10131. msm_routing_put_audio_mixer),
  10132. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10133. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10134. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10135. msm_routing_put_audio_mixer),
  10136. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10137. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10138. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10139. msm_routing_put_audio_mixer),
  10140. };
  10141. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  10142. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10143. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10144. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10145. msm_routing_put_audio_mixer),
  10146. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10147. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10148. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10149. msm_routing_put_audio_mixer),
  10150. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10151. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10152. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10153. msm_routing_put_audio_mixer),
  10154. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10155. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10156. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10157. msm_routing_put_audio_mixer),
  10158. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10159. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10160. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10161. msm_routing_put_audio_mixer),
  10162. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10163. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10164. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10165. msm_routing_put_audio_mixer),
  10166. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10167. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10168. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10169. msm_routing_put_audio_mixer),
  10170. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10171. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10172. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10173. msm_routing_put_audio_mixer),
  10174. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10175. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10176. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10177. msm_routing_put_audio_mixer),
  10178. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10179. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10180. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10181. msm_routing_put_audio_mixer),
  10182. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10183. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10184. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10185. msm_routing_put_audio_mixer),
  10186. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10187. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10188. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10189. msm_routing_put_audio_mixer),
  10190. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10192. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10193. msm_routing_put_audio_mixer),
  10194. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10195. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10196. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10197. msm_routing_put_audio_mixer),
  10198. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10199. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10200. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10201. msm_routing_put_audio_mixer),
  10202. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10203. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10204. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10205. msm_routing_put_audio_mixer),
  10206. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10207. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10208. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10209. msm_routing_put_audio_mixer),
  10210. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10211. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10212. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10213. msm_routing_put_audio_mixer),
  10214. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10215. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10216. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10217. msm_routing_put_audio_mixer),
  10218. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10219. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10220. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10221. msm_routing_put_audio_mixer),
  10222. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10223. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10224. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10225. msm_routing_put_audio_mixer),
  10226. };
  10227. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  10228. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10229. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10230. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10231. msm_routing_put_audio_mixer),
  10232. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10233. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10235. msm_routing_put_audio_mixer),
  10236. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10237. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10238. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10239. msm_routing_put_audio_mixer),
  10240. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10241. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10242. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10243. msm_routing_put_audio_mixer),
  10244. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10245. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10246. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10247. msm_routing_put_audio_mixer),
  10248. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10249. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10250. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10251. msm_routing_put_audio_mixer),
  10252. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10253. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10254. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10255. msm_routing_put_audio_mixer),
  10256. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10257. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10258. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10259. msm_routing_put_audio_mixer),
  10260. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10261. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10262. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10263. msm_routing_put_audio_mixer),
  10264. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10265. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10266. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10267. msm_routing_put_audio_mixer),
  10268. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10269. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10270. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10271. msm_routing_put_audio_mixer),
  10272. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10273. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10274. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10275. msm_routing_put_audio_mixer),
  10276. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10277. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10278. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10279. msm_routing_put_audio_mixer),
  10280. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10281. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10282. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10283. msm_routing_put_audio_mixer),
  10284. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10285. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10286. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10287. msm_routing_put_audio_mixer),
  10288. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10289. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10291. msm_routing_put_audio_mixer),
  10292. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10293. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10294. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10295. msm_routing_put_audio_mixer),
  10296. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10297. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10298. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10299. msm_routing_put_audio_mixer),
  10300. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10301. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10302. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10303. msm_routing_put_audio_mixer),
  10304. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10305. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10306. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10307. msm_routing_put_audio_mixer),
  10308. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10309. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10310. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10311. msm_routing_put_audio_mixer),
  10312. };
  10313. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10314. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10315. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10316. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10317. msm_routing_put_audio_mixer),
  10318. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10319. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10320. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10321. msm_routing_put_audio_mixer),
  10322. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10323. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10324. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10325. msm_routing_put_audio_mixer),
  10326. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10327. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10328. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10329. msm_routing_put_audio_mixer),
  10330. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10331. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10332. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10333. msm_routing_put_audio_mixer),
  10334. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10335. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10336. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10337. msm_routing_put_audio_mixer),
  10338. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10339. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10340. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10341. msm_routing_put_audio_mixer),
  10342. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10343. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10344. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10345. msm_routing_put_audio_mixer),
  10346. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10347. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10348. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10349. msm_routing_put_audio_mixer),
  10350. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10351. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10353. msm_routing_put_audio_mixer),
  10354. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10355. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10356. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10357. msm_routing_put_audio_mixer),
  10358. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10359. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10360. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10361. msm_routing_put_audio_mixer),
  10362. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10363. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10364. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10365. msm_routing_put_audio_mixer),
  10366. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10367. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10368. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10369. msm_routing_put_audio_mixer),
  10370. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10371. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10372. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10373. msm_routing_put_audio_mixer),
  10374. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10375. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10376. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10377. msm_routing_put_audio_mixer),
  10378. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10379. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10380. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10381. msm_routing_put_audio_mixer),
  10382. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10383. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10384. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10385. msm_routing_put_audio_mixer),
  10386. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10387. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10388. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10389. msm_routing_put_audio_mixer),
  10390. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10391. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10392. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10393. msm_routing_put_audio_mixer),
  10394. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10395. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10396. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10397. msm_routing_put_audio_mixer),
  10398. };
  10399. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10400. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10401. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10402. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10403. msm_routing_put_audio_mixer),
  10404. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10405. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10406. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10407. msm_routing_put_audio_mixer),
  10408. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10409. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10410. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10411. msm_routing_put_audio_mixer),
  10412. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10413. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10414. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10415. msm_routing_put_audio_mixer),
  10416. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10417. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10418. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10419. msm_routing_put_audio_mixer),
  10420. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10421. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10422. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10423. msm_routing_put_audio_mixer),
  10424. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10425. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10426. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10427. msm_routing_put_audio_mixer),
  10428. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10429. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10430. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10431. msm_routing_put_audio_mixer),
  10432. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10433. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10434. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10435. msm_routing_put_audio_mixer),
  10436. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10437. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10438. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10439. msm_routing_put_audio_mixer),
  10440. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10441. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10442. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10443. msm_routing_put_audio_mixer),
  10444. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10445. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10446. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10447. msm_routing_put_audio_mixer),
  10448. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10449. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10450. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10451. msm_routing_put_audio_mixer),
  10452. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10453. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10454. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10455. msm_routing_put_audio_mixer),
  10456. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10457. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10458. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10459. msm_routing_put_audio_mixer),
  10460. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10461. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10462. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10463. msm_routing_put_audio_mixer),
  10464. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10465. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10466. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10467. msm_routing_put_audio_mixer),
  10468. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10470. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10471. msm_routing_put_audio_mixer),
  10472. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10473. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10474. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10475. msm_routing_put_audio_mixer),
  10476. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10477. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10478. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10479. msm_routing_put_audio_mixer),
  10480. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10481. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10482. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10483. msm_routing_put_audio_mixer),
  10484. };
  10485. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10486. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10487. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10488. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10489. msm_routing_put_audio_mixer),
  10490. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10491. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10492. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10493. msm_routing_put_audio_mixer),
  10494. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10495. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10496. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10497. msm_routing_put_audio_mixer),
  10498. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10499. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10500. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10501. msm_routing_put_audio_mixer),
  10502. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10503. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10504. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10505. msm_routing_put_audio_mixer),
  10506. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10507. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10508. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10509. msm_routing_put_audio_mixer),
  10510. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10511. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10512. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10513. msm_routing_put_audio_mixer),
  10514. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10515. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10516. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10517. msm_routing_put_audio_mixer),
  10518. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10519. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10520. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10521. msm_routing_put_audio_mixer),
  10522. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10523. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10524. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10525. msm_routing_put_audio_mixer),
  10526. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10527. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10528. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10529. msm_routing_put_audio_mixer),
  10530. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10531. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10532. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10533. msm_routing_put_audio_mixer),
  10534. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10535. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10536. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10537. msm_routing_put_audio_mixer),
  10538. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10539. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10540. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10541. msm_routing_put_audio_mixer),
  10542. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10543. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10544. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10545. msm_routing_put_audio_mixer),
  10546. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10547. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10548. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10549. msm_routing_put_audio_mixer),
  10550. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10551. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10552. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10553. msm_routing_put_audio_mixer),
  10554. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10555. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10556. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10557. msm_routing_put_audio_mixer),
  10558. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10559. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10560. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10561. msm_routing_put_audio_mixer),
  10562. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10563. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10564. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10565. msm_routing_put_audio_mixer),
  10566. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10567. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10568. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10569. msm_routing_put_audio_mixer),
  10570. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10571. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10572. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10573. msm_routing_put_audio_mixer),
  10574. };
  10575. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10576. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10577. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10578. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10579. msm_routing_put_audio_mixer),
  10580. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10581. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10582. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10583. msm_routing_put_audio_mixer),
  10584. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10585. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10586. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10587. msm_routing_put_audio_mixer),
  10588. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10589. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10590. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10591. msm_routing_put_audio_mixer),
  10592. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10593. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10594. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10595. msm_routing_put_audio_mixer),
  10596. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10597. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10598. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10599. msm_routing_put_audio_mixer),
  10600. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10601. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10602. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10603. msm_routing_put_audio_mixer),
  10604. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10605. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10606. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10607. msm_routing_put_audio_mixer),
  10608. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10609. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10610. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10611. msm_routing_put_audio_mixer),
  10612. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10613. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10614. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10615. msm_routing_put_audio_mixer),
  10616. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10617. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10618. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10619. msm_routing_put_audio_mixer),
  10620. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10621. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10622. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10623. msm_routing_put_audio_mixer),
  10624. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10625. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10626. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10627. msm_routing_put_audio_mixer),
  10628. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10629. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10630. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10631. msm_routing_put_audio_mixer),
  10632. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10633. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10634. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10635. msm_routing_put_audio_mixer),
  10636. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10637. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10638. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10639. msm_routing_put_audio_mixer),
  10640. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10641. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10642. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10643. msm_routing_put_audio_mixer),
  10644. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10645. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10646. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10647. msm_routing_put_audio_mixer),
  10648. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10649. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10650. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10651. msm_routing_put_audio_mixer),
  10652. };
  10653. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10654. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10655. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10656. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10657. msm_routing_put_audio_mixer),
  10658. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10659. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10660. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10661. msm_routing_put_audio_mixer),
  10662. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10663. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10664. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10665. msm_routing_put_audio_mixer),
  10666. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10667. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10668. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10669. msm_routing_put_audio_mixer),
  10670. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10671. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10672. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10673. msm_routing_put_audio_mixer),
  10674. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10675. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10676. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10677. msm_routing_put_audio_mixer),
  10678. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10679. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10680. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10681. msm_routing_put_audio_mixer),
  10682. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10683. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10684. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10685. msm_routing_put_audio_mixer),
  10686. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10687. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10688. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10689. msm_routing_put_audio_mixer),
  10690. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10691. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10692. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10693. msm_routing_put_audio_mixer),
  10694. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10696. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10697. msm_routing_put_audio_mixer),
  10698. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10700. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10701. msm_routing_put_audio_mixer),
  10702. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10704. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10705. msm_routing_put_audio_mixer),
  10706. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10707. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10708. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10709. msm_routing_put_audio_mixer),
  10710. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10711. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10712. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10713. msm_routing_put_audio_mixer),
  10714. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10716. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10717. msm_routing_put_audio_mixer),
  10718. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10719. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10720. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10721. msm_routing_put_audio_mixer),
  10722. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10723. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10724. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10725. msm_routing_put_audio_mixer),
  10726. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10727. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10728. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10729. msm_routing_put_audio_mixer),
  10730. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10731. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10732. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10733. msm_routing_put_audio_mixer),
  10734. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10735. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10736. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10737. msm_routing_put_audio_mixer),
  10738. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10740. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10741. msm_routing_put_audio_mixer),
  10742. };
  10743. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10744. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10745. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10746. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10747. msm_routing_put_audio_mixer),
  10748. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10749. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10750. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10751. msm_routing_put_audio_mixer),
  10752. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10753. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10754. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10755. msm_routing_put_audio_mixer),
  10756. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10757. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10758. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10759. msm_routing_put_audio_mixer),
  10760. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10761. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10762. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10763. msm_routing_put_audio_mixer),
  10764. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10765. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10766. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10767. msm_routing_put_audio_mixer),
  10768. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10769. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10770. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10771. msm_routing_put_audio_mixer),
  10772. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10773. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10774. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10775. msm_routing_put_audio_mixer),
  10776. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10777. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10778. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10779. msm_routing_put_audio_mixer),
  10780. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10781. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10782. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10783. msm_routing_put_audio_mixer),
  10784. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10785. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10786. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10787. msm_routing_put_audio_mixer),
  10788. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10789. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10790. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10791. msm_routing_put_audio_mixer),
  10792. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10793. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10794. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10795. msm_routing_put_audio_mixer),
  10796. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10797. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10798. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10799. msm_routing_put_audio_mixer),
  10800. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10801. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10802. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10803. msm_routing_put_audio_mixer),
  10804. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10805. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10806. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10807. msm_routing_put_audio_mixer),
  10808. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10809. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10810. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10811. msm_routing_put_audio_mixer),
  10812. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10813. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10814. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10815. msm_routing_put_audio_mixer),
  10816. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10817. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10818. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10819. msm_routing_put_audio_mixer),
  10820. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10821. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10822. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10823. msm_routing_put_audio_mixer),
  10824. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10825. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10826. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10827. msm_routing_put_audio_mixer),
  10828. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10829. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10830. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10831. msm_routing_put_audio_mixer),
  10832. };
  10833. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10834. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10835. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10836. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10837. msm_routing_put_audio_mixer),
  10838. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10839. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10840. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10841. msm_routing_put_audio_mixer),
  10842. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10843. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10844. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10845. msm_routing_put_audio_mixer),
  10846. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10847. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10848. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10849. msm_routing_put_audio_mixer),
  10850. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10851. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10852. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10853. msm_routing_put_audio_mixer),
  10854. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10855. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10856. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10857. msm_routing_put_audio_mixer),
  10858. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10859. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10860. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10861. msm_routing_put_audio_mixer),
  10862. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10863. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10864. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10865. msm_routing_put_audio_mixer),
  10866. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10867. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10868. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10869. msm_routing_put_audio_mixer),
  10870. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10871. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10872. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10873. msm_routing_put_audio_mixer),
  10874. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10875. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10876. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10877. msm_routing_put_audio_mixer),
  10878. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10879. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10880. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10881. msm_routing_put_audio_mixer),
  10882. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10883. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10884. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10885. msm_routing_put_audio_mixer),
  10886. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10888. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10889. msm_routing_put_audio_mixer),
  10890. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10891. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10892. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10893. msm_routing_put_audio_mixer),
  10894. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10895. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10896. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10897. msm_routing_put_audio_mixer),
  10898. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10899. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10900. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10901. msm_routing_put_audio_mixer),
  10902. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10903. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10904. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10905. msm_routing_put_audio_mixer),
  10906. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10907. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10908. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10909. msm_routing_put_audio_mixer),
  10910. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10912. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10913. msm_routing_put_audio_mixer),
  10914. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10915. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10916. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10921. msm_routing_put_audio_mixer),
  10922. };
  10923. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10924. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10925. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10927. msm_routing_put_audio_mixer),
  10928. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10929. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10930. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10931. msm_routing_put_audio_mixer),
  10932. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10933. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10934. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10935. msm_routing_put_audio_mixer),
  10936. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10937. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10938. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10939. msm_routing_put_audio_mixer),
  10940. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10941. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10942. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10943. msm_routing_put_audio_mixer),
  10944. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10945. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10947. msm_routing_put_audio_mixer),
  10948. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10949. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10950. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10951. msm_routing_put_audio_mixer),
  10952. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10953. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10954. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10955. msm_routing_put_audio_mixer),
  10956. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10958. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10959. msm_routing_put_audio_mixer),
  10960. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10962. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10963. msm_routing_put_audio_mixer),
  10964. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10965. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10966. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10967. msm_routing_put_audio_mixer),
  10968. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10969. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10970. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10971. msm_routing_put_audio_mixer),
  10972. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10973. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10974. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10975. msm_routing_put_audio_mixer),
  10976. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10977. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10978. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10979. msm_routing_put_audio_mixer),
  10980. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10981. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10982. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10983. msm_routing_put_audio_mixer),
  10984. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10985. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10986. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10987. msm_routing_put_audio_mixer),
  10988. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10989. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10990. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10991. msm_routing_put_audio_mixer),
  10992. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10993. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10994. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10995. msm_routing_put_audio_mixer),
  10996. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10997. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10998. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10999. msm_routing_put_audio_mixer),
  11000. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11001. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11002. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11003. msm_routing_put_audio_mixer),
  11004. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11006. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11010. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11011. msm_routing_put_audio_mixer),
  11012. };
  11013. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  11014. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11015. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11017. msm_routing_put_audio_mixer),
  11018. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11019. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11020. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11021. msm_routing_put_audio_mixer),
  11022. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11023. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11024. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11025. msm_routing_put_audio_mixer),
  11026. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11027. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11028. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11029. msm_routing_put_audio_mixer),
  11030. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11031. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11032. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11033. msm_routing_put_audio_mixer),
  11034. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11035. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11036. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11037. msm_routing_put_audio_mixer),
  11038. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11039. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11040. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11041. msm_routing_put_audio_mixer),
  11042. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11043. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11044. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11045. msm_routing_put_audio_mixer),
  11046. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11047. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11048. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11049. msm_routing_put_audio_mixer),
  11050. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11051. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11052. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11053. msm_routing_put_audio_mixer),
  11054. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11055. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11056. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11057. msm_routing_put_audio_mixer),
  11058. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11059. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11060. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11061. msm_routing_put_audio_mixer),
  11062. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11063. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11064. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11065. msm_routing_put_audio_mixer),
  11066. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11067. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11068. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11069. msm_routing_put_audio_mixer),
  11070. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11071. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11072. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11073. msm_routing_put_audio_mixer),
  11074. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11075. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11076. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11077. msm_routing_put_audio_mixer),
  11078. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11079. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11080. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11081. msm_routing_put_audio_mixer),
  11082. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11083. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11084. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11085. msm_routing_put_audio_mixer),
  11086. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11087. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11088. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11089. msm_routing_put_audio_mixer),
  11090. };
  11091. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  11092. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11093. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11094. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11095. msm_routing_put_audio_mixer),
  11096. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11097. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11098. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11099. msm_routing_put_audio_mixer),
  11100. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11101. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11102. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11103. msm_routing_put_audio_mixer),
  11104. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11105. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11106. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11107. msm_routing_put_audio_mixer),
  11108. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11109. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11110. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11111. msm_routing_put_audio_mixer),
  11112. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11113. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11114. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11115. msm_routing_put_audio_mixer),
  11116. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11117. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11118. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11119. msm_routing_put_audio_mixer),
  11120. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11121. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11122. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11123. msm_routing_put_audio_mixer),
  11124. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11125. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11126. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11127. msm_routing_put_audio_mixer),
  11128. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11129. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11130. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11131. msm_routing_put_audio_mixer),
  11132. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11133. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11134. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11135. msm_routing_put_audio_mixer),
  11136. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11137. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11138. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11139. msm_routing_put_audio_mixer),
  11140. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11141. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11142. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11143. msm_routing_put_audio_mixer),
  11144. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11145. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11146. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11147. msm_routing_put_audio_mixer),
  11148. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11149. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11150. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11151. msm_routing_put_audio_mixer),
  11152. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11153. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11154. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11155. msm_routing_put_audio_mixer),
  11156. };
  11157. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  11158. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11159. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11160. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11161. msm_routing_put_audio_mixer),
  11162. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11163. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11164. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11165. msm_routing_put_audio_mixer),
  11166. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11167. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11168. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11169. msm_routing_put_audio_mixer),
  11170. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11171. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11172. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11173. msm_routing_put_audio_mixer),
  11174. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11175. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11176. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11177. msm_routing_put_audio_mixer),
  11178. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11179. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11180. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11181. msm_routing_put_audio_mixer),
  11182. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11183. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11184. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11185. msm_routing_put_audio_mixer),
  11186. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11187. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11188. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11189. msm_routing_put_audio_mixer),
  11190. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11191. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11192. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11193. msm_routing_put_audio_mixer),
  11194. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11195. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11196. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11197. msm_routing_put_audio_mixer),
  11198. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11199. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11200. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11201. msm_routing_put_audio_mixer),
  11202. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11203. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11204. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11205. msm_routing_put_audio_mixer),
  11206. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11207. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11208. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11209. msm_routing_put_audio_mixer),
  11210. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11211. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11212. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11213. msm_routing_put_audio_mixer),
  11214. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11216. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11221. msm_routing_put_audio_mixer),
  11222. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11223. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11224. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11225. msm_routing_put_audio_mixer),
  11226. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11227. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11228. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11229. msm_routing_put_audio_mixer),
  11230. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11231. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11232. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11233. msm_routing_put_audio_mixer),
  11234. };
  11235. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  11236. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11237. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11238. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11239. msm_routing_put_audio_mixer),
  11240. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11241. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11242. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11243. msm_routing_put_audio_mixer),
  11244. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11245. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11246. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11247. msm_routing_put_audio_mixer),
  11248. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11249. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11250. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11251. msm_routing_put_audio_mixer),
  11252. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11253. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11254. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11255. msm_routing_put_audio_mixer),
  11256. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11257. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11258. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11259. msm_routing_put_audio_mixer),
  11260. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11261. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11262. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11263. msm_routing_put_audio_mixer),
  11264. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11265. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11266. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11267. msm_routing_put_audio_mixer),
  11268. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11269. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11270. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11271. msm_routing_put_audio_mixer),
  11272. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11273. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11274. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11275. msm_routing_put_audio_mixer),
  11276. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11277. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11278. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11279. msm_routing_put_audio_mixer),
  11280. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11281. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11282. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11283. msm_routing_put_audio_mixer),
  11284. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11285. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11286. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11287. msm_routing_put_audio_mixer),
  11288. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11289. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11290. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11291. msm_routing_put_audio_mixer),
  11292. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11293. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11294. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11295. msm_routing_put_audio_mixer),
  11296. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11297. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11298. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11299. msm_routing_put_audio_mixer),
  11300. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11301. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11302. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11303. msm_routing_put_audio_mixer),
  11304. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11306. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11307. msm_routing_put_audio_mixer),
  11308. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11309. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11310. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11311. msm_routing_put_audio_mixer),
  11312. };
  11313. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  11314. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11315. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11316. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11317. msm_routing_put_audio_mixer),
  11318. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11319. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11320. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11321. msm_routing_put_audio_mixer),
  11322. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11323. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11324. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11325. msm_routing_put_audio_mixer),
  11326. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11327. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11328. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11329. msm_routing_put_audio_mixer),
  11330. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11331. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11332. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11333. msm_routing_put_audio_mixer),
  11334. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11335. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11336. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11337. msm_routing_put_audio_mixer),
  11338. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11339. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11340. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11341. msm_routing_put_audio_mixer),
  11342. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11343. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11344. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11345. msm_routing_put_audio_mixer),
  11346. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11347. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11348. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11349. msm_routing_put_audio_mixer),
  11350. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11351. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11353. msm_routing_put_audio_mixer),
  11354. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11355. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11356. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11357. msm_routing_put_audio_mixer),
  11358. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11359. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11360. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11361. msm_routing_put_audio_mixer),
  11362. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11363. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11364. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11365. msm_routing_put_audio_mixer),
  11366. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11367. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11368. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11369. msm_routing_put_audio_mixer),
  11370. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11371. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11372. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11373. msm_routing_put_audio_mixer),
  11374. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11375. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11376. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11377. msm_routing_put_audio_mixer),
  11378. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11379. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11380. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11381. msm_routing_put_audio_mixer),
  11382. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11383. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11384. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11385. msm_routing_put_audio_mixer),
  11386. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11387. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11388. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11389. msm_routing_put_audio_mixer),
  11390. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11391. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11392. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11393. msm_routing_put_audio_mixer),
  11394. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11395. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11396. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11397. msm_routing_put_audio_mixer),
  11398. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11399. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11400. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11401. msm_routing_put_audio_mixer),
  11402. };
  11403. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11404. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11405. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11406. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11407. msm_routing_put_audio_mixer),
  11408. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11409. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11410. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11411. msm_routing_put_audio_mixer),
  11412. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11413. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11414. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11415. msm_routing_put_audio_mixer),
  11416. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11417. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11418. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11419. msm_routing_put_audio_mixer),
  11420. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11421. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11422. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11423. msm_routing_put_audio_mixer),
  11424. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11425. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11426. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11427. msm_routing_put_audio_mixer),
  11428. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11429. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11430. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11431. msm_routing_put_audio_mixer),
  11432. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11433. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11434. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11435. msm_routing_put_audio_mixer),
  11436. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11437. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11438. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11439. msm_routing_put_audio_mixer),
  11440. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11441. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11442. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11443. msm_routing_put_audio_mixer),
  11444. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11445. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11446. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11447. msm_routing_put_audio_mixer),
  11448. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11450. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11451. msm_routing_put_audio_mixer),
  11452. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11453. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11454. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11455. msm_routing_put_audio_mixer),
  11456. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11457. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11458. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11459. msm_routing_put_audio_mixer),
  11460. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11461. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11462. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11463. msm_routing_put_audio_mixer),
  11464. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11465. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11466. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11467. msm_routing_put_audio_mixer),
  11468. };
  11469. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11470. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11471. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11472. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11473. msm_routing_put_audio_mixer),
  11474. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11475. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11476. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11477. msm_routing_put_audio_mixer),
  11478. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11479. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11481. msm_routing_put_audio_mixer),
  11482. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11483. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11484. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11485. msm_routing_put_audio_mixer),
  11486. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11487. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11488. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11489. msm_routing_put_audio_mixer),
  11490. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11491. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11492. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11493. msm_routing_put_audio_mixer),
  11494. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11495. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11496. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11497. msm_routing_put_audio_mixer),
  11498. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11499. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11500. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11501. msm_routing_put_audio_mixer),
  11502. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11503. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11504. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11505. msm_routing_put_audio_mixer),
  11506. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11507. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11508. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11509. msm_routing_put_audio_mixer),
  11510. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11511. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11512. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11513. msm_routing_put_audio_mixer),
  11514. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11515. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11516. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11517. msm_routing_put_audio_mixer),
  11518. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11519. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11520. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11521. msm_routing_put_audio_mixer),
  11522. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11523. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11524. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11525. msm_routing_put_audio_mixer),
  11526. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11527. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11528. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11529. msm_routing_put_audio_mixer),
  11530. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11531. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11532. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11533. msm_routing_put_audio_mixer),
  11534. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11535. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11536. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11537. msm_routing_put_audio_mixer),
  11538. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11539. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11540. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11541. msm_routing_put_audio_mixer),
  11542. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11543. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11544. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11545. msm_routing_put_audio_mixer),
  11546. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11547. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11548. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11549. msm_routing_put_audio_mixer),
  11550. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11551. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11552. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11553. msm_routing_put_audio_mixer),
  11554. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11555. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11556. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11557. msm_routing_put_audio_mixer),
  11558. };
  11559. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11560. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11561. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11562. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11563. msm_routing_put_audio_mixer),
  11564. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11565. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11566. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11567. msm_routing_put_audio_mixer),
  11568. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11569. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11570. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11571. msm_routing_put_audio_mixer),
  11572. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11573. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11574. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11575. msm_routing_put_audio_mixer),
  11576. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11577. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11578. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11579. msm_routing_put_audio_mixer),
  11580. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11581. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11582. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11583. msm_routing_put_audio_mixer),
  11584. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11585. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11586. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11587. msm_routing_put_audio_mixer),
  11588. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11589. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11590. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11591. msm_routing_put_audio_mixer),
  11592. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11593. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11594. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11595. msm_routing_put_audio_mixer),
  11596. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11597. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11598. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11599. msm_routing_put_audio_mixer),
  11600. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11601. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11602. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11603. msm_routing_put_audio_mixer),
  11604. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11605. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11606. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11607. msm_routing_put_audio_mixer),
  11608. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11609. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11610. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11611. msm_routing_put_audio_mixer),
  11612. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11614. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11615. msm_routing_put_audio_mixer),
  11616. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11618. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11619. msm_routing_put_audio_mixer),
  11620. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11622. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11623. msm_routing_put_audio_mixer),
  11624. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11625. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11626. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11627. msm_routing_put_audio_mixer),
  11628. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11629. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11630. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11631. msm_routing_put_audio_mixer),
  11632. };
  11633. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11634. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11635. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11636. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11637. msm_routing_put_audio_mixer),
  11638. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11639. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11640. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11641. msm_routing_put_audio_mixer),
  11642. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11643. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11644. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11645. msm_routing_put_audio_mixer),
  11646. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11647. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11648. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11649. msm_routing_put_audio_mixer),
  11650. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11651. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11652. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11653. msm_routing_put_audio_mixer),
  11654. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11655. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11656. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11657. msm_routing_put_audio_mixer),
  11658. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11659. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11660. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11661. msm_routing_put_audio_mixer),
  11662. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11663. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11664. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11665. msm_routing_put_audio_mixer),
  11666. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11667. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11668. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11669. msm_routing_put_audio_mixer),
  11670. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11671. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11672. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11673. msm_routing_put_audio_mixer),
  11674. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11675. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11676. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11677. msm_routing_put_audio_mixer),
  11678. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11680. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11681. msm_routing_put_audio_mixer),
  11682. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11683. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11684. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11685. msm_routing_put_audio_mixer),
  11686. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11687. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11688. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11689. msm_routing_put_audio_mixer),
  11690. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11691. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11692. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11693. msm_routing_put_audio_mixer),
  11694. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11695. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11696. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11697. msm_routing_put_audio_mixer),
  11698. };
  11699. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11700. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11701. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11702. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11703. msm_routing_put_audio_mixer),
  11704. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11705. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11706. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11707. msm_routing_put_audio_mixer),
  11708. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11709. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11710. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11711. msm_routing_put_audio_mixer),
  11712. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11713. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11714. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11715. msm_routing_put_audio_mixer),
  11716. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11717. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11718. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11719. msm_routing_put_audio_mixer),
  11720. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11721. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11722. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11723. msm_routing_put_audio_mixer),
  11724. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11725. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11726. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11727. msm_routing_put_audio_mixer),
  11728. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11729. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11730. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11731. msm_routing_put_audio_mixer),
  11732. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11733. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11734. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11735. msm_routing_put_audio_mixer),
  11736. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11737. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11738. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11739. msm_routing_put_audio_mixer),
  11740. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11741. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11742. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11743. msm_routing_put_audio_mixer),
  11744. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11745. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11746. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11747. msm_routing_put_audio_mixer),
  11748. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11749. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11750. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11751. msm_routing_put_audio_mixer),
  11752. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11753. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11754. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11755. msm_routing_put_audio_mixer),
  11756. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11757. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11758. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11759. msm_routing_put_audio_mixer),
  11760. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11761. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11762. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11763. msm_routing_put_audio_mixer),
  11764. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11765. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11766. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11767. msm_routing_put_audio_mixer),
  11768. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11769. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11770. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11771. msm_routing_put_audio_mixer),
  11772. };
  11773. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11774. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11775. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11777. msm_routing_put_audio_mixer),
  11778. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11779. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11780. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11781. msm_routing_put_audio_mixer),
  11782. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11783. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11784. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11785. msm_routing_put_audio_mixer),
  11786. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11787. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11788. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11789. msm_routing_put_audio_mixer),
  11790. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11791. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11793. msm_routing_put_audio_mixer),
  11794. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11795. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11796. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11797. msm_routing_put_audio_mixer),
  11798. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11799. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11800. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11801. msm_routing_put_audio_mixer),
  11802. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11803. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11804. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11805. msm_routing_put_audio_mixer),
  11806. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11807. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11808. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11809. msm_routing_put_audio_mixer),
  11810. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11811. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11812. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11813. msm_routing_put_audio_mixer),
  11814. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11815. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11816. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11817. msm_routing_put_audio_mixer),
  11818. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11819. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11820. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11821. msm_routing_put_audio_mixer),
  11822. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11823. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11824. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11825. msm_routing_put_audio_mixer),
  11826. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11827. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11828. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11829. msm_routing_put_audio_mixer),
  11830. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11831. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11832. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11833. msm_routing_put_audio_mixer),
  11834. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11835. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11836. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11837. msm_routing_put_audio_mixer),
  11838. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11839. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11840. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11841. msm_routing_put_audio_mixer),
  11842. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11843. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11844. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11845. msm_routing_put_audio_mixer),
  11846. };
  11847. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11848. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11849. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11850. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11851. msm_routing_put_audio_mixer),
  11852. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11853. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11854. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11855. msm_routing_put_audio_mixer),
  11856. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11857. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11858. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11859. msm_routing_put_audio_mixer),
  11860. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11861. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11862. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11863. msm_routing_put_audio_mixer),
  11864. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11865. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11866. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11867. msm_routing_put_audio_mixer),
  11868. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11869. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11870. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11871. msm_routing_put_audio_mixer),
  11872. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11874. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11875. msm_routing_put_audio_mixer),
  11876. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11877. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11878. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11879. msm_routing_put_audio_mixer),
  11880. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11881. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11882. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11883. msm_routing_put_audio_mixer),
  11884. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11885. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11886. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11887. msm_routing_put_audio_mixer),
  11888. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11889. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11890. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11891. msm_routing_put_audio_mixer),
  11892. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11893. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11894. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11895. msm_routing_put_audio_mixer),
  11896. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11897. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11898. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11899. msm_routing_put_audio_mixer),
  11900. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11901. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11902. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11903. msm_routing_put_audio_mixer),
  11904. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11905. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11906. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11907. msm_routing_put_audio_mixer),
  11908. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11909. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11910. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11911. msm_routing_put_audio_mixer),
  11912. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11914. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11915. msm_routing_put_audio_mixer),
  11916. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11917. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11918. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11919. msm_routing_put_audio_mixer),
  11920. };
  11921. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11922. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11923. MSM_BACKEND_DAI_PRI_I2S_TX,
  11924. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11925. msm_routing_put_audio_mixer),
  11926. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11927. MSM_BACKEND_DAI_MI2S_TX,
  11928. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11929. msm_routing_put_audio_mixer),
  11930. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11931. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11932. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11933. msm_routing_put_audio_mixer),
  11934. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11935. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11936. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11937. msm_routing_put_audio_mixer),
  11938. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11939. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11940. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11941. msm_routing_put_audio_mixer),
  11942. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11943. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11944. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11945. msm_routing_put_audio_mixer),
  11946. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11947. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11948. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11949. msm_routing_put_audio_mixer),
  11950. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11951. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11952. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11953. msm_routing_put_audio_mixer),
  11954. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11955. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11956. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11957. msm_routing_put_audio_mixer),
  11958. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11959. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11960. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11961. msm_routing_put_audio_mixer),
  11962. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11963. MSM_BACKEND_DAI_AUXPCM_TX,
  11964. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11965. msm_routing_put_audio_mixer),
  11966. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11967. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11968. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11969. msm_routing_put_audio_mixer),
  11970. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11971. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11972. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11973. msm_routing_put_audio_mixer),
  11974. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11975. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11976. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11977. msm_routing_put_audio_mixer),
  11978. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11979. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11980. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11981. msm_routing_put_audio_mixer),
  11982. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11983. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11984. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11985. msm_routing_put_audio_mixer),
  11986. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11987. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11988. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11989. msm_routing_put_audio_mixer),
  11990. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11991. MSM_BACKEND_DAI_INT_FM_TX,
  11992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11993. msm_routing_put_audio_mixer),
  11994. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11995. MSM_BACKEND_DAI_AFE_PCM_TX,
  11996. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11997. msm_routing_put_audio_mixer),
  11998. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11999. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12000. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12001. msm_routing_put_audio_mixer),
  12002. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12003. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12004. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12005. msm_routing_put_audio_mixer),
  12006. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  12007. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  12008. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12009. msm_routing_put_audio_mixer),
  12010. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12011. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12012. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12013. msm_routing_put_audio_mixer),
  12014. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12015. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12016. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12017. msm_routing_put_audio_mixer),
  12018. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12021. msm_routing_put_audio_mixer),
  12022. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12023. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12024. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12025. msm_routing_put_audio_mixer),
  12026. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12027. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12028. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12029. msm_routing_put_audio_mixer),
  12030. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12031. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12032. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12033. msm_routing_put_audio_mixer),
  12034. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12035. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12036. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12037. msm_routing_put_audio_mixer),
  12038. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12039. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12040. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12041. msm_routing_put_audio_mixer),
  12042. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12043. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12044. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12045. msm_routing_put_audio_mixer),
  12046. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12047. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12048. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12049. msm_routing_put_audio_mixer),
  12050. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12051. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12052. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12053. msm_routing_put_audio_mixer),
  12054. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12055. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12056. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12057. msm_routing_put_audio_mixer),
  12058. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12059. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12060. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12061. msm_routing_put_audio_mixer),
  12062. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12063. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12064. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12065. msm_routing_put_audio_mixer),
  12066. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12068. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12069. msm_routing_put_audio_mixer),
  12070. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12071. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12072. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12073. msm_routing_put_audio_mixer),
  12074. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12075. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12076. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12077. msm_routing_put_audio_mixer),
  12078. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12079. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12080. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12081. msm_routing_put_audio_mixer),
  12082. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12083. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12084. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12085. msm_routing_put_audio_mixer),
  12086. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12087. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12088. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12089. msm_routing_put_audio_mixer),
  12090. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12091. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12092. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12093. msm_routing_put_audio_mixer),
  12094. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12095. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12096. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12097. msm_routing_put_audio_mixer),
  12098. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12099. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12100. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12101. msm_routing_put_audio_mixer),
  12102. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12103. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12104. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12105. msm_routing_put_audio_mixer),
  12106. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12107. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12108. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12109. msm_routing_put_audio_mixer),
  12110. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12111. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12112. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12113. msm_routing_put_audio_mixer),
  12114. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12115. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12116. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12117. msm_routing_put_audio_mixer),
  12118. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12119. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12120. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12121. msm_routing_put_audio_mixer),
  12122. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12123. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12124. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12125. msm_routing_put_audio_mixer),
  12126. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12127. MSM_BACKEND_DAI_USB_TX,
  12128. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12129. msm_routing_put_audio_mixer),
  12130. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12131. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12132. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12133. msm_routing_put_audio_mixer),
  12134. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12135. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12136. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12137. msm_routing_put_audio_mixer),
  12138. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12139. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12140. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12141. msm_routing_put_audio_mixer),
  12142. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12144. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12145. msm_routing_put_audio_mixer),
  12146. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12148. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12149. msm_routing_put_audio_mixer),
  12150. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12152. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12153. msm_routing_put_audio_mixer),
  12154. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12155. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12156. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12157. msm_routing_put_audio_mixer),
  12158. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12159. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12160. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12161. msm_routing_put_audio_mixer),
  12162. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12163. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12164. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12165. msm_routing_put_audio_mixer),
  12166. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12167. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12168. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12169. msm_routing_put_audio_mixer),
  12170. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12171. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12172. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12173. msm_routing_put_audio_mixer),
  12174. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12175. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12176. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12177. msm_routing_put_audio_mixer),
  12178. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12180. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12181. msm_routing_put_audio_mixer),
  12182. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12184. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12185. msm_routing_put_audio_mixer),
  12186. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12187. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12188. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12189. msm_routing_put_audio_mixer),
  12190. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12191. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12192. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12193. msm_routing_put_audio_mixer),
  12194. };
  12195. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  12196. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12197. MSM_BACKEND_DAI_INT_FM_TX,
  12198. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12199. msm_routing_put_audio_mixer),
  12200. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12201. MSM_BACKEND_DAI_MI2S_TX,
  12202. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12203. msm_routing_put_audio_mixer),
  12204. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12205. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12206. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12207. msm_routing_put_audio_mixer),
  12208. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12209. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12210. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12211. msm_routing_put_audio_mixer),
  12212. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12213. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12214. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12215. msm_routing_put_audio_mixer),
  12216. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12217. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12218. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12219. msm_routing_put_audio_mixer),
  12220. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12221. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12222. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12223. msm_routing_put_audio_mixer),
  12224. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12225. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12227. msm_routing_put_audio_mixer),
  12228. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12229. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12230. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12231. msm_routing_put_audio_mixer),
  12232. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12233. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12235. msm_routing_put_audio_mixer),
  12236. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12237. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12238. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12239. msm_routing_put_audio_mixer),
  12240. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12241. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12242. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12243. msm_routing_put_audio_mixer),
  12244. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12246. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12247. msm_routing_put_audio_mixer),
  12248. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12250. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12251. msm_routing_put_audio_mixer),
  12252. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12253. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12254. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12255. msm_routing_put_audio_mixer),
  12256. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12257. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12258. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12259. msm_routing_put_audio_mixer),
  12260. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12261. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12262. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12263. msm_routing_put_audio_mixer),
  12264. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12265. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12266. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12267. msm_routing_put_audio_mixer),
  12268. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12269. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12270. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12271. msm_routing_put_audio_mixer),
  12272. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12273. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12274. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12275. msm_routing_put_audio_mixer),
  12276. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12277. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12278. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12279. msm_routing_put_audio_mixer),
  12280. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12281. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12282. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12283. msm_routing_put_audio_mixer),
  12284. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12285. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12286. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12287. msm_routing_put_audio_mixer),
  12288. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12289. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12290. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12291. msm_routing_put_audio_mixer),
  12292. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12293. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12294. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12295. msm_routing_put_audio_mixer),
  12296. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12297. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12298. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12299. msm_routing_put_audio_mixer),
  12300. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12301. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12302. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12303. msm_routing_put_audio_mixer),
  12304. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12305. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12306. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12307. msm_routing_put_audio_mixer),
  12308. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12309. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12310. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12311. msm_routing_put_audio_mixer),
  12312. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12313. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12314. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12315. msm_routing_put_audio_mixer),
  12316. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12317. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12318. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12319. msm_routing_put_audio_mixer),
  12320. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12321. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12322. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12323. msm_routing_put_audio_mixer),
  12324. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12325. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12326. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12327. msm_routing_put_audio_mixer),
  12328. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12329. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12330. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12331. msm_routing_put_audio_mixer),
  12332. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12333. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12334. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12335. msm_routing_put_audio_mixer),
  12336. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12337. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12338. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12339. msm_routing_put_audio_mixer),
  12340. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12342. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12343. msm_routing_put_audio_mixer),
  12344. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12345. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12346. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12347. msm_routing_put_audio_mixer),
  12348. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12349. MSM_BACKEND_DAI_USB_TX,
  12350. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12351. msm_routing_put_audio_mixer),
  12352. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12353. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12354. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12355. msm_routing_put_audio_mixer),
  12356. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12357. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12358. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12359. msm_routing_put_audio_mixer),
  12360. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12361. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12362. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12363. msm_routing_put_audio_mixer),
  12364. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12365. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12366. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12367. msm_routing_put_audio_mixer),
  12368. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12369. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12370. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12371. msm_routing_put_audio_mixer),
  12372. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12374. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12375. msm_routing_put_audio_mixer),
  12376. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12378. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12379. msm_routing_put_audio_mixer),
  12380. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12381. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12382. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12383. msm_routing_put_audio_mixer),
  12384. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12385. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12386. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12387. msm_routing_put_audio_mixer),
  12388. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12389. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12390. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12391. msm_routing_put_audio_mixer),
  12392. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12393. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12394. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12395. msm_routing_put_audio_mixer),
  12396. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12397. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12398. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12399. msm_routing_put_audio_mixer),
  12400. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12401. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12402. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12403. msm_routing_put_audio_mixer),
  12404. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12405. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12406. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12407. msm_routing_put_audio_mixer),
  12408. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12409. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12410. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12411. msm_routing_put_audio_mixer),
  12412. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12413. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12414. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12415. msm_routing_put_audio_mixer),
  12416. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12417. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12418. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12419. msm_routing_put_audio_mixer),
  12420. };
  12421. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12422. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12423. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12424. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12425. msm_routing_put_audio_mixer),
  12426. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12427. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12428. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12429. msm_routing_put_audio_mixer),
  12430. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12431. MSM_BACKEND_DAI_INT_FM_TX,
  12432. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12433. msm_routing_put_audio_mixer),
  12434. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12435. MSM_BACKEND_DAI_MI2S_TX,
  12436. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12437. msm_routing_put_audio_mixer),
  12438. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12439. MSM_BACKEND_DAI_AFE_PCM_TX,
  12440. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12441. msm_routing_put_audio_mixer),
  12442. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12443. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12444. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12445. msm_routing_put_audio_mixer),
  12446. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12447. MSM_BACKEND_DAI_AUXPCM_TX,
  12448. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12449. msm_routing_put_audio_mixer),
  12450. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12451. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12452. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12453. msm_routing_put_audio_mixer),
  12454. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12455. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12456. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12457. msm_routing_put_audio_mixer),
  12458. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12459. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12460. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12461. msm_routing_put_audio_mixer),
  12462. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12463. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12464. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12465. msm_routing_put_audio_mixer),
  12466. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12467. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12468. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12469. msm_routing_put_audio_mixer),
  12470. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12471. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12472. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12473. msm_routing_put_audio_mixer),
  12474. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12475. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12476. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12477. msm_routing_put_audio_mixer),
  12478. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12479. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12480. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12481. msm_routing_put_audio_mixer),
  12482. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12483. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12484. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12485. msm_routing_put_audio_mixer),
  12486. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12487. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12488. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12489. msm_routing_put_audio_mixer),
  12490. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12491. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12492. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12493. msm_routing_put_audio_mixer),
  12494. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12495. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12496. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12497. msm_routing_put_audio_mixer),
  12498. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12499. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12500. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12501. msm_routing_put_audio_mixer),
  12502. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12503. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12504. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12505. msm_routing_put_audio_mixer),
  12506. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12507. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12508. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12509. msm_routing_put_audio_mixer),
  12510. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12511. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12512. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12513. msm_routing_put_audio_mixer),
  12514. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12515. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12516. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12517. msm_routing_put_audio_mixer),
  12518. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12519. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12520. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12521. msm_routing_put_audio_mixer),
  12522. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12523. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12524. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12525. msm_routing_put_audio_mixer),
  12526. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12527. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12528. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12529. msm_routing_put_audio_mixer),
  12530. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12531. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12532. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12533. msm_routing_put_audio_mixer),
  12534. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12535. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12536. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12537. msm_routing_put_audio_mixer),
  12538. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12539. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12540. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12541. msm_routing_put_audio_mixer),
  12542. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12543. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12544. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12545. msm_routing_put_audio_mixer),
  12546. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12547. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12548. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12549. msm_routing_put_audio_mixer),
  12550. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12551. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12552. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12553. msm_routing_put_audio_mixer),
  12554. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12556. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12557. msm_routing_put_audio_mixer),
  12558. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12559. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12560. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12561. msm_routing_put_audio_mixer),
  12562. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12563. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12564. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12565. msm_routing_put_audio_mixer),
  12566. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12568. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12569. msm_routing_put_audio_mixer),
  12570. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12572. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12573. msm_routing_put_audio_mixer),
  12574. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12575. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12576. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12577. msm_routing_put_audio_mixer),
  12578. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12579. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12580. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12581. msm_routing_put_audio_mixer),
  12582. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12583. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12584. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12585. msm_routing_put_audio_mixer),
  12586. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12588. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12589. msm_routing_put_audio_mixer),
  12590. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12592. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12593. msm_routing_put_audio_mixer),
  12594. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12595. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12596. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12597. msm_routing_put_audio_mixer),
  12598. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12599. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12600. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12601. msm_routing_put_audio_mixer),
  12602. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12603. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12604. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12605. msm_routing_put_audio_mixer),
  12606. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12608. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12609. msm_routing_put_audio_mixer),
  12610. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12612. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12613. msm_routing_put_audio_mixer),
  12614. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12615. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12616. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12617. msm_routing_put_audio_mixer),
  12618. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12620. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12621. msm_routing_put_audio_mixer),
  12622. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12623. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12624. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12625. msm_routing_put_audio_mixer),
  12626. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12628. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12629. msm_routing_put_audio_mixer),
  12630. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12632. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12633. msm_routing_put_audio_mixer),
  12634. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12635. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12636. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12637. msm_routing_put_audio_mixer),
  12638. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12640. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12641. msm_routing_put_audio_mixer),
  12642. };
  12643. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12644. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12645. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12646. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12647. msm_routing_put_audio_mixer),
  12648. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12649. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12650. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12651. msm_routing_put_audio_mixer),
  12652. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12653. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12654. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12655. msm_routing_put_audio_mixer),
  12656. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12657. MSM_BACKEND_DAI_INT_FM_TX,
  12658. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12659. msm_routing_put_audio_mixer),
  12660. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12661. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12662. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12663. msm_routing_put_audio_mixer),
  12664. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12665. MSM_BACKEND_DAI_AFE_PCM_TX,
  12666. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12667. msm_routing_put_audio_mixer),
  12668. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12669. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12670. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12671. msm_routing_put_audio_mixer),
  12672. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12673. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12674. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12675. msm_routing_put_audio_mixer),
  12676. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12677. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12678. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12679. msm_routing_put_audio_mixer),
  12680. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12681. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12682. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12683. msm_routing_put_audio_mixer),
  12684. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12685. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12686. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12687. msm_routing_put_audio_mixer),
  12688. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12689. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12690. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12691. msm_routing_put_audio_mixer),
  12692. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12693. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12694. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12695. msm_routing_put_audio_mixer),
  12696. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12697. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12698. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12699. msm_routing_put_audio_mixer),
  12700. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12701. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12702. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12703. msm_routing_put_audio_mixer),
  12704. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12705. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12706. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12707. msm_routing_put_audio_mixer),
  12708. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12709. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12710. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12711. msm_routing_put_audio_mixer),
  12712. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12713. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12714. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12715. msm_routing_put_audio_mixer),
  12716. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12717. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12718. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12719. msm_routing_put_audio_mixer),
  12720. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12721. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12722. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12723. msm_routing_put_audio_mixer),
  12724. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12725. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12726. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12727. msm_routing_put_audio_mixer),
  12728. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12729. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12730. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12731. msm_routing_put_audio_mixer),
  12732. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12733. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12734. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12735. msm_routing_put_audio_mixer),
  12736. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12737. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12738. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12739. msm_routing_put_audio_mixer),
  12740. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12741. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12742. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12743. msm_routing_put_audio_mixer),
  12744. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12746. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12747. msm_routing_put_audio_mixer),
  12748. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12750. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12751. msm_routing_put_audio_mixer),
  12752. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12754. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12755. msm_routing_put_audio_mixer),
  12756. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12757. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12758. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12759. msm_routing_put_audio_mixer),
  12760. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12761. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12762. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12763. msm_routing_put_audio_mixer),
  12764. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12765. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12766. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12767. msm_routing_put_audio_mixer),
  12768. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12769. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12770. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12771. msm_routing_put_audio_mixer),
  12772. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12773. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12774. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12775. msm_routing_put_audio_mixer),
  12776. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12777. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12778. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12779. msm_routing_put_audio_mixer),
  12780. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12782. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12783. msm_routing_put_audio_mixer),
  12784. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12785. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12786. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12787. msm_routing_put_audio_mixer),
  12788. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12789. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12790. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12791. msm_routing_put_audio_mixer),
  12792. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12793. MSM_BACKEND_DAI_USB_TX,
  12794. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12795. msm_routing_put_audio_mixer),
  12796. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12797. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12798. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12799. msm_routing_put_audio_mixer),
  12800. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12802. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12803. msm_routing_put_audio_mixer),
  12804. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12805. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12806. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12807. msm_routing_put_audio_mixer),
  12808. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12809. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12810. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12811. msm_routing_put_audio_mixer),
  12812. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12813. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12814. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12815. msm_routing_put_audio_mixer),
  12816. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12817. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12818. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12819. msm_routing_put_audio_mixer),
  12820. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12822. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12823. msm_routing_put_audio_mixer),
  12824. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12826. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12827. msm_routing_put_audio_mixer),
  12828. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12829. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12830. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12831. msm_routing_put_audio_mixer),
  12832. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12833. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12834. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12835. msm_routing_put_audio_mixer),
  12836. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12837. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12838. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12839. msm_routing_put_audio_mixer),
  12840. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12841. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12842. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12843. msm_routing_put_audio_mixer),
  12844. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12845. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12846. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12847. msm_routing_put_audio_mixer),
  12848. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12849. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12850. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12851. msm_routing_put_audio_mixer),
  12852. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12853. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12854. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12855. msm_routing_put_audio_mixer),
  12856. };
  12857. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12858. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12859. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12860. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12861. msm_routing_put_audio_mixer),
  12862. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12863. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12865. msm_routing_put_audio_mixer),
  12866. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12867. MSM_BACKEND_DAI_INT_FM_TX,
  12868. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12869. msm_routing_put_audio_mixer),
  12870. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12871. MSM_BACKEND_DAI_MI2S_TX,
  12872. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12873. msm_routing_put_audio_mixer),
  12874. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12875. MSM_BACKEND_DAI_AFE_PCM_TX,
  12876. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12877. msm_routing_put_audio_mixer),
  12878. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12879. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12880. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12881. msm_routing_put_audio_mixer),
  12882. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_AUXPCM_TX,
  12884. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12885. msm_routing_put_audio_mixer),
  12886. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12887. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12888. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12889. msm_routing_put_audio_mixer),
  12890. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12891. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12892. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12893. msm_routing_put_audio_mixer),
  12894. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12895. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12896. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12897. msm_routing_put_audio_mixer),
  12898. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12899. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12900. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12901. msm_routing_put_audio_mixer),
  12902. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12903. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12904. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12905. msm_routing_put_audio_mixer),
  12906. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12907. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12908. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12909. msm_routing_put_audio_mixer),
  12910. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12911. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12912. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12913. msm_routing_put_audio_mixer),
  12914. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12915. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12916. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12917. msm_routing_put_audio_mixer),
  12918. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12919. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12920. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12921. msm_routing_put_audio_mixer),
  12922. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12923. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12924. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12925. msm_routing_put_audio_mixer),
  12926. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12927. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12928. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12929. msm_routing_put_audio_mixer),
  12930. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12931. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12932. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12933. msm_routing_put_audio_mixer),
  12934. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12935. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12936. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12937. msm_routing_put_audio_mixer),
  12938. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12939. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12940. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12941. msm_routing_put_audio_mixer),
  12942. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12943. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12944. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12945. msm_routing_put_audio_mixer),
  12946. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12947. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12948. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12949. msm_routing_put_audio_mixer),
  12950. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12951. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12952. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12953. msm_routing_put_audio_mixer),
  12954. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12955. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12956. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12957. msm_routing_put_audio_mixer),
  12958. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12959. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12960. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12961. msm_routing_put_audio_mixer),
  12962. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12963. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12964. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12965. msm_routing_put_audio_mixer),
  12966. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12967. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12968. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12969. msm_routing_put_audio_mixer),
  12970. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12971. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12972. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12973. msm_routing_put_audio_mixer),
  12974. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12975. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12976. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12977. msm_routing_put_audio_mixer),
  12978. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12979. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12980. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12981. msm_routing_put_audio_mixer),
  12982. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12983. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12984. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12985. msm_routing_put_audio_mixer),
  12986. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12987. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12988. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12989. msm_routing_put_audio_mixer),
  12990. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12991. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12992. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12993. msm_routing_put_audio_mixer),
  12994. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12995. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12996. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12997. msm_routing_put_audio_mixer),
  12998. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12999. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13000. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13001. msm_routing_put_audio_mixer),
  13002. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13003. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13004. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13005. msm_routing_put_audio_mixer),
  13006. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13007. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13008. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13009. msm_routing_put_audio_mixer),
  13010. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13011. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13012. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13013. msm_routing_put_audio_mixer),
  13014. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13015. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13016. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13017. msm_routing_put_audio_mixer),
  13018. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13019. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13020. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13021. msm_routing_put_audio_mixer),
  13022. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13023. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13024. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13025. msm_routing_put_audio_mixer),
  13026. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13028. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13029. msm_routing_put_audio_mixer),
  13030. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13031. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13032. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13033. msm_routing_put_audio_mixer),
  13034. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13035. MSM_BACKEND_DAI_USB_TX,
  13036. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13037. msm_routing_put_audio_mixer),
  13038. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13040. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13041. msm_routing_put_audio_mixer),
  13042. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13044. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13045. msm_routing_put_audio_mixer),
  13046. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13047. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13048. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13049. msm_routing_put_audio_mixer),
  13050. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13051. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13052. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13053. msm_routing_put_audio_mixer),
  13054. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13055. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13056. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13057. msm_routing_put_audio_mixer),
  13058. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13059. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13060. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13061. msm_routing_put_audio_mixer),
  13062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13064. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13065. msm_routing_put_audio_mixer),
  13066. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13067. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13068. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13069. msm_routing_put_audio_mixer),
  13070. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13071. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13072. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13073. msm_routing_put_audio_mixer),
  13074. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13076. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13077. msm_routing_put_audio_mixer),
  13078. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13079. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13080. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13081. msm_routing_put_audio_mixer),
  13082. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13084. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13085. msm_routing_put_audio_mixer),
  13086. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13088. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13089. msm_routing_put_audio_mixer),
  13090. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13092. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13093. msm_routing_put_audio_mixer),
  13094. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13095. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13096. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13097. msm_routing_put_audio_mixer),
  13098. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13099. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13100. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13101. msm_routing_put_audio_mixer),
  13102. };
  13103. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  13104. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13105. MSM_BACKEND_DAI_INT_FM_TX,
  13106. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13107. msm_routing_put_audio_mixer),
  13108. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13109. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13110. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13111. msm_routing_put_audio_mixer),
  13112. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13113. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13114. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13115. msm_routing_put_audio_mixer),
  13116. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13117. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13118. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13119. msm_routing_put_audio_mixer),
  13120. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13121. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13122. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13123. msm_routing_put_audio_mixer),
  13124. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13125. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13126. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13127. msm_routing_put_audio_mixer),
  13128. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13129. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13130. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13131. msm_routing_put_audio_mixer),
  13132. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13133. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13134. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13135. msm_routing_put_audio_mixer),
  13136. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13138. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13139. msm_routing_put_audio_mixer),
  13140. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13141. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13142. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13143. msm_routing_put_audio_mixer),
  13144. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13145. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13146. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13147. msm_routing_put_audio_mixer),
  13148. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13149. MSM_BACKEND_DAI_AUXPCM_TX,
  13150. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13151. msm_routing_put_audio_mixer),
  13152. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13153. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13154. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13155. msm_routing_put_audio_mixer),
  13156. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13158. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13159. msm_routing_put_audio_mixer),
  13160. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13162. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13163. msm_routing_put_audio_mixer),
  13164. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13165. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13166. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13167. msm_routing_put_audio_mixer),
  13168. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13170. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13171. msm_routing_put_audio_mixer),
  13172. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13173. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13174. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13175. msm_routing_put_audio_mixer),
  13176. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13177. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13178. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13179. msm_routing_put_audio_mixer),
  13180. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13181. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13182. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13183. msm_routing_put_audio_mixer),
  13184. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13185. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13186. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13187. msm_routing_put_audio_mixer),
  13188. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13189. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13190. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13191. msm_routing_put_audio_mixer),
  13192. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13194. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13195. msm_routing_put_audio_mixer),
  13196. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13197. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13198. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13199. msm_routing_put_audio_mixer),
  13200. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13201. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13202. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13203. msm_routing_put_audio_mixer),
  13204. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13205. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13206. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13207. msm_routing_put_audio_mixer),
  13208. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13210. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13211. msm_routing_put_audio_mixer),
  13212. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13214. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13215. msm_routing_put_audio_mixer),
  13216. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13217. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13218. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13219. msm_routing_put_audio_mixer),
  13220. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13221. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13222. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13223. msm_routing_put_audio_mixer),
  13224. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13225. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13226. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13227. msm_routing_put_audio_mixer),
  13228. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13229. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13230. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13231. msm_routing_put_audio_mixer),
  13232. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13233. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13234. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13235. msm_routing_put_audio_mixer),
  13236. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13237. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13238. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13239. msm_routing_put_audio_mixer),
  13240. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13242. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13243. msm_routing_put_audio_mixer),
  13244. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13245. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13246. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13247. msm_routing_put_audio_mixer),
  13248. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13250. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13251. msm_routing_put_audio_mixer),
  13252. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13254. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13255. msm_routing_put_audio_mixer),
  13256. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13257. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13258. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13259. msm_routing_put_audio_mixer),
  13260. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_USB_TX,
  13262. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13263. msm_routing_put_audio_mixer),
  13264. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13265. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13266. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13267. msm_routing_put_audio_mixer),
  13268. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13270. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13271. msm_routing_put_audio_mixer),
  13272. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13273. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13274. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13275. msm_routing_put_audio_mixer),
  13276. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13277. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13278. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13279. msm_routing_put_audio_mixer),
  13280. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13282. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13283. msm_routing_put_audio_mixer),
  13284. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13286. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13287. msm_routing_put_audio_mixer),
  13288. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13289. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13290. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13291. msm_routing_put_audio_mixer),
  13292. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13293. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13294. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13295. msm_routing_put_audio_mixer),
  13296. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13297. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13298. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13299. msm_routing_put_audio_mixer),
  13300. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13302. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13303. msm_routing_put_audio_mixer),
  13304. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13305. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13306. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13307. msm_routing_put_audio_mixer),
  13308. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13309. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13310. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13311. msm_routing_put_audio_mixer),
  13312. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13314. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13315. msm_routing_put_audio_mixer),
  13316. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13318. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13319. msm_routing_put_audio_mixer),
  13320. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13322. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13323. msm_routing_put_audio_mixer),
  13324. };
  13325. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  13326. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13327. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13328. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13329. msm_routing_put_audio_mixer),
  13330. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13331. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13332. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13333. msm_routing_put_audio_mixer),
  13334. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13335. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13336. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13337. msm_routing_put_audio_mixer),
  13338. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13339. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13340. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13341. msm_routing_put_audio_mixer),
  13342. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13343. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13344. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13345. msm_routing_put_audio_mixer),
  13346. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13347. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13348. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13349. msm_routing_put_audio_mixer),
  13350. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13351. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13352. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13353. msm_routing_put_audio_mixer),
  13354. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13355. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13356. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13357. msm_routing_put_audio_mixer),
  13358. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13359. MSM_BACKEND_DAI_INT_FM_TX,
  13360. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13361. msm_routing_put_audio_mixer),
  13362. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13363. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13364. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13365. msm_routing_put_audio_mixer),
  13366. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13367. MSM_BACKEND_DAI_AFE_PCM_TX,
  13368. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13369. msm_routing_put_audio_mixer),
  13370. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13371. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13372. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13373. msm_routing_put_audio_mixer),
  13374. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13375. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13376. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13377. msm_routing_put_audio_mixer),
  13378. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13379. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13380. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13381. msm_routing_put_audio_mixer),
  13382. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13383. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13384. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13385. msm_routing_put_audio_mixer),
  13386. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13387. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13388. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13389. msm_routing_put_audio_mixer),
  13390. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13391. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13392. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13393. msm_routing_put_audio_mixer),
  13394. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13395. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13396. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13397. msm_routing_put_audio_mixer),
  13398. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13399. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13400. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13401. msm_routing_put_audio_mixer),
  13402. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13403. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13404. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13405. msm_routing_put_audio_mixer),
  13406. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13407. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13408. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13409. msm_routing_put_audio_mixer),
  13410. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13411. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13412. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13413. msm_routing_put_audio_mixer),
  13414. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13415. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13416. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13417. msm_routing_put_audio_mixer),
  13418. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13419. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13420. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13421. msm_routing_put_audio_mixer),
  13422. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13423. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13424. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13425. msm_routing_put_audio_mixer),
  13426. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13427. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13428. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13429. msm_routing_put_audio_mixer),
  13430. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13431. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13432. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13433. msm_routing_put_audio_mixer),
  13434. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13435. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13436. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13437. msm_routing_put_audio_mixer),
  13438. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13439. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13440. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13441. msm_routing_put_audio_mixer),
  13442. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13444. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13445. msm_routing_put_audio_mixer),
  13446. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13448. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13449. msm_routing_put_audio_mixer),
  13450. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13451. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13452. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13453. msm_routing_put_audio_mixer),
  13454. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13455. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13456. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13457. msm_routing_put_audio_mixer),
  13458. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13459. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13460. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13461. msm_routing_put_audio_mixer),
  13462. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13463. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13464. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13465. msm_routing_put_audio_mixer),
  13466. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13467. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13468. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13469. msm_routing_put_audio_mixer),
  13470. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13471. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13472. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13473. msm_routing_put_audio_mixer),
  13474. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13475. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13476. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13477. msm_routing_put_audio_mixer),
  13478. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13479. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13480. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13481. msm_routing_put_audio_mixer),
  13482. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13483. MSM_BACKEND_DAI_USB_TX,
  13484. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13485. msm_routing_put_audio_mixer),
  13486. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13487. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13488. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13489. msm_routing_put_audio_mixer),
  13490. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13491. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13492. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13493. msm_routing_put_audio_mixer),
  13494. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13495. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13496. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13497. msm_routing_put_audio_mixer),
  13498. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13499. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13500. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13501. msm_routing_put_audio_mixer),
  13502. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13503. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13504. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13505. msm_routing_put_audio_mixer),
  13506. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13507. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13508. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13509. msm_routing_put_audio_mixer),
  13510. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13511. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13512. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13513. msm_routing_put_audio_mixer),
  13514. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13515. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13516. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13517. msm_routing_put_audio_mixer),
  13518. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13519. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13520. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13521. msm_routing_put_audio_mixer),
  13522. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13523. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13524. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13525. msm_routing_put_audio_mixer),
  13526. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13527. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13528. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13529. msm_routing_put_audio_mixer),
  13530. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13531. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13532. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13533. msm_routing_put_audio_mixer),
  13534. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13535. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13536. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13537. msm_routing_put_audio_mixer),
  13538. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13540. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13541. msm_routing_put_audio_mixer),
  13542. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13543. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13544. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13545. msm_routing_put_audio_mixer),
  13546. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13547. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13548. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13549. msm_routing_put_audio_mixer),
  13550. };
  13551. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13552. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13553. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13554. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13555. msm_routing_put_audio_mixer),
  13556. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13557. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13558. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13559. msm_routing_put_audio_mixer),
  13560. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13561. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13562. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13563. msm_routing_put_audio_mixer),
  13564. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13565. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13566. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13567. msm_routing_put_audio_mixer),
  13568. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13569. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13570. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13571. msm_routing_put_audio_mixer),
  13572. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13573. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13574. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13575. msm_routing_put_audio_mixer),
  13576. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13577. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13578. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13579. msm_routing_put_audio_mixer),
  13580. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13581. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13582. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13583. msm_routing_put_audio_mixer),
  13584. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13585. MSM_BACKEND_DAI_INT_FM_TX,
  13586. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13587. msm_routing_put_audio_mixer),
  13588. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13589. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13590. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13591. msm_routing_put_audio_mixer),
  13592. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13593. MSM_BACKEND_DAI_AFE_PCM_TX,
  13594. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13595. msm_routing_put_audio_mixer),
  13596. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13597. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13598. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13599. msm_routing_put_audio_mixer),
  13600. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13601. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13602. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13603. msm_routing_put_audio_mixer),
  13604. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13605. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13606. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13607. msm_routing_put_audio_mixer),
  13608. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13609. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13610. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13611. msm_routing_put_audio_mixer),
  13612. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13613. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13614. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13615. msm_routing_put_audio_mixer),
  13616. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13617. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13618. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13619. msm_routing_put_audio_mixer),
  13620. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13621. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13622. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13623. msm_routing_put_audio_mixer),
  13624. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13625. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13626. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13627. msm_routing_put_audio_mixer),
  13628. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13629. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13630. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13631. msm_routing_put_audio_mixer),
  13632. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13633. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13634. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13635. msm_routing_put_audio_mixer),
  13636. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13638. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13639. msm_routing_put_audio_mixer),
  13640. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13642. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13643. msm_routing_put_audio_mixer),
  13644. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13645. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13646. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13647. msm_routing_put_audio_mixer),
  13648. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13649. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13650. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13651. msm_routing_put_audio_mixer),
  13652. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13653. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13654. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13655. msm_routing_put_audio_mixer),
  13656. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13657. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13658. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13659. msm_routing_put_audio_mixer),
  13660. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13661. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13662. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13663. msm_routing_put_audio_mixer),
  13664. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13665. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13666. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13667. msm_routing_put_audio_mixer),
  13668. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13669. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13670. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13671. msm_routing_put_audio_mixer),
  13672. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13673. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13674. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13675. msm_routing_put_audio_mixer),
  13676. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13677. MSM_BACKEND_DAI_USB_TX,
  13678. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13679. msm_routing_put_audio_mixer),
  13680. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13681. MSM_BACKEND_DAI_MI2S_TX,
  13682. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13683. msm_routing_put_audio_mixer),
  13684. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13685. MSM_BACKEND_DAI_AUXPCM_TX,
  13686. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13687. msm_routing_put_audio_mixer),
  13688. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13689. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13690. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13691. msm_routing_put_audio_mixer),
  13692. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13693. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13694. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13695. msm_routing_put_audio_mixer),
  13696. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13697. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13698. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13699. msm_routing_put_audio_mixer),
  13700. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13701. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13702. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13703. msm_routing_put_audio_mixer),
  13704. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13705. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13706. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13707. msm_routing_put_audio_mixer),
  13708. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13709. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13710. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13711. msm_routing_put_audio_mixer),
  13712. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13713. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13714. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13715. msm_routing_put_audio_mixer),
  13716. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13717. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13718. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13719. msm_routing_put_audio_mixer),
  13720. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13721. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13722. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13723. msm_routing_get_audio_mixer,
  13724. msm_routing_put_audio_mixer),
  13725. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13726. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13727. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13728. msm_routing_get_audio_mixer,
  13729. msm_routing_put_audio_mixer),
  13730. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13731. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13732. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13733. msm_routing_get_audio_mixer,
  13734. msm_routing_put_audio_mixer),
  13735. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13736. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13737. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13738. msm_routing_get_audio_mixer,
  13739. msm_routing_put_audio_mixer),
  13740. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13741. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13742. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13743. msm_routing_get_audio_mixer,
  13744. msm_routing_put_audio_mixer),
  13745. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13747. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13748. msm_routing_get_audio_mixer,
  13749. msm_routing_put_audio_mixer),
  13750. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13751. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13752. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13753. msm_routing_put_audio_mixer),
  13754. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13755. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13756. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13757. msm_routing_put_audio_mixer),
  13758. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13759. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13760. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13761. msm_routing_put_audio_mixer),
  13762. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13763. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13764. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13765. msm_routing_put_audio_mixer),
  13766. };
  13767. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13768. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13769. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13770. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13771. msm_routing_put_audio_mixer),
  13772. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13773. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13774. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13775. msm_routing_put_audio_mixer),
  13776. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13777. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13778. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13779. msm_routing_put_audio_mixer),
  13780. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13781. MSM_BACKEND_DAI_INT_FM_TX,
  13782. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13783. msm_routing_put_audio_mixer),
  13784. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13785. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13786. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13787. msm_routing_put_audio_mixer),
  13788. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13789. MSM_BACKEND_DAI_AFE_PCM_TX,
  13790. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13791. msm_routing_put_audio_mixer),
  13792. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13793. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13794. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13795. msm_routing_put_audio_mixer),
  13796. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13797. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13798. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13799. msm_routing_put_audio_mixer),
  13800. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13801. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13802. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13803. msm_routing_put_audio_mixer),
  13804. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13806. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13807. msm_routing_put_audio_mixer),
  13808. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13809. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13810. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13811. msm_routing_put_audio_mixer),
  13812. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13814. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13815. msm_routing_put_audio_mixer),
  13816. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13818. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13819. msm_routing_put_audio_mixer),
  13820. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13822. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13823. msm_routing_put_audio_mixer),
  13824. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13825. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13826. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13827. msm_routing_put_audio_mixer),
  13828. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13829. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13830. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13831. msm_routing_put_audio_mixer),
  13832. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13833. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13834. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13835. msm_routing_put_audio_mixer),
  13836. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13837. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13838. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13839. msm_routing_put_audio_mixer),
  13840. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13841. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13842. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13843. msm_routing_put_audio_mixer),
  13844. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13845. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13846. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13847. msm_routing_put_audio_mixer),
  13848. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13849. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13850. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13851. msm_routing_put_audio_mixer),
  13852. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13853. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13854. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13855. msm_routing_put_audio_mixer),
  13856. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13857. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13858. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13859. msm_routing_put_audio_mixer),
  13860. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13861. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13862. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13863. msm_routing_put_audio_mixer),
  13864. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13865. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13866. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13867. msm_routing_put_audio_mixer),
  13868. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13869. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13870. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13871. msm_routing_put_audio_mixer),
  13872. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13873. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13874. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13875. msm_routing_put_audio_mixer),
  13876. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13877. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13878. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13879. msm_routing_put_audio_mixer),
  13880. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13881. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13882. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13883. msm_routing_put_audio_mixer),
  13884. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13885. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13886. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13887. msm_routing_put_audio_mixer),
  13888. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13889. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13890. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13891. msm_routing_put_audio_mixer),
  13892. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13893. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13894. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13895. msm_routing_put_audio_mixer),
  13896. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13897. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13898. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13899. msm_routing_put_audio_mixer),
  13900. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13901. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13902. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13903. msm_routing_put_audio_mixer),
  13904. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13905. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13906. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13907. msm_routing_put_audio_mixer),
  13908. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13909. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13910. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13911. msm_routing_put_audio_mixer),
  13912. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13913. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13914. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13915. msm_routing_put_audio_mixer),
  13916. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13917. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13918. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13919. msm_routing_put_audio_mixer),
  13920. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13921. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13922. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13923. msm_routing_put_audio_mixer),
  13924. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13925. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13926. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13927. msm_routing_put_audio_mixer),
  13928. };
  13929. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13930. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13931. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13932. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13933. msm_routing_put_audio_mixer),
  13934. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13935. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13936. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13937. msm_routing_put_audio_mixer),
  13938. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13939. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13940. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13941. msm_routing_put_audio_mixer),
  13942. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_INT_FM_TX,
  13944. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13945. msm_routing_put_audio_mixer),
  13946. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13948. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13949. msm_routing_put_audio_mixer),
  13950. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13951. MSM_BACKEND_DAI_AFE_PCM_TX,
  13952. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13953. msm_routing_put_audio_mixer),
  13954. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13955. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13956. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13957. msm_routing_put_audio_mixer),
  13958. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13959. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13960. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13961. msm_routing_put_audio_mixer),
  13962. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13963. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13964. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13965. msm_routing_put_audio_mixer),
  13966. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13967. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13968. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13969. msm_routing_put_audio_mixer),
  13970. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13971. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13972. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13973. msm_routing_put_audio_mixer),
  13974. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13975. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13976. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13977. msm_routing_put_audio_mixer),
  13978. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13979. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13980. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13981. msm_routing_put_audio_mixer),
  13982. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13983. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13984. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13985. msm_routing_put_audio_mixer),
  13986. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13987. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13988. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13989. msm_routing_put_audio_mixer),
  13990. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13991. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13992. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13993. msm_routing_put_audio_mixer),
  13994. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13995. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13996. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13997. msm_routing_put_audio_mixer),
  13998. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14000. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14001. msm_routing_put_audio_mixer),
  14002. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_USB_TX,
  14004. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14005. msm_routing_put_audio_mixer),
  14006. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14007. MSM_BACKEND_DAI_MI2S_TX,
  14008. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14009. msm_routing_put_audio_mixer),
  14010. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  14011. MSM_BACKEND_DAI_AUXPCM_TX,
  14012. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14013. msm_routing_put_audio_mixer),
  14014. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  14015. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14016. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14017. msm_routing_put_audio_mixer),
  14018. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  14019. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14020. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14021. msm_routing_put_audio_mixer),
  14022. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  14023. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14024. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14025. msm_routing_put_audio_mixer),
  14026. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14027. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14028. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14029. msm_routing_put_audio_mixer),
  14030. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  14031. MSM_BACKEND_DAI_INT2_MI2S_TX,
  14032. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14033. msm_routing_put_audio_mixer),
  14034. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14035. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14036. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14037. msm_routing_put_audio_mixer),
  14038. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14039. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14040. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14041. msm_routing_put_audio_mixer),
  14042. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14043. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14044. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14045. msm_routing_put_audio_mixer),
  14046. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14047. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14048. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14049. msm_routing_put_audio_mixer),
  14050. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14051. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14052. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14053. msm_routing_put_audio_mixer),
  14054. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14055. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14056. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14057. msm_routing_put_audio_mixer),
  14058. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14059. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14060. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14061. msm_routing_put_audio_mixer),
  14062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14064. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14065. msm_routing_get_audio_mixer,
  14066. msm_routing_put_audio_mixer),
  14067. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14068. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14069. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14070. msm_routing_get_audio_mixer,
  14071. msm_routing_put_audio_mixer),
  14072. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14073. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14074. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14075. msm_routing_get_audio_mixer,
  14076. msm_routing_put_audio_mixer),
  14077. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14079. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14080. msm_routing_get_audio_mixer,
  14081. msm_routing_put_audio_mixer),
  14082. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14083. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14084. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14085. msm_routing_get_audio_mixer,
  14086. msm_routing_put_audio_mixer),
  14087. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14088. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14089. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14090. msm_routing_get_audio_mixer,
  14091. msm_routing_put_audio_mixer),
  14092. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14093. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14094. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14095. msm_routing_put_audio_mixer),
  14096. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14097. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14098. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14099. msm_routing_put_audio_mixer),
  14100. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14101. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14102. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14103. msm_routing_put_audio_mixer),
  14104. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14105. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14106. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14107. msm_routing_put_audio_mixer),
  14108. };
  14109. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  14110. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14111. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14112. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14113. msm_routing_put_audio_mixer),
  14114. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14115. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14116. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14117. msm_routing_put_audio_mixer),
  14118. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14119. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14120. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14121. msm_routing_put_audio_mixer),
  14122. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14123. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14124. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14125. msm_routing_put_audio_mixer),
  14126. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14127. MSM_BACKEND_DAI_INT_FM_TX,
  14128. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14129. msm_routing_put_audio_mixer),
  14130. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14131. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14132. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14133. msm_routing_put_audio_mixer),
  14134. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14135. MSM_BACKEND_DAI_AFE_PCM_TX,
  14136. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14137. msm_routing_put_audio_mixer),
  14138. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14139. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14140. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14141. msm_routing_put_audio_mixer),
  14142. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14143. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14144. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14145. msm_routing_put_audio_mixer),
  14146. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14147. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14148. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14149. msm_routing_put_audio_mixer),
  14150. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14151. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14152. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14153. msm_routing_put_audio_mixer),
  14154. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14155. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14156. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14157. msm_routing_put_audio_mixer),
  14158. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14159. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14160. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14161. msm_routing_put_audio_mixer),
  14162. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14163. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14164. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14165. msm_routing_put_audio_mixer),
  14166. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14168. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14169. msm_routing_put_audio_mixer),
  14170. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14171. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14172. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14173. msm_routing_put_audio_mixer),
  14174. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14175. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14176. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14177. msm_routing_put_audio_mixer),
  14178. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14179. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14180. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14181. msm_routing_get_audio_mixer,
  14182. msm_routing_put_audio_mixer),
  14183. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14184. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14185. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14186. msm_routing_get_audio_mixer,
  14187. msm_routing_put_audio_mixer),
  14188. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14189. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14190. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14191. msm_routing_get_audio_mixer,
  14192. msm_routing_put_audio_mixer),
  14193. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14194. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14195. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14196. msm_routing_get_audio_mixer,
  14197. msm_routing_put_audio_mixer),
  14198. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14199. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14200. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14201. msm_routing_get_audio_mixer,
  14202. msm_routing_put_audio_mixer),
  14203. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14204. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14205. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14206. msm_routing_get_audio_mixer,
  14207. msm_routing_put_audio_mixer),
  14208. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14209. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14210. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14211. msm_routing_put_audio_mixer),
  14212. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14213. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14214. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14215. msm_routing_put_audio_mixer),
  14216. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14217. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14218. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14219. msm_routing_put_audio_mixer),
  14220. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14221. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14222. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14223. msm_routing_put_audio_mixer),
  14224. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14225. MSM_BACKEND_DAI_USB_TX,
  14226. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14227. msm_routing_put_audio_mixer),
  14228. };
  14229. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  14230. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14231. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14232. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14233. msm_routing_put_audio_mixer),
  14234. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14235. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14236. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14237. msm_routing_put_audio_mixer),
  14238. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14239. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14240. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14241. msm_routing_put_audio_mixer),
  14242. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14243. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14244. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14245. msm_routing_put_audio_mixer),
  14246. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14247. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14248. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14249. msm_routing_put_audio_mixer),
  14250. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14251. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14252. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14253. msm_routing_put_audio_mixer),
  14254. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14255. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14256. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14257. msm_routing_put_audio_mixer),
  14258. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14259. MSM_BACKEND_DAI_INT_FM_TX,
  14260. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14261. msm_routing_put_audio_mixer),
  14262. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14263. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14264. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14265. msm_routing_put_audio_mixer),
  14266. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14267. MSM_BACKEND_DAI_AFE_PCM_TX,
  14268. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14269. msm_routing_put_audio_mixer),
  14270. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14271. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14272. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14273. msm_routing_put_audio_mixer),
  14274. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14275. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14276. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14277. msm_routing_put_audio_mixer),
  14278. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14279. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14280. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14281. msm_routing_put_audio_mixer),
  14282. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14283. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14284. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14285. msm_routing_put_audio_mixer),
  14286. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14287. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14288. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14289. msm_routing_put_audio_mixer),
  14290. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14291. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14292. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14293. msm_routing_put_audio_mixer),
  14294. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14295. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14296. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14297. msm_routing_put_audio_mixer),
  14298. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14299. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14300. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14301. msm_routing_put_audio_mixer),
  14302. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14303. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14304. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14305. msm_routing_get_audio_mixer,
  14306. msm_routing_put_audio_mixer),
  14307. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14308. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14309. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14310. msm_routing_get_audio_mixer,
  14311. msm_routing_put_audio_mixer),
  14312. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14313. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14314. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14315. msm_routing_get_audio_mixer,
  14316. msm_routing_put_audio_mixer),
  14317. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14319. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14320. msm_routing_get_audio_mixer,
  14321. msm_routing_put_audio_mixer),
  14322. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14323. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14324. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14325. msm_routing_get_audio_mixer,
  14326. msm_routing_put_audio_mixer),
  14327. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14329. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14330. msm_routing_get_audio_mixer,
  14331. msm_routing_put_audio_mixer),
  14332. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14333. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14334. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14335. msm_routing_put_audio_mixer),
  14336. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14337. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14338. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14339. msm_routing_put_audio_mixer),
  14340. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14341. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14342. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14343. msm_routing_put_audio_mixer),
  14344. };
  14345. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  14346. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14347. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14348. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14349. msm_routing_put_audio_mixer),
  14350. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14351. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14352. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14353. msm_routing_put_audio_mixer),
  14354. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14355. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14356. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14357. msm_routing_put_audio_mixer),
  14358. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14359. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14360. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14361. msm_routing_put_audio_mixer),
  14362. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14363. MSM_BACKEND_DAI_INT_FM_TX,
  14364. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14365. msm_routing_put_audio_mixer),
  14366. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14367. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14368. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14369. msm_routing_put_audio_mixer),
  14370. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14371. MSM_BACKEND_DAI_AFE_PCM_TX,
  14372. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14373. msm_routing_put_audio_mixer),
  14374. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14375. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14376. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14377. msm_routing_put_audio_mixer),
  14378. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14379. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14380. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14381. msm_routing_put_audio_mixer),
  14382. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14383. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14384. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14385. msm_routing_put_audio_mixer),
  14386. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14387. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14388. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14389. msm_routing_put_audio_mixer),
  14390. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14391. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14392. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14393. msm_routing_put_audio_mixer),
  14394. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14395. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14396. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14397. msm_routing_put_audio_mixer),
  14398. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14399. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14400. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14401. msm_routing_put_audio_mixer),
  14402. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14403. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14404. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14405. msm_routing_put_audio_mixer),
  14406. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14407. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14408. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14409. msm_routing_put_audio_mixer),
  14410. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14411. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14412. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14413. msm_routing_put_audio_mixer),
  14414. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14415. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14416. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14417. msm_routing_put_audio_mixer),
  14418. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14419. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14420. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14421. msm_routing_get_audio_mixer,
  14422. msm_routing_put_audio_mixer),
  14423. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14424. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14425. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14426. msm_routing_get_audio_mixer,
  14427. msm_routing_put_audio_mixer),
  14428. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14429. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14430. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14431. msm_routing_get_audio_mixer,
  14432. msm_routing_put_audio_mixer),
  14433. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14434. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14435. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14436. msm_routing_get_audio_mixer,
  14437. msm_routing_put_audio_mixer),
  14438. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14439. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14440. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14441. msm_routing_get_audio_mixer,
  14442. msm_routing_put_audio_mixer),
  14443. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14444. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14445. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14446. msm_routing_get_audio_mixer,
  14447. msm_routing_put_audio_mixer),
  14448. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14449. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14450. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14451. msm_routing_put_audio_mixer),
  14452. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14454. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14455. msm_routing_put_audio_mixer),
  14456. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14457. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14458. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14459. msm_routing_put_audio_mixer),
  14460. };
  14461. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14462. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14463. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14464. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14465. msm_routing_put_audio_mixer),
  14466. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14467. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14468. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14469. msm_routing_put_audio_mixer),
  14470. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14471. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14472. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14473. msm_routing_put_audio_mixer),
  14474. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14475. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14476. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14477. msm_routing_put_audio_mixer),
  14478. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14479. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14480. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14481. msm_routing_put_audio_mixer),
  14482. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14483. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14484. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14485. msm_routing_put_audio_mixer),
  14486. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14487. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14488. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14489. msm_routing_put_audio_mixer),
  14490. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14491. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14492. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14493. msm_routing_put_audio_mixer),
  14494. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14495. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14496. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14497. msm_routing_put_audio_mixer),
  14498. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14499. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14500. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14501. msm_routing_put_audio_mixer),
  14502. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14503. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14504. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14505. msm_routing_put_audio_mixer),
  14506. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14507. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14508. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14509. msm_routing_put_audio_mixer),
  14510. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14511. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14512. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14513. msm_routing_put_audio_mixer),
  14514. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14515. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14516. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14517. msm_routing_put_audio_mixer),
  14518. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14519. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14520. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14521. msm_routing_put_audio_mixer),
  14522. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14523. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14524. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14525. msm_routing_put_audio_mixer),
  14526. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14527. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14528. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14529. msm_routing_put_audio_mixer),
  14530. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14531. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14532. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14533. msm_routing_put_audio_mixer),
  14534. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14535. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14536. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14537. msm_routing_put_audio_mixer),
  14538. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14539. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14540. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14541. msm_routing_put_audio_mixer),
  14542. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14543. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14544. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14545. msm_routing_put_audio_mixer),
  14546. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14547. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14548. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14549. msm_routing_put_audio_mixer),
  14550. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14551. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14552. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14553. msm_routing_put_audio_mixer),
  14554. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14555. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14556. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14557. msm_routing_put_audio_mixer),
  14558. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14559. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14560. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14561. msm_routing_put_audio_mixer),
  14562. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14563. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14564. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14565. msm_routing_put_audio_mixer),
  14566. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14567. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14568. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14569. msm_routing_put_audio_mixer),
  14570. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14571. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14572. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14573. msm_routing_put_audio_mixer),
  14574. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14575. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14576. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14577. msm_routing_put_audio_mixer),
  14578. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14579. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14580. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14581. msm_routing_put_audio_mixer),
  14582. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14583. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14584. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14585. msm_routing_put_audio_mixer),
  14586. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14587. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14588. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14589. msm_routing_put_audio_mixer),
  14590. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14591. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14592. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14593. msm_routing_put_audio_mixer),
  14594. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14595. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14596. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14597. msm_routing_put_audio_mixer),
  14598. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14599. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14600. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14601. msm_routing_put_audio_mixer),
  14602. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14603. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14604. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14605. msm_routing_put_audio_mixer),
  14606. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14607. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14608. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14609. msm_routing_put_audio_mixer),
  14610. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14611. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14612. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14613. msm_routing_put_audio_mixer),
  14614. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14615. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14616. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14617. msm_routing_put_audio_mixer),
  14618. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14619. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14620. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14621. msm_routing_put_audio_mixer),
  14622. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14623. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14624. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14625. msm_routing_put_audio_mixer),
  14626. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14627. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14628. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14629. msm_routing_put_audio_mixer),
  14630. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14631. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14632. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14633. msm_routing_put_audio_mixer),
  14634. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14635. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14636. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14637. msm_routing_put_audio_mixer),
  14638. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14639. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14640. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14641. msm_routing_put_audio_mixer),
  14642. };
  14643. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14644. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14645. MSM_BACKEND_DAI_AUXPCM_TX,
  14646. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14647. msm_routing_put_audio_mixer),
  14648. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14650. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14651. msm_routing_put_audio_mixer),
  14652. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14653. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14654. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14655. msm_routing_put_audio_mixer),
  14656. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14657. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14658. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14659. msm_routing_put_audio_mixer),
  14660. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14661. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14662. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14663. msm_routing_put_audio_mixer),
  14664. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14665. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14666. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14667. msm_routing_put_audio_mixer),
  14668. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14669. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14670. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14671. msm_routing_put_audio_mixer),
  14672. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14673. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14674. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14675. msm_routing_put_audio_mixer),
  14676. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14677. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14678. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14679. msm_routing_put_audio_mixer),
  14680. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14681. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14682. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14683. msm_routing_put_audio_mixer),
  14684. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14685. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14686. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14687. msm_routing_put_audio_mixer),
  14688. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14689. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14690. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14691. msm_routing_put_audio_mixer),
  14692. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14693. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14694. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14695. msm_routing_put_audio_mixer),
  14696. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14697. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14698. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14699. msm_routing_put_audio_mixer),
  14700. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14701. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14702. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14703. msm_routing_put_audio_mixer),
  14704. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14705. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14706. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14707. msm_routing_put_audio_mixer),
  14708. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14709. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14710. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14711. msm_routing_put_audio_mixer),
  14712. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14713. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14714. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14715. msm_routing_put_audio_mixer),
  14716. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14717. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14718. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14719. msm_routing_put_audio_mixer),
  14720. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14721. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14722. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14723. msm_routing_put_audio_mixer),
  14724. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14725. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14726. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14727. msm_routing_put_audio_mixer),
  14728. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14729. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14730. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14731. msm_routing_put_audio_mixer),
  14732. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14733. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14734. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14735. msm_routing_put_audio_mixer),
  14736. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14737. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14738. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14739. msm_routing_put_audio_mixer),
  14740. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14741. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14742. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14743. msm_routing_put_audio_mixer),
  14744. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14745. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14746. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14747. msm_routing_put_audio_mixer),
  14748. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14749. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14750. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14751. msm_routing_put_audio_mixer),
  14752. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14753. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14754. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14755. msm_routing_put_audio_mixer),
  14756. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14757. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14758. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14759. msm_routing_put_audio_mixer),
  14760. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14761. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14762. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14763. msm_routing_put_audio_mixer),
  14764. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14765. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14766. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14767. msm_routing_put_audio_mixer),
  14768. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14769. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14770. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14771. msm_routing_put_audio_mixer),
  14772. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14773. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14774. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14775. msm_routing_put_audio_mixer),
  14776. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14777. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14778. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14779. msm_routing_put_audio_mixer),
  14780. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14781. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14782. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14783. msm_routing_put_audio_mixer),
  14784. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14785. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14786. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14787. msm_routing_put_audio_mixer),
  14788. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14789. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14790. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14791. msm_routing_put_audio_mixer),
  14792. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14793. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14794. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14795. msm_routing_put_audio_mixer),
  14796. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14797. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14798. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14799. msm_routing_put_audio_mixer),
  14800. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14801. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14802. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14803. msm_routing_put_audio_mixer),
  14804. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14805. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14806. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14807. msm_routing_put_audio_mixer),
  14808. };
  14809. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14810. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14811. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14812. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14813. msm_routing_put_audio_mixer),
  14814. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14815. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14816. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14817. msm_routing_put_audio_mixer),
  14818. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14819. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14820. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14821. msm_routing_put_audio_mixer),
  14822. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14823. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14824. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14825. msm_routing_put_audio_mixer),
  14826. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14827. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14828. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14829. msm_routing_put_audio_mixer),
  14830. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14831. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14832. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14833. msm_routing_put_audio_mixer),
  14834. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14835. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14836. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14837. msm_routing_put_audio_mixer),
  14838. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14839. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14840. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14841. msm_routing_put_audio_mixer),
  14842. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14843. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14844. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14845. msm_routing_put_audio_mixer),
  14846. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14847. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14848. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14849. msm_routing_put_audio_mixer),
  14850. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14851. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14852. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14853. msm_routing_put_audio_mixer),
  14854. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14855. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14856. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14857. msm_routing_put_audio_mixer),
  14858. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14859. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14860. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14861. msm_routing_put_audio_mixer),
  14862. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14863. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14864. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14865. msm_routing_put_audio_mixer),
  14866. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14867. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14868. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14869. msm_routing_put_audio_mixer),
  14870. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14871. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14872. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14873. msm_routing_put_audio_mixer),
  14874. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14875. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14876. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14877. msm_routing_put_audio_mixer),
  14878. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14879. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14880. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14881. msm_routing_put_audio_mixer),
  14882. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14883. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14884. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14885. msm_routing_put_audio_mixer),
  14886. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14887. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14888. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14889. msm_routing_put_audio_mixer),
  14890. };
  14891. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  14892. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14894. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14895. msm_routing_put_audio_mixer),
  14896. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14897. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14898. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14899. msm_routing_put_audio_mixer),
  14900. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14901. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14902. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14903. msm_routing_put_audio_mixer),
  14904. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14905. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14906. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14907. msm_routing_put_audio_mixer),
  14908. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14909. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14910. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14911. msm_routing_put_audio_mixer),
  14912. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14913. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14914. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14915. msm_routing_put_audio_mixer),
  14916. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14917. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14918. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14919. msm_routing_put_audio_mixer),
  14920. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14921. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14922. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14923. msm_routing_put_audio_mixer),
  14924. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14925. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14926. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14927. msm_routing_put_audio_mixer),
  14928. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14929. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14930. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14931. msm_routing_put_audio_mixer),
  14932. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14933. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14934. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14935. msm_routing_put_audio_mixer),
  14936. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14937. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14938. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14939. msm_routing_put_audio_mixer),
  14940. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14941. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14942. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14943. msm_routing_put_audio_mixer),
  14944. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14945. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14946. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14947. msm_routing_put_audio_mixer),
  14948. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14949. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14950. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14951. msm_routing_put_audio_mixer),
  14952. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14953. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14954. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14955. msm_routing_put_audio_mixer),
  14956. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14957. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14958. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14959. msm_routing_put_audio_mixer),
  14960. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14961. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14962. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14963. msm_routing_put_audio_mixer),
  14964. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14965. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14966. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14967. msm_routing_put_audio_mixer),
  14968. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14969. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14970. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14971. msm_routing_put_audio_mixer),
  14972. };
  14973. static const struct snd_kcontrol_new mmul24_mixer_controls[] = {
  14974. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14975. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14976. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14977. msm_routing_put_audio_mixer),
  14978. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14979. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14980. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14981. msm_routing_put_audio_mixer),
  14982. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14983. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14984. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14985. msm_routing_put_audio_mixer),
  14986. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14987. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14988. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14989. msm_routing_put_audio_mixer),
  14990. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14991. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14992. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14993. msm_routing_put_audio_mixer),
  14994. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14996. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  14997. msm_routing_put_audio_mixer),
  14998. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14999. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15000. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15001. msm_routing_put_audio_mixer),
  15002. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15003. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15004. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15005. msm_routing_put_audio_mixer),
  15006. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15007. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15008. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15009. msm_routing_put_audio_mixer),
  15010. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15011. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15012. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15013. msm_routing_put_audio_mixer),
  15014. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15015. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15016. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15017. msm_routing_put_audio_mixer),
  15018. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15019. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15020. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15021. msm_routing_put_audio_mixer),
  15022. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15023. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15024. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15025. msm_routing_put_audio_mixer),
  15026. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15027. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15028. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15029. msm_routing_put_audio_mixer),
  15030. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15031. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15032. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15033. msm_routing_put_audio_mixer),
  15034. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15035. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15036. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15037. msm_routing_put_audio_mixer),
  15038. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15039. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15040. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15041. msm_routing_put_audio_mixer),
  15042. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15043. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15044. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15045. msm_routing_put_audio_mixer),
  15046. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15047. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15048. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15049. msm_routing_put_audio_mixer),
  15050. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15051. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15052. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15053. msm_routing_put_audio_mixer),
  15054. };
  15055. static const struct snd_kcontrol_new mmul25_mixer_controls[] = {
  15056. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15057. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15058. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15059. msm_routing_put_audio_mixer),
  15060. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15061. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15062. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15063. msm_routing_put_audio_mixer),
  15064. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15065. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15066. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15067. msm_routing_put_audio_mixer),
  15068. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15069. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15070. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15071. msm_routing_put_audio_mixer),
  15072. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15073. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15074. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15075. msm_routing_put_audio_mixer),
  15076. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15077. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15078. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15079. msm_routing_put_audio_mixer),
  15080. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15081. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15082. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15083. msm_routing_put_audio_mixer),
  15084. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15085. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15086. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15087. msm_routing_put_audio_mixer),
  15088. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15089. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15090. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15091. msm_routing_put_audio_mixer),
  15092. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15093. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15094. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15095. msm_routing_put_audio_mixer),
  15096. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15097. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15098. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15099. msm_routing_put_audio_mixer),
  15100. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15101. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15102. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15103. msm_routing_put_audio_mixer),
  15104. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15105. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15106. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15107. msm_routing_put_audio_mixer),
  15108. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15109. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15110. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15111. msm_routing_put_audio_mixer),
  15112. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15113. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15114. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15115. msm_routing_put_audio_mixer),
  15116. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15117. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15118. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15119. msm_routing_put_audio_mixer),
  15120. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15121. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15122. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15123. msm_routing_put_audio_mixer),
  15124. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15125. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15126. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15127. msm_routing_put_audio_mixer),
  15128. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15129. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15130. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15131. msm_routing_put_audio_mixer),
  15132. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15133. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15134. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15135. msm_routing_put_audio_mixer),
  15136. };
  15137. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  15138. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15139. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15140. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15141. msm_routing_put_audio_mixer),
  15142. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15143. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15144. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15145. msm_routing_put_audio_mixer),
  15146. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  15147. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  15148. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15149. msm_routing_put_audio_mixer),
  15150. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15151. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15152. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15153. msm_routing_put_audio_mixer),
  15154. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15155. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15156. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15157. msm_routing_put_audio_mixer),
  15158. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15160. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15161. msm_routing_put_audio_mixer),
  15162. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15163. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15164. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15165. msm_routing_put_audio_mixer),
  15166. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15167. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15168. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15169. msm_routing_put_audio_mixer),
  15170. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15171. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  15172. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15173. msm_routing_put_audio_mixer),
  15174. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15175. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  15176. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15177. msm_routing_put_audio_mixer),
  15178. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15179. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15180. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15181. msm_routing_put_audio_mixer),
  15182. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15183. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15184. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15185. msm_routing_put_audio_mixer),
  15186. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15187. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  15188. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15189. msm_routing_put_audio_mixer),
  15190. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15191. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15192. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15193. msm_routing_put_audio_mixer),
  15194. };
  15195. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  15196. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15197. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15198. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15199. msm_routing_put_audio_mixer),
  15200. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15201. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15202. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15203. msm_routing_put_audio_mixer),
  15204. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15205. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15206. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15207. msm_routing_put_audio_mixer),
  15208. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15209. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15210. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15211. msm_routing_put_audio_mixer),
  15212. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15213. MSM_BACKEND_DAI_INT_FM_TX,
  15214. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15215. msm_routing_put_audio_mixer),
  15216. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15217. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15218. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15219. msm_routing_put_audio_mixer),
  15220. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15221. MSM_BACKEND_DAI_AFE_PCM_TX,
  15222. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15223. msm_routing_put_audio_mixer),
  15224. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15225. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15226. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15227. msm_routing_put_audio_mixer),
  15228. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15229. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15230. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15231. msm_routing_put_audio_mixer),
  15232. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15233. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15234. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15235. msm_routing_put_audio_mixer),
  15236. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15237. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15238. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15239. msm_routing_put_audio_mixer),
  15240. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15242. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15243. msm_routing_put_audio_mixer),
  15244. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15245. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15246. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15247. msm_routing_put_audio_mixer),
  15248. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15249. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15250. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15251. msm_routing_put_audio_mixer),
  15252. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15253. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15254. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15255. msm_routing_put_audio_mixer),
  15256. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15257. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15258. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15259. msm_routing_put_audio_mixer),
  15260. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15261. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15262. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15263. msm_routing_put_audio_mixer),
  15264. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15265. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15266. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15267. msm_routing_put_audio_mixer),
  15268. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15269. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15270. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15271. msm_routing_get_audio_mixer,
  15272. msm_routing_put_audio_mixer),
  15273. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15274. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15275. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15276. msm_routing_get_audio_mixer,
  15277. msm_routing_put_audio_mixer),
  15278. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15279. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15280. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15281. msm_routing_get_audio_mixer,
  15282. msm_routing_put_audio_mixer),
  15283. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15284. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15285. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15286. msm_routing_get_audio_mixer,
  15287. msm_routing_put_audio_mixer),
  15288. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15289. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15290. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15291. msm_routing_get_audio_mixer,
  15292. msm_routing_put_audio_mixer),
  15293. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15294. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15295. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15296. msm_routing_get_audio_mixer,
  15297. msm_routing_put_audio_mixer),
  15298. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15299. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15300. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15301. msm_routing_put_audio_mixer),
  15302. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15303. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15304. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15305. msm_routing_put_audio_mixer),
  15306. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15307. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15308. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15309. msm_routing_put_audio_mixer),
  15310. };
  15311. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  15312. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15313. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15314. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15315. msm_routing_put_audio_mixer),
  15316. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15317. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15318. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15319. msm_routing_put_audio_mixer),
  15320. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15321. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15322. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15323. msm_routing_put_audio_mixer),
  15324. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15325. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15326. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15327. msm_routing_put_audio_mixer),
  15328. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15329. MSM_BACKEND_DAI_INT_FM_TX,
  15330. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15331. msm_routing_put_audio_mixer),
  15332. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15334. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15335. msm_routing_put_audio_mixer),
  15336. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15337. MSM_BACKEND_DAI_AFE_PCM_TX,
  15338. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15339. msm_routing_put_audio_mixer),
  15340. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15341. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15342. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15343. msm_routing_put_audio_mixer),
  15344. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15345. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15346. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15347. msm_routing_put_audio_mixer),
  15348. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15349. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15350. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15351. msm_routing_put_audio_mixer),
  15352. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15353. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15354. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15355. msm_routing_put_audio_mixer),
  15356. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15357. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15358. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15359. msm_routing_put_audio_mixer),
  15360. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15361. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15362. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15363. msm_routing_put_audio_mixer),
  15364. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15365. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15366. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15367. msm_routing_put_audio_mixer),
  15368. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15369. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15370. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15371. msm_routing_put_audio_mixer),
  15372. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15374. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15375. msm_routing_put_audio_mixer),
  15376. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15378. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15379. msm_routing_put_audio_mixer),
  15380. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15381. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15382. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15383. msm_routing_put_audio_mixer),
  15384. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15385. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15386. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15387. msm_routing_get_audio_mixer,
  15388. msm_routing_put_audio_mixer),
  15389. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15390. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15391. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15392. msm_routing_get_audio_mixer,
  15393. msm_routing_put_audio_mixer),
  15394. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15396. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15397. msm_routing_get_audio_mixer,
  15398. msm_routing_put_audio_mixer),
  15399. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15400. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15401. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15402. msm_routing_get_audio_mixer,
  15403. msm_routing_put_audio_mixer),
  15404. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15405. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15406. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15407. msm_routing_get_audio_mixer,
  15408. msm_routing_put_audio_mixer),
  15409. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15410. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15411. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15412. msm_routing_get_audio_mixer,
  15413. msm_routing_put_audio_mixer),
  15414. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15415. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15416. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15417. msm_routing_put_audio_mixer),
  15418. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15419. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15420. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15421. msm_routing_put_audio_mixer),
  15422. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15423. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15424. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15425. msm_routing_put_audio_mixer),
  15426. };
  15427. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  15428. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15430. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15431. msm_routing_put_audio_mixer),
  15432. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15434. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15435. msm_routing_put_audio_mixer),
  15436. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15437. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15438. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15439. msm_routing_put_audio_mixer),
  15440. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15441. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15442. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15443. msm_routing_put_audio_mixer),
  15444. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_INT_FM_TX,
  15446. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15447. msm_routing_put_audio_mixer),
  15448. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15450. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15451. msm_routing_put_audio_mixer),
  15452. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_AFE_PCM_TX,
  15454. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15455. msm_routing_put_audio_mixer),
  15456. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15457. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15458. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15459. msm_routing_put_audio_mixer),
  15460. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15462. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15463. msm_routing_put_audio_mixer),
  15464. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15466. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15467. msm_routing_put_audio_mixer),
  15468. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15469. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15470. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15471. msm_routing_put_audio_mixer),
  15472. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15473. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15474. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15475. msm_routing_put_audio_mixer),
  15476. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15477. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15478. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15479. msm_routing_put_audio_mixer),
  15480. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15481. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15482. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15483. msm_routing_put_audio_mixer),
  15484. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15486. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15487. msm_routing_put_audio_mixer),
  15488. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15489. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15490. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15491. msm_routing_put_audio_mixer),
  15492. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15493. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15494. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15495. msm_routing_put_audio_mixer),
  15496. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15497. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15498. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15499. msm_routing_get_audio_mixer,
  15500. msm_routing_put_audio_mixer),
  15501. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15502. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15503. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15504. msm_routing_get_audio_mixer,
  15505. msm_routing_put_audio_mixer),
  15506. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15508. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15509. msm_routing_get_audio_mixer,
  15510. msm_routing_put_audio_mixer),
  15511. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15512. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15513. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15514. msm_routing_get_audio_mixer,
  15515. msm_routing_put_audio_mixer),
  15516. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15517. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15518. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15519. msm_routing_get_audio_mixer,
  15520. msm_routing_put_audio_mixer),
  15521. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15522. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15523. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15524. msm_routing_get_audio_mixer,
  15525. msm_routing_put_audio_mixer),
  15526. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15527. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15528. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15529. msm_routing_put_audio_mixer),
  15530. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15531. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15532. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15533. msm_routing_put_audio_mixer),
  15534. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15535. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15536. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15537. msm_routing_put_audio_mixer),
  15538. };
  15539. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15540. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_PRI_I2S_RX,
  15542. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15543. msm_routing_put_voice_mixer),
  15544. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15545. MSM_BACKEND_DAI_PRI_I2S_RX,
  15546. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15547. msm_routing_put_voice_mixer),
  15548. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15549. MSM_BACKEND_DAI_PRI_I2S_RX,
  15550. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15551. msm_routing_put_voice_mixer),
  15552. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15553. MSM_BACKEND_DAI_PRI_I2S_RX,
  15554. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15555. msm_routing_put_voice_mixer),
  15556. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15557. MSM_BACKEND_DAI_PRI_I2S_RX,
  15558. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15559. msm_routing_put_voice_mixer),
  15560. };
  15561. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15562. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_SEC_I2S_RX,
  15564. MSM_FRONTEND_DAI_VOIP, 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_SEC_I2S_RX,
  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_SEC_I2S_RX,
  15572. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15573. msm_routing_put_voice_mixer),
  15574. };
  15575. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15576. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15577. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15578. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15579. msm_routing_put_voice_mixer),
  15580. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15581. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15582. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15583. msm_routing_put_voice_mixer),
  15584. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15585. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15586. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15587. msm_routing_put_voice_mixer),
  15588. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15589. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15590. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15591. msm_routing_put_voice_mixer),
  15592. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15593. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15594. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15595. msm_routing_put_voice_mixer),
  15596. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15598. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15599. msm_routing_put_voice_mixer),
  15600. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15601. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15602. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15603. msm_routing_put_voice_mixer),
  15604. };
  15605. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15606. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15608. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15609. msm_routing_put_voice_mixer),
  15610. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15611. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15612. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15613. msm_routing_put_voice_mixer),
  15614. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15615. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15616. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15617. msm_routing_put_voice_mixer),
  15618. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15619. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15620. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15621. msm_routing_put_voice_mixer),
  15622. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15623. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15624. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15625. msm_routing_put_voice_mixer),
  15626. };
  15627. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15628. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15629. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15630. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15631. msm_routing_put_voice_mixer),
  15632. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15633. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15634. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15635. msm_routing_put_voice_mixer),
  15636. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15637. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15638. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15639. msm_routing_put_voice_mixer),
  15640. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15641. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15642. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15643. msm_routing_put_voice_mixer),
  15644. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15645. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15646. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15647. msm_routing_put_voice_mixer),
  15648. };
  15649. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15650. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15651. MSM_BACKEND_DAI_USB_RX,
  15652. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15653. msm_routing_put_voice_mixer),
  15654. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15655. MSM_BACKEND_DAI_USB_RX,
  15656. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15657. msm_routing_put_voice_mixer),
  15658. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_USB_RX,
  15660. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15661. msm_routing_put_voice_mixer),
  15662. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15663. MSM_BACKEND_DAI_USB_RX,
  15664. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15665. msm_routing_put_voice_mixer),
  15666. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15667. MSM_BACKEND_DAI_USB_RX,
  15668. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15669. msm_routing_put_voice_mixer),
  15670. };
  15671. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15672. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15673. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15674. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15675. msm_routing_put_voice_mixer),
  15676. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15677. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15678. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15679. msm_routing_put_voice_mixer),
  15680. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15681. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15682. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15683. msm_routing_put_voice_mixer),
  15684. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15685. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15686. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15687. msm_routing_put_voice_mixer),
  15688. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15689. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15690. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15691. msm_routing_put_voice_mixer),
  15692. };
  15693. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15694. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15695. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15696. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15697. msm_routing_put_voice_mixer),
  15698. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15700. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15701. msm_routing_put_voice_mixer),
  15702. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15703. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15704. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15705. msm_routing_put_voice_mixer),
  15706. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15707. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15708. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15709. msm_routing_put_voice_mixer),
  15710. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15712. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15713. msm_routing_put_voice_mixer),
  15714. };
  15715. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15716. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15717. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15718. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15719. msm_routing_put_voice_mixer),
  15720. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15721. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15722. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15723. msm_routing_put_voice_mixer),
  15724. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15725. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15726. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15727. msm_routing_put_voice_mixer),
  15728. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15729. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15730. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15731. msm_routing_put_voice_mixer),
  15732. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15733. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15734. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15735. msm_routing_put_voice_mixer),
  15736. };
  15737. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  15738. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15739. MSM_BACKEND_DAI_MI2S_RX,
  15740. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15741. msm_routing_put_voice_mixer),
  15742. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15743. MSM_BACKEND_DAI_MI2S_RX,
  15744. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15745. msm_routing_put_voice_mixer),
  15746. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15747. MSM_BACKEND_DAI_MI2S_RX,
  15748. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15749. msm_routing_put_voice_mixer),
  15750. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_MI2S_RX,
  15752. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15753. msm_routing_put_voice_mixer),
  15754. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15755. MSM_BACKEND_DAI_MI2S_RX,
  15756. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15757. msm_routing_put_voice_mixer),
  15758. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15759. MSM_BACKEND_DAI_MI2S_RX,
  15760. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15761. msm_routing_put_voice_mixer),
  15762. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15763. MSM_BACKEND_DAI_MI2S_RX,
  15764. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15765. msm_routing_put_voice_mixer),
  15766. };
  15767. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  15768. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15769. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15770. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15771. msm_routing_put_voice_mixer),
  15772. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15773. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15774. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15775. msm_routing_put_voice_mixer),
  15776. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15777. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15778. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15779. msm_routing_put_voice_mixer),
  15780. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15781. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15782. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15783. msm_routing_put_voice_mixer),
  15784. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15785. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15786. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15787. msm_routing_put_voice_mixer),
  15788. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15789. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15790. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15791. msm_routing_put_voice_mixer),
  15792. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15793. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15794. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15795. msm_routing_put_voice_mixer),
  15796. };
  15797. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  15798. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15799. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15800. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15801. msm_routing_put_voice_mixer),
  15802. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15803. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15804. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15805. msm_routing_put_voice_mixer),
  15806. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15807. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15808. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15809. msm_routing_put_voice_mixer),
  15810. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15811. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15812. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15813. msm_routing_put_voice_mixer),
  15814. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15815. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15816. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15817. msm_routing_put_voice_mixer),
  15818. };
  15819. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  15820. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15821. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15822. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15823. msm_routing_put_voice_mixer),
  15824. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15825. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15826. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15827. msm_routing_put_voice_mixer),
  15828. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15829. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15830. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15831. msm_routing_put_voice_mixer),
  15832. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15833. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15834. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15835. msm_routing_put_voice_mixer),
  15836. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15837. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15838. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15839. msm_routing_put_voice_mixer),
  15840. };
  15841. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  15842. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15843. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15844. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15845. msm_routing_put_voice_mixer),
  15846. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15847. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15848. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15849. msm_routing_put_voice_mixer),
  15850. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15851. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15852. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15853. msm_routing_put_voice_mixer),
  15854. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15855. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15856. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15857. msm_routing_put_voice_mixer),
  15858. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15860. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15861. msm_routing_put_voice_mixer),
  15862. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15863. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15864. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15865. msm_routing_put_voice_mixer),
  15866. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15868. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15869. msm_routing_put_voice_mixer),
  15870. };
  15871. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  15872. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15873. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15874. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15875. msm_routing_put_voice_mixer),
  15876. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15877. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15878. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15879. msm_routing_put_voice_mixer),
  15880. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15881. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15882. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15883. msm_routing_put_voice_mixer),
  15884. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15885. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15886. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15887. msm_routing_put_voice_mixer),
  15888. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15889. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15890. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15891. msm_routing_put_voice_mixer),
  15892. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15893. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15894. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15895. msm_routing_put_voice_mixer),
  15896. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15897. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15898. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15899. msm_routing_put_voice_mixer),
  15900. };
  15901. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  15902. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15903. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15904. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15905. msm_routing_put_voice_mixer),
  15906. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15907. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15908. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15909. msm_routing_put_voice_stub_mixer),
  15910. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15911. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15912. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15913. msm_routing_put_voice_stub_mixer),
  15914. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15916. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15917. msm_routing_put_voice_mixer),
  15918. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15919. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15920. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15921. msm_routing_put_voice_mixer),
  15922. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15923. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15924. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15925. msm_routing_put_voice_mixer),
  15926. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15927. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15928. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15929. msm_routing_put_voice_mixer),
  15930. };
  15931. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  15932. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15933. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15934. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15935. msm_routing_put_voice_mixer),
  15936. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15937. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15938. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15939. msm_routing_put_voice_mixer),
  15940. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15941. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15942. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15943. msm_routing_put_voice_mixer),
  15944. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15945. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15946. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15947. msm_routing_put_voice_mixer),
  15948. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15949. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15950. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15951. msm_routing_put_voice_mixer),
  15952. };
  15953. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15954. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15955. MSM_BACKEND_DAI_AFE_PCM_RX,
  15956. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15957. msm_routing_put_voice_mixer),
  15958. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15959. MSM_BACKEND_DAI_AFE_PCM_RX,
  15960. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15961. msm_routing_put_voice_mixer),
  15962. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15963. MSM_BACKEND_DAI_AFE_PCM_RX,
  15964. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15965. msm_routing_put_voice_mixer),
  15966. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15967. MSM_BACKEND_DAI_AFE_PCM_RX,
  15968. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15969. msm_routing_put_voice_mixer),
  15970. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_AFE_PCM_RX,
  15972. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15973. msm_routing_put_voice_mixer),
  15974. };
  15975. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15976. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15977. MSM_BACKEND_DAI_AUXPCM_RX,
  15978. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15979. msm_routing_put_voice_mixer),
  15980. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15981. MSM_BACKEND_DAI_AUXPCM_RX,
  15982. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15983. msm_routing_put_voice_mixer),
  15984. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15985. MSM_BACKEND_DAI_AUXPCM_RX,
  15986. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15987. msm_routing_put_voice_mixer),
  15988. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15989. MSM_BACKEND_DAI_AUXPCM_RX,
  15990. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15991. msm_routing_put_voice_mixer),
  15992. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15993. MSM_BACKEND_DAI_AUXPCM_RX,
  15994. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15995. msm_routing_put_voice_mixer),
  15996. };
  15997. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15998. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16000. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16001. msm_routing_put_voice_mixer),
  16002. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16003. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16004. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16005. msm_routing_put_voice_mixer),
  16006. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16008. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16009. msm_routing_put_voice_mixer),
  16010. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16012. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16013. msm_routing_put_voice_mixer),
  16014. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16016. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16017. msm_routing_put_voice_mixer),
  16018. };
  16019. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  16020. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16021. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16022. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16023. msm_routing_put_voice_mixer),
  16024. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16025. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16026. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16027. msm_routing_put_voice_mixer),
  16028. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16030. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16031. msm_routing_put_voice_mixer),
  16032. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16034. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16035. msm_routing_put_voice_mixer),
  16036. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16038. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16039. msm_routing_put_voice_mixer),
  16040. };
  16041. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  16042. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16043. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16044. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16045. msm_routing_put_voice_mixer),
  16046. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16047. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16048. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16049. msm_routing_put_voice_mixer),
  16050. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16051. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16052. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16053. msm_routing_put_voice_mixer),
  16054. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16055. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16056. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16057. msm_routing_put_voice_mixer),
  16058. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16059. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16060. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16061. msm_routing_put_voice_mixer),
  16062. };
  16063. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  16064. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16065. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16066. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16067. msm_routing_put_voice_mixer),
  16068. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16069. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16070. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16071. msm_routing_put_voice_mixer),
  16072. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16073. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16074. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16075. msm_routing_put_voice_mixer),
  16076. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16077. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16078. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16079. msm_routing_put_voice_mixer),
  16080. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16081. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16082. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16083. msm_routing_put_voice_mixer),
  16084. };
  16085. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  16086. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16087. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16088. msm_routing_put_voice_mixer),
  16089. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16090. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16091. msm_routing_put_voice_mixer),
  16092. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16093. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16094. msm_routing_put_voice_mixer),
  16095. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16096. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16097. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16098. msm_routing_put_voice_mixer),
  16099. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16100. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16101. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16102. msm_routing_put_voice_mixer),
  16103. };
  16104. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  16105. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16106. MSM_BACKEND_DAI_HDMI_RX,
  16107. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16108. msm_routing_put_voice_mixer),
  16109. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16110. MSM_BACKEND_DAI_HDMI_RX,
  16111. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16112. msm_routing_put_voice_mixer),
  16113. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16114. MSM_BACKEND_DAI_HDMI_RX,
  16115. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16116. msm_routing_put_voice_mixer),
  16117. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16118. MSM_BACKEND_DAI_HDMI_RX,
  16119. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16120. msm_routing_put_voice_mixer),
  16121. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16122. MSM_BACKEND_DAI_HDMI_RX,
  16123. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16124. msm_routing_put_voice_mixer),
  16125. };
  16126. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  16127. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16128. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16129. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16130. msm_routing_put_voice_mixer),
  16131. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16132. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16133. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16134. msm_routing_put_voice_mixer),
  16135. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16136. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16137. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16138. msm_routing_put_voice_mixer),
  16139. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16140. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16141. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16142. msm_routing_put_voice_mixer),
  16143. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16144. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16145. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16146. msm_routing_put_voice_mixer),
  16147. };
  16148. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  16149. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16150. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16151. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16152. msm_routing_put_voice_mixer),
  16153. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16154. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16155. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16156. msm_routing_put_voice_mixer),
  16157. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16158. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16159. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16160. msm_routing_put_voice_mixer),
  16161. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16162. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16163. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16164. msm_routing_put_voice_mixer),
  16165. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16166. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16167. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16168. msm_routing_put_voice_mixer),
  16169. };
  16170. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  16171. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16172. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  16173. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16174. msm_routing_put_voice_mixer),
  16175. };
  16176. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  16177. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16178. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16179. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16180. msm_routing_put_voice_mixer),
  16181. };
  16182. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  16183. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16184. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16185. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16186. msm_routing_put_voice_mixer),
  16187. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16188. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16189. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16190. msm_routing_put_voice_mixer),
  16191. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16192. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16193. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16194. msm_routing_put_voice_mixer),
  16195. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16196. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16197. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16198. msm_routing_put_voice_mixer),
  16199. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16200. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16201. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16202. msm_routing_put_voice_mixer),
  16203. };
  16204. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  16205. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16206. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16207. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16208. msm_routing_put_voice_mixer),
  16209. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16210. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16211. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16212. msm_routing_put_voice_mixer),
  16213. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16214. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16215. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16216. msm_routing_put_voice_mixer),
  16217. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16218. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16219. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16220. msm_routing_put_voice_mixer),
  16221. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16222. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16223. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16224. msm_routing_put_voice_mixer),
  16225. };
  16226. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  16227. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16228. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16229. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16230. msm_routing_put_voice_mixer),
  16231. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16232. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16233. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16234. msm_routing_put_voice_mixer),
  16235. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16236. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16237. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16238. msm_routing_put_voice_mixer),
  16239. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16240. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16241. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16242. msm_routing_put_voice_mixer),
  16243. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16244. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16245. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16246. msm_routing_put_voice_mixer),
  16247. };
  16248. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  16249. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16250. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16251. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16252. msm_routing_put_voice_mixer),
  16253. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16254. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16255. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16256. msm_routing_put_voice_mixer),
  16257. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16258. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16259. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16260. msm_routing_put_voice_mixer),
  16261. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16262. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16263. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16264. msm_routing_put_voice_mixer),
  16265. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16266. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16267. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16268. msm_routing_put_voice_mixer),
  16269. };
  16270. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  16271. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16272. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16273. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16274. msm_routing_put_voice_mixer),
  16275. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16276. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16277. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16278. msm_routing_put_voice_mixer),
  16279. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16280. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16281. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16282. msm_routing_put_voice_mixer),
  16283. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16284. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16285. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16286. msm_routing_put_voice_mixer),
  16287. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16288. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16289. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16290. msm_routing_put_voice_mixer),
  16291. };
  16292. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  16293. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16294. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16295. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16296. msm_routing_put_voice_mixer),
  16297. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16298. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16299. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16300. msm_routing_put_voice_mixer),
  16301. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16302. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16303. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16304. msm_routing_put_voice_mixer),
  16305. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16306. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16307. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16308. msm_routing_put_voice_mixer),
  16309. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16310. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16311. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16312. msm_routing_put_voice_mixer),
  16313. };
  16314. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  16315. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16316. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16317. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16318. msm_routing_put_voice_mixer),
  16319. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16320. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16321. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16322. msm_routing_put_voice_mixer),
  16323. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16324. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16325. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16326. msm_routing_put_voice_mixer),
  16327. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16328. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16329. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16330. msm_routing_put_voice_mixer),
  16331. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16332. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16333. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16334. msm_routing_put_voice_mixer),
  16335. };
  16336. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  16337. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16338. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16339. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16340. msm_routing_put_voice_mixer),
  16341. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16342. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16343. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16344. msm_routing_put_voice_mixer),
  16345. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16346. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16347. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16348. msm_routing_put_voice_mixer),
  16349. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16350. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16351. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16352. msm_routing_put_voice_mixer),
  16353. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16354. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16355. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16356. msm_routing_put_voice_mixer),
  16357. };
  16358. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  16359. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16360. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16361. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16362. msm_routing_put_voice_mixer),
  16363. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16364. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16365. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16366. msm_routing_put_voice_mixer),
  16367. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16368. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16369. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16370. msm_routing_put_voice_mixer),
  16371. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16372. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16373. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16374. msm_routing_put_voice_mixer),
  16375. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16376. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16377. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16378. msm_routing_put_voice_mixer),
  16379. };
  16380. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  16381. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16382. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16383. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16384. msm_routing_put_voice_mixer),
  16385. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16386. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16387. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16388. msm_routing_put_voice_mixer),
  16389. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16390. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16391. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16392. msm_routing_put_voice_mixer),
  16393. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16394. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16395. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16396. msm_routing_put_voice_mixer),
  16397. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16398. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16399. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16400. msm_routing_put_voice_mixer),
  16401. };
  16402. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  16403. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16404. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16405. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16406. msm_routing_put_voice_mixer),
  16407. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16408. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16409. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16410. msm_routing_put_voice_stub_mixer),
  16411. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16412. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16413. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16414. msm_routing_put_voice_stub_mixer),
  16415. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16416. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16417. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16418. msm_routing_put_voice_mixer),
  16419. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16420. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16421. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16422. msm_routing_put_voice_mixer),
  16423. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16424. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16425. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16426. msm_routing_put_voice_mixer),
  16427. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16428. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16429. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16430. msm_routing_put_voice_mixer),
  16431. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16432. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16433. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16434. msm_routing_put_voice_mixer),
  16435. };
  16436. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  16437. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16438. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16439. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16440. msm_routing_put_voice_mixer),
  16441. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16442. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16443. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16444. msm_routing_put_voice_stub_mixer),
  16445. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16446. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16447. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16448. msm_routing_put_voice_stub_mixer),
  16449. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16450. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16451. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16452. msm_routing_put_voice_mixer),
  16453. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16454. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16455. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16456. msm_routing_put_voice_mixer),
  16457. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16458. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16459. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16460. msm_routing_put_voice_mixer),
  16461. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16462. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16463. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16464. msm_routing_put_voice_mixer),
  16465. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16466. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16467. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16468. msm_routing_put_voice_mixer),
  16469. };
  16470. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  16471. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16472. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16473. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16474. msm_routing_put_voice_mixer),
  16475. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16476. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16477. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16478. msm_routing_put_voice_stub_mixer),
  16479. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16480. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16481. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16482. msm_routing_put_voice_stub_mixer),
  16483. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16484. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16485. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16486. msm_routing_put_voice_mixer),
  16487. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16488. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16489. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16490. msm_routing_put_voice_mixer),
  16491. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16492. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16493. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16494. msm_routing_put_voice_mixer),
  16495. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16496. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16497. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16498. msm_routing_put_voice_mixer),
  16499. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16500. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16501. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16502. msm_routing_put_voice_mixer),
  16503. };
  16504. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  16505. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16506. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16507. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16508. msm_routing_put_voice_mixer),
  16509. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16510. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16511. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16512. msm_routing_put_voice_stub_mixer),
  16513. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16514. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16515. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16516. msm_routing_put_voice_stub_mixer),
  16517. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16518. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16519. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16520. msm_routing_put_voice_mixer),
  16521. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16522. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16523. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16524. msm_routing_put_voice_mixer),
  16525. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16527. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16528. msm_routing_put_voice_mixer),
  16529. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16530. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16531. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16532. msm_routing_put_voice_mixer),
  16533. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16534. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16535. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16536. msm_routing_put_voice_mixer),
  16537. };
  16538. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16539. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16540. MSM_BACKEND_DAI_EXTPROC_RX,
  16541. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16542. msm_routing_put_voice_mixer),
  16543. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16544. MSM_BACKEND_DAI_EXTPROC_RX,
  16545. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16546. msm_routing_put_voice_mixer),
  16547. };
  16548. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16549. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16550. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16551. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16552. msm_routing_put_voice_mixer),
  16553. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16554. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16555. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16556. msm_routing_put_voice_mixer),
  16557. };
  16558. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  16559. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16560. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16561. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16562. msm_routing_put_voice_mixer),
  16563. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16564. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16565. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16566. msm_routing_put_voice_mixer),
  16567. };
  16568. static const struct snd_kcontrol_new proxy_rx_voice_mixer_controls[] = {
  16569. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16570. MSM_BACKEND_DAI_PROXY_RX,
  16571. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16572. msm_routing_put_voice_mixer),
  16573. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16574. MSM_BACKEND_DAI_PROXY_RX,
  16575. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16576. msm_routing_put_voice_mixer),
  16577. };
  16578. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16579. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16580. MSM_BACKEND_DAI_PRI_I2S_TX,
  16581. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16582. msm_routing_put_voice_mixer),
  16583. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16584. MSM_BACKEND_DAI_MI2S_TX,
  16585. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16586. msm_routing_put_voice_mixer),
  16587. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16588. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16589. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16590. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16591. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16592. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16593. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16594. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16595. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16596. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16597. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16598. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16599. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16600. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16601. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16602. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16603. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16604. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16605. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16606. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16607. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16608. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16609. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16610. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16611. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16612. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16613. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16614. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16615. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16616. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16617. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16619. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16620. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16621. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16622. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16623. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16624. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16625. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16626. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16627. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16628. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16629. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16630. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16631. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16632. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16633. MSM_BACKEND_DAI_USB_TX,
  16634. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16635. msm_routing_put_voice_mixer),
  16636. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16637. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16638. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16639. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16640. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16641. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16642. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16643. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16644. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16645. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16646. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16647. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16648. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16649. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16650. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16651. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16652. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16653. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16654. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16655. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16656. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16657. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16658. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16659. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16660. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16661. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16662. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16663. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16664. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16665. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16666. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16667. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16668. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16669. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16670. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16671. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16672. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16673. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16674. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16675. SOC_DOUBLE_EXT("PROXY_TX_MMode1", SND_SOC_NOPM,
  16676. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16677. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16678. };
  16679. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16680. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16681. MSM_BACKEND_DAI_PRI_I2S_TX,
  16682. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16683. msm_routing_put_voice_mixer),
  16684. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16685. MSM_BACKEND_DAI_MI2S_TX,
  16686. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16687. msm_routing_put_voice_mixer),
  16688. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16689. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16690. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16691. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16692. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16693. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16694. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16695. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16696. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16697. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16698. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16699. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16700. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16701. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16702. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16703. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16704. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16705. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16706. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16707. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16708. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16709. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16710. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16711. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16712. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16713. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16714. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16715. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  16716. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16717. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16718. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  16719. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16720. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16721. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16722. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16723. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16724. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  16725. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16726. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16727. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  16728. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16729. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16730. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  16731. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16732. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16733. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  16734. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16735. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16736. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16737. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16738. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16739. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16740. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16741. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16742. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16743. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16744. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16745. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16746. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16747. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16748. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16749. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16750. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16751. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16752. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16753. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16754. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  16755. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16756. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16757. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  16758. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  16759. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16760. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  16761. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  16762. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16763. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16764. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16765. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16766. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  16767. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16768. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16769. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  16770. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16771. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16772. SOC_DOUBLE_EXT("PROXY_TX_MMode2", SND_SOC_NOPM,
  16773. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16774. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16775. };
  16776. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  16777. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  16778. MSM_BACKEND_DAI_PRI_I2S_TX,
  16779. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16780. msm_routing_put_voice_mixer),
  16781. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  16782. MSM_BACKEND_DAI_MI2S_TX,
  16783. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16784. msm_routing_put_voice_mixer),
  16785. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  16786. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16787. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16788. msm_routing_put_voice_mixer),
  16789. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  16790. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16791. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16792. msm_routing_put_voice_mixer),
  16793. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  16794. MSM_BACKEND_DAI_AFE_PCM_TX,
  16795. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16796. msm_routing_put_voice_mixer),
  16797. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16798. MSM_BACKEND_DAI_AUXPCM_TX,
  16799. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16800. msm_routing_put_voice_mixer),
  16801. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16802. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16803. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16804. msm_routing_put_voice_mixer),
  16805. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16806. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16807. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16808. msm_routing_put_voice_mixer),
  16809. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16810. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16811. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16812. msm_routing_put_voice_mixer),
  16813. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16814. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16815. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16816. msm_routing_put_voice_mixer),
  16817. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16818. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16819. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16820. msm_routing_put_voice_mixer),
  16821. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  16822. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16823. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16824. msm_routing_put_voice_mixer),
  16825. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  16826. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16827. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16828. msm_routing_put_voice_mixer),
  16829. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  16830. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16831. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16832. msm_routing_put_voice_mixer),
  16833. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  16834. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16835. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16836. msm_routing_put_voice_mixer),
  16837. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  16838. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16839. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16840. msm_routing_put_voice_mixer),
  16841. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  16842. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16843. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16844. msm_routing_put_voice_mixer),
  16845. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  16846. MSM_BACKEND_DAI_USB_TX,
  16847. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16848. msm_routing_put_voice_mixer),
  16849. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16850. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16851. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16852. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16853. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16854. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16855. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16856. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16857. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16858. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16859. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16860. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16861. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16862. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16863. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16864. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16865. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16866. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16867. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  16868. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  16869. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16870. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  16871. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  16872. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16873. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  16874. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  16875. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16876. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16877. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16878. msm_routing_put_voice_mixer),
  16879. };
  16880. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  16881. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16882. MSM_BACKEND_DAI_EXTPROC_TX,
  16883. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16884. msm_routing_put_voice_stub_mixer),
  16885. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16886. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16887. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16888. msm_routing_put_voice_stub_mixer),
  16889. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16890. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16891. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16892. msm_routing_put_voice_stub_mixer),
  16893. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16894. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16895. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16896. msm_routing_put_voice_stub_mixer),
  16897. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16898. MSM_BACKEND_DAI_MI2S_TX,
  16899. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16900. msm_routing_put_voice_stub_mixer),
  16901. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16902. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16903. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16904. msm_routing_put_voice_stub_mixer),
  16905. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16906. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16907. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16908. msm_routing_put_voice_stub_mixer),
  16909. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16910. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16911. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16912. msm_routing_put_voice_stub_mixer),
  16913. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16914. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16915. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16916. msm_routing_put_voice_stub_mixer),
  16917. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16918. MSM_BACKEND_DAI_AUXPCM_TX,
  16919. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16920. msm_routing_put_voice_stub_mixer),
  16921. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16922. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16923. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16924. msm_routing_put_voice_stub_mixer),
  16925. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16926. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16927. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16928. msm_routing_put_voice_stub_mixer),
  16929. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16930. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16931. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16932. msm_routing_put_voice_stub_mixer),
  16933. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16934. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16935. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16936. msm_routing_put_voice_stub_mixer),
  16937. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16938. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16939. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16940. msm_routing_put_voice_stub_mixer),
  16941. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16942. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16943. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16944. msm_routing_put_voice_stub_mixer),
  16945. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16946. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16947. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16948. msm_routing_put_voice_stub_mixer),
  16949. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16950. MSM_BACKEND_DAI_AFE_PCM_TX,
  16951. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16952. msm_routing_put_voice_stub_mixer),
  16953. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16955. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16956. msm_routing_put_voice_stub_mixer),
  16957. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16958. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16959. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16960. msm_routing_put_voice_stub_mixer),
  16961. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16962. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16963. 1, 0, msm_routing_get_voice_stub_mixer,
  16964. msm_routing_put_voice_stub_mixer),
  16965. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16966. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16967. 1, 0, msm_routing_get_voice_stub_mixer,
  16968. msm_routing_put_voice_stub_mixer),
  16969. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16970. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16971. 1, 0, msm_routing_get_voice_stub_mixer,
  16972. msm_routing_put_voice_stub_mixer),
  16973. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16974. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16975. 1, 0, msm_routing_get_voice_stub_mixer,
  16976. msm_routing_put_voice_stub_mixer),
  16977. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16978. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16979. 1, 0, msm_routing_get_voice_stub_mixer,
  16980. msm_routing_put_voice_stub_mixer),
  16981. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16982. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16983. 1, 0, msm_routing_get_voice_stub_mixer,
  16984. msm_routing_put_voice_stub_mixer),
  16985. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16986. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16987. 1, 0, msm_routing_get_voice_stub_mixer,
  16988. msm_routing_put_voice_stub_mixer),
  16989. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16990. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16991. 1, 0, msm_routing_get_voice_stub_mixer,
  16992. msm_routing_put_voice_stub_mixer),
  16993. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16994. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16995. 1, 0, msm_routing_get_voice_stub_mixer,
  16996. msm_routing_put_voice_stub_mixer),
  16997. };
  16998. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16999. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17000. MSM_BACKEND_DAI_EXTPROC_TX,
  17001. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17002. msm_routing_put_voice_stub_mixer),
  17003. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17004. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17005. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17006. msm_routing_put_voice_stub_mixer),
  17007. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17008. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17009. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17010. msm_routing_put_voice_stub_mixer),
  17011. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17012. MSM_BACKEND_DAI_AUXPCM_TX,
  17013. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17014. msm_routing_put_voice_stub_mixer),
  17015. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17016. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17017. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17018. msm_routing_put_voice_stub_mixer),
  17019. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17020. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17021. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17022. msm_routing_put_voice_stub_mixer),
  17023. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17024. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17025. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17026. msm_routing_put_voice_stub_mixer),
  17027. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17028. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17029. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17030. msm_routing_put_voice_stub_mixer),
  17031. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17032. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17033. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17034. msm_routing_put_voice_stub_mixer),
  17035. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17036. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17037. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17038. msm_routing_put_voice_stub_mixer),
  17039. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17040. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17041. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17042. msm_routing_put_voice_stub_mixer),
  17043. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17044. MSM_BACKEND_DAI_AFE_PCM_TX,
  17045. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17046. msm_routing_put_voice_stub_mixer),
  17047. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17048. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17049. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17050. msm_routing_put_voice_stub_mixer),
  17051. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17052. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17053. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17054. msm_routing_put_voice_stub_mixer),
  17055. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17056. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17057. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17058. msm_routing_put_voice_stub_mixer),
  17059. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17060. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17061. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17062. msm_routing_put_voice_stub_mixer),
  17063. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17064. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17065. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17066. msm_routing_put_voice_stub_mixer),
  17067. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17068. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17069. 1, 0, msm_routing_get_voice_stub_mixer,
  17070. msm_routing_put_voice_stub_mixer),
  17071. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17072. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17073. 1, 0, msm_routing_get_voice_stub_mixer,
  17074. msm_routing_put_voice_stub_mixer),
  17075. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17076. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17077. 1, 0, msm_routing_get_voice_stub_mixer,
  17078. msm_routing_put_voice_stub_mixer),
  17079. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17080. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17081. 1, 0, msm_routing_get_voice_stub_mixer,
  17082. msm_routing_put_voice_stub_mixer),
  17083. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17084. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17085. 1, 0, msm_routing_get_voice_stub_mixer,
  17086. msm_routing_put_voice_stub_mixer),
  17087. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17088. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17089. 1, 0, msm_routing_get_voice_stub_mixer,
  17090. msm_routing_put_voice_stub_mixer),
  17091. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17092. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  17093. 1, 0, msm_routing_get_voice_stub_mixer,
  17094. msm_routing_put_voice_stub_mixer),
  17095. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17096. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  17097. 1, 0, msm_routing_get_voice_stub_mixer,
  17098. msm_routing_put_voice_stub_mixer),
  17099. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17100. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  17101. 1, 0, msm_routing_get_voice_stub_mixer,
  17102. msm_routing_put_voice_stub_mixer),
  17103. };
  17104. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  17105. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17106. MSM_BACKEND_DAI_EXTPROC_TX,
  17107. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17108. msm_routing_put_voice_stub_mixer),
  17109. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17110. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17111. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17112. msm_routing_put_voice_stub_mixer),
  17113. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17114. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17115. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17116. msm_routing_put_voice_stub_mixer),
  17117. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17118. MSM_BACKEND_DAI_AUXPCM_TX,
  17119. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17120. msm_routing_put_voice_stub_mixer),
  17121. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17122. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17123. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17124. msm_routing_put_voice_stub_mixer),
  17125. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17126. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17127. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17128. msm_routing_put_voice_stub_mixer),
  17129. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17130. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17131. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17132. msm_routing_put_voice_stub_mixer),
  17133. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17134. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17135. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17136. msm_routing_put_voice_stub_mixer),
  17137. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17138. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17139. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17140. msm_routing_put_voice_stub_mixer),
  17141. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17142. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17143. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17144. msm_routing_put_voice_stub_mixer),
  17145. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17146. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17147. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17148. msm_routing_put_voice_stub_mixer),
  17149. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17150. MSM_BACKEND_DAI_AFE_PCM_TX,
  17151. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17152. msm_routing_put_voice_stub_mixer),
  17153. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17154. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17155. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17156. msm_routing_put_voice_stub_mixer),
  17157. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17158. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17159. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17160. msm_routing_put_voice_stub_mixer),
  17161. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17162. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17163. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17164. msm_routing_put_voice_stub_mixer),
  17165. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17166. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17167. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17168. msm_routing_put_voice_stub_mixer),
  17169. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17170. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17171. 1, 0, msm_routing_get_voice_stub_mixer,
  17172. msm_routing_put_voice_stub_mixer),
  17173. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17174. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17175. 1, 0, msm_routing_get_voice_stub_mixer,
  17176. msm_routing_put_voice_stub_mixer),
  17177. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17178. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17179. 1, 0, msm_routing_get_voice_stub_mixer,
  17180. msm_routing_put_voice_stub_mixer),
  17181. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17182. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17183. 1, 0, msm_routing_get_voice_stub_mixer,
  17184. msm_routing_put_voice_stub_mixer),
  17185. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17186. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17187. 1, 0, msm_routing_get_voice_stub_mixer,
  17188. msm_routing_put_voice_stub_mixer),
  17189. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17190. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17191. 1, 0, msm_routing_get_voice_stub_mixer,
  17192. msm_routing_put_voice_stub_mixer),
  17193. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17194. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  17195. 1, 0, msm_routing_get_voice_stub_mixer,
  17196. msm_routing_put_voice_stub_mixer),
  17197. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17198. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  17199. 1, 0, msm_routing_get_voice_stub_mixer,
  17200. msm_routing_put_voice_stub_mixer),
  17201. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17202. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  17203. 1, 0, msm_routing_get_voice_stub_mixer,
  17204. msm_routing_put_voice_stub_mixer),
  17205. };
  17206. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  17207. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  17208. MSM_BACKEND_DAI_PRI_I2S_TX,
  17209. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17210. msm_routing_put_voice_mixer),
  17211. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  17212. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17213. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17214. msm_routing_put_voice_mixer),
  17215. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  17216. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17217. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  17218. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17219. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  17220. MSM_BACKEND_DAI_AFE_PCM_TX,
  17221. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17222. msm_routing_put_voice_mixer),
  17223. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17224. MSM_BACKEND_DAI_AUXPCM_TX,
  17225. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17226. msm_routing_put_voice_mixer),
  17227. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17228. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17229. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17230. msm_routing_put_voice_mixer),
  17231. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17232. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17233. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17234. msm_routing_put_voice_mixer),
  17235. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17236. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17237. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17238. msm_routing_put_voice_mixer),
  17239. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17240. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17241. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17242. msm_routing_put_voice_mixer),
  17243. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17244. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17245. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17246. msm_routing_put_voice_mixer),
  17247. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  17248. MSM_BACKEND_DAI_MI2S_TX,
  17249. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17250. msm_routing_put_voice_mixer),
  17251. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17252. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17253. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17254. msm_routing_put_voice_mixer),
  17255. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17256. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17257. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17258. msm_routing_put_voice_mixer),
  17259. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17260. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17261. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17262. msm_routing_put_voice_mixer),
  17263. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  17264. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17265. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17266. msm_routing_put_voice_mixer),
  17267. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  17268. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17269. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17270. msm_routing_put_voice_mixer),
  17271. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  17272. MSM_BACKEND_DAI_USB_TX,
  17273. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17274. msm_routing_put_voice_mixer),
  17275. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17276. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17277. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17278. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17279. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17280. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17281. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17282. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17283. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17284. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17285. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17286. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17287. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17288. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17289. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17290. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17291. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17292. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17293. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  17294. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  17295. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17296. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  17297. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  17298. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17299. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  17300. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  17301. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17302. };
  17303. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  17304. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17305. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17306. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17307. msm_routing_put_port_mixer),
  17308. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17309. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17310. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17311. msm_routing_put_port_mixer),
  17312. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17313. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17314. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17315. msm_routing_put_port_mixer),
  17316. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17317. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17318. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17319. msm_routing_put_port_mixer),
  17320. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17321. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17322. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17323. msm_routing_put_port_mixer),
  17324. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17325. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17326. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17327. msm_routing_put_port_mixer),
  17328. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17329. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17330. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17331. msm_routing_put_port_mixer),
  17332. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17333. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17334. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17335. msm_routing_put_port_mixer),
  17336. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17337. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17338. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17339. msm_routing_put_port_mixer),
  17340. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17341. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17342. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17343. msm_routing_put_port_mixer),
  17344. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17345. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17346. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17347. msm_routing_put_port_mixer),
  17348. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17349. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17350. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17351. msm_routing_put_port_mixer),
  17352. };
  17353. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  17354. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17355. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17356. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17357. msm_routing_put_port_mixer),
  17358. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17359. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17360. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17361. msm_routing_put_port_mixer),
  17362. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17363. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17364. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17365. msm_routing_put_port_mixer),
  17366. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17367. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17368. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17369. msm_routing_put_port_mixer),
  17370. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17371. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17372. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17373. msm_routing_put_port_mixer),
  17374. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17375. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17376. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17377. msm_routing_put_port_mixer),
  17378. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17379. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17380. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17381. msm_routing_put_port_mixer),
  17382. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17383. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17384. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17385. msm_routing_put_port_mixer),
  17386. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17387. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17388. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17389. msm_routing_put_port_mixer),
  17390. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17391. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17392. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17393. msm_routing_put_port_mixer),
  17394. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17395. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17396. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17397. msm_routing_put_port_mixer),
  17398. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17399. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17400. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17401. msm_routing_put_port_mixer),
  17402. };
  17403. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  17404. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17405. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17406. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17407. msm_routing_put_port_mixer),
  17408. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17409. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17410. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17411. msm_routing_put_port_mixer),
  17412. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17413. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17414. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17415. msm_routing_put_port_mixer),
  17416. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17417. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17418. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17419. msm_routing_put_port_mixer),
  17420. };
  17421. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  17422. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17423. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17424. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17425. msm_routing_put_port_mixer),
  17426. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17427. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17428. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17429. msm_routing_put_port_mixer),
  17430. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17431. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17432. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17433. msm_routing_put_port_mixer),
  17434. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17435. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17436. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17437. msm_routing_put_port_mixer),
  17438. };
  17439. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  17440. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17441. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17442. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17443. msm_routing_put_port_mixer),
  17444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17445. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17446. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17447. msm_routing_put_port_mixer),
  17448. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17449. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17450. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17451. msm_routing_put_port_mixer),
  17452. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17453. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17454. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17455. msm_routing_put_port_mixer),
  17456. };
  17457. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  17458. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17459. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17460. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17461. msm_routing_put_port_mixer),
  17462. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17463. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17464. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17465. msm_routing_put_port_mixer),
  17466. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17467. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17468. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17469. msm_routing_put_port_mixer),
  17470. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17471. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17472. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17473. msm_routing_put_port_mixer),
  17474. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17475. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17476. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17477. msm_routing_put_port_mixer),
  17478. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17479. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17480. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17481. msm_routing_put_port_mixer),
  17482. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17483. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17484. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17485. msm_routing_put_port_mixer),
  17486. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17487. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17488. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17489. msm_routing_put_port_mixer),
  17490. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17491. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17492. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17493. msm_routing_put_port_mixer),
  17494. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17495. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17496. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17497. msm_routing_put_port_mixer),
  17498. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17499. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17500. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17501. msm_routing_put_port_mixer),
  17502. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17503. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17504. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17505. msm_routing_put_port_mixer),
  17506. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17507. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17508. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17509. msm_routing_put_port_mixer),
  17510. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17511. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17512. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17513. msm_routing_put_port_mixer),
  17514. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17515. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17516. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17517. msm_routing_put_port_mixer),
  17518. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17519. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17520. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17521. msm_routing_put_port_mixer),
  17522. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17523. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17524. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17525. msm_routing_put_port_mixer),
  17526. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17527. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17528. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17529. msm_routing_put_port_mixer),
  17530. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17531. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17532. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17533. msm_routing_put_port_mixer),
  17534. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17535. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17536. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17537. msm_routing_put_port_mixer),
  17538. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17539. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17540. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17541. msm_routing_put_port_mixer),
  17542. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17543. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17544. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17545. msm_routing_put_port_mixer),
  17546. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17547. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17548. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17549. msm_routing_put_port_mixer),
  17550. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17551. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17552. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17553. msm_routing_put_port_mixer),
  17554. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17555. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17556. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17557. msm_routing_put_port_mixer),
  17558. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17559. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17560. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17561. msm_routing_put_port_mixer),
  17562. };
  17563. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17564. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17565. MSM_BACKEND_DAI_AUXPCM_RX,
  17566. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17567. msm_routing_put_port_mixer),
  17568. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17569. MSM_BACKEND_DAI_AUXPCM_RX,
  17570. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17571. msm_routing_put_port_mixer),
  17572. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17573. MSM_BACKEND_DAI_AUXPCM_RX,
  17574. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17575. msm_routing_put_port_mixer),
  17576. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17577. MSM_BACKEND_DAI_AUXPCM_RX,
  17578. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17579. msm_routing_put_port_mixer),
  17580. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17581. MSM_BACKEND_DAI_AUXPCM_RX,
  17582. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17583. msm_routing_put_port_mixer),
  17584. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17585. MSM_BACKEND_DAI_AUXPCM_RX,
  17586. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17587. msm_routing_put_port_mixer),
  17588. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17589. MSM_BACKEND_DAI_AUXPCM_RX,
  17590. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17591. msm_routing_put_port_mixer),
  17592. };
  17593. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17594. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17595. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17596. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17597. msm_routing_put_port_mixer),
  17598. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17599. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17600. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17601. msm_routing_put_port_mixer),
  17602. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17603. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17604. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17605. msm_routing_put_port_mixer),
  17606. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17607. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17608. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17609. msm_routing_put_port_mixer),
  17610. };
  17611. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17612. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17613. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17614. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17615. msm_routing_put_port_mixer),
  17616. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17617. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17618. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17619. msm_routing_put_port_mixer),
  17620. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17621. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17622. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17623. msm_routing_put_port_mixer),
  17624. };
  17625. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17626. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17627. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17628. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17629. msm_routing_put_port_mixer),
  17630. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17631. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17632. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17633. msm_routing_put_port_mixer),
  17634. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17635. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17636. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17637. msm_routing_put_port_mixer),
  17638. };
  17639. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17640. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17641. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17642. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17643. msm_routing_put_port_mixer),
  17644. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17645. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17646. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17647. msm_routing_put_port_mixer),
  17648. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17649. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17650. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17651. msm_routing_put_port_mixer),
  17652. };
  17653. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17654. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17655. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17656. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17657. msm_routing_put_port_mixer),
  17658. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17659. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17660. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17661. msm_routing_put_port_mixer),
  17662. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17663. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17664. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17665. msm_routing_put_port_mixer),
  17666. };
  17667. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17668. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17669. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17670. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17671. msm_routing_put_port_mixer),
  17672. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17673. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17674. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17675. msm_routing_put_port_mixer),
  17676. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17677. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17678. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17679. msm_routing_put_port_mixer),
  17680. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17681. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17682. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17683. msm_routing_put_port_mixer),
  17684. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17685. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17686. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17687. msm_routing_put_port_mixer),
  17688. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17689. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17690. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17691. msm_routing_put_port_mixer),
  17692. };
  17693. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17694. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17695. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17696. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17697. msm_routing_put_port_mixer),
  17698. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17699. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17700. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17701. msm_routing_put_port_mixer),
  17702. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17703. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17704. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17705. msm_routing_put_port_mixer),
  17706. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17707. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17708. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17709. msm_routing_put_port_mixer),
  17710. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  17711. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17712. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  17713. msm_routing_put_port_mixer),
  17714. };
  17715. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  17716. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17717. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17718. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17719. msm_routing_put_port_mixer),
  17720. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17721. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17722. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17723. msm_routing_put_port_mixer),
  17724. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17725. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17726. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17727. msm_routing_put_port_mixer),
  17728. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17729. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17730. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17731. msm_routing_put_port_mixer),
  17732. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17733. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17734. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17735. msm_routing_put_port_mixer),
  17736. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17737. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17738. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17739. msm_routing_put_port_mixer),
  17740. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17741. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17742. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17743. msm_routing_put_port_mixer),
  17744. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17745. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17746. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17747. msm_routing_put_port_mixer),
  17748. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17749. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17750. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17751. msm_routing_put_port_mixer),
  17752. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17753. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17754. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17755. msm_routing_put_port_mixer),
  17756. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17757. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17758. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17759. msm_routing_put_port_mixer),
  17760. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17761. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17762. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17763. msm_routing_put_port_mixer),
  17764. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17765. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17766. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17767. msm_routing_put_port_mixer),
  17768. };
  17769. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  17770. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17771. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17772. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17773. msm_routing_put_port_mixer),
  17774. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17775. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17776. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17777. msm_routing_put_port_mixer),
  17778. };
  17779. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  17780. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17781. MSM_BACKEND_DAI_AFE_PCM_RX,
  17782. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17783. msm_routing_put_port_mixer),
  17784. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17785. MSM_BACKEND_DAI_AFE_PCM_RX,
  17786. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17787. msm_routing_put_port_mixer),
  17788. };
  17789. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  17790. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17791. MSM_BACKEND_DAI_HDMI_RX,
  17792. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17793. msm_routing_put_port_mixer),
  17794. };
  17795. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  17796. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17797. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  17798. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17799. msm_routing_put_port_mixer),
  17800. };
  17801. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  17802. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17803. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  17804. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17805. msm_routing_put_port_mixer),
  17806. };
  17807. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  17808. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17809. MSM_BACKEND_DAI_SEC_I2S_RX,
  17810. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17811. msm_routing_put_port_mixer),
  17812. };
  17813. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  17814. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17815. MSM_BACKEND_DAI_MI2S_RX,
  17816. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17817. msm_routing_put_port_mixer),
  17818. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17819. MSM_BACKEND_DAI_MI2S_RX,
  17820. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17821. msm_routing_put_port_mixer),
  17822. };
  17823. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  17824. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17825. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17826. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17827. msm_routing_put_port_mixer),
  17828. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17829. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17830. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17831. msm_routing_put_port_mixer),
  17832. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17833. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17834. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17835. msm_routing_put_port_mixer),
  17836. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17837. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17838. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17839. msm_routing_put_port_mixer),
  17840. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17841. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17842. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17843. msm_routing_put_port_mixer),
  17844. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17845. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17846. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17847. msm_routing_put_port_mixer),
  17848. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17849. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17850. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17851. msm_routing_put_port_mixer),
  17852. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17853. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17854. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17855. msm_routing_put_port_mixer),
  17856. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17857. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17858. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17859. msm_routing_put_port_mixer),
  17860. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17861. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17862. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17863. msm_routing_put_port_mixer),
  17864. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17865. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17866. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17867. msm_routing_put_port_mixer),
  17868. };
  17869. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  17870. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17871. MSM_BACKEND_DAI_USB_RX,
  17872. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  17873. msm_routing_put_port_mixer),
  17874. };
  17875. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  17876. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17877. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17878. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17879. msm_routing_put_port_mixer),
  17880. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17881. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17882. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17883. msm_routing_put_port_mixer),
  17884. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17885. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17886. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17887. msm_routing_put_port_mixer),
  17888. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17889. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17890. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17891. msm_routing_put_port_mixer),
  17892. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17893. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17894. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17895. msm_routing_put_port_mixer),
  17896. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17897. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17898. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17899. msm_routing_put_port_mixer),
  17900. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17901. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17902. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17903. msm_routing_put_port_mixer),
  17904. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17905. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17906. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17907. msm_routing_put_port_mixer),
  17908. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17909. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17910. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17911. msm_routing_put_port_mixer),
  17912. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17913. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17914. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17915. msm_routing_put_port_mixer),
  17916. };
  17917. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  17918. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17919. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17920. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17921. msm_routing_put_port_mixer),
  17922. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17923. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17924. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17925. msm_routing_put_port_mixer),
  17926. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17927. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17928. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17929. msm_routing_put_port_mixer),
  17930. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17931. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17932. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17933. msm_routing_put_port_mixer),
  17934. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17935. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17936. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17937. msm_routing_put_port_mixer),
  17938. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17939. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17940. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17941. msm_routing_put_port_mixer),
  17942. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17943. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17944. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17945. msm_routing_put_port_mixer),
  17946. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17947. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17948. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17949. msm_routing_put_port_mixer),
  17950. };
  17951. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  17952. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17953. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17954. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17955. msm_routing_put_port_mixer),
  17956. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17957. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17958. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17959. msm_routing_put_port_mixer),
  17960. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17961. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17962. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17963. msm_routing_put_port_mixer),
  17964. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17965. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17966. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17967. msm_routing_put_port_mixer),
  17968. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17969. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17970. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17971. msm_routing_put_port_mixer),
  17972. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17973. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17974. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17975. msm_routing_put_port_mixer),
  17976. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17977. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17978. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17979. msm_routing_put_port_mixer),
  17980. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17981. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17982. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17983. msm_routing_put_port_mixer),
  17984. };
  17985. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17986. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17987. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17988. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17989. msm_routing_get_port_mixer,
  17990. msm_routing_put_port_mixer),
  17991. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17992. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17993. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17994. msm_routing_get_port_mixer,
  17995. msm_routing_put_port_mixer),
  17996. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17997. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17998. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17999. msm_routing_get_port_mixer,
  18000. msm_routing_put_port_mixer),
  18001. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18002. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18003. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18004. msm_routing_get_port_mixer,
  18005. msm_routing_put_port_mixer),
  18006. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18007. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18008. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18009. msm_routing_get_port_mixer,
  18010. msm_routing_put_port_mixer),
  18011. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18012. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18013. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18014. msm_routing_get_port_mixer,
  18015. msm_routing_put_port_mixer),
  18016. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18017. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18018. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18019. msm_routing_get_port_mixer,
  18020. msm_routing_put_port_mixer),
  18021. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18022. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18023. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18024. msm_routing_get_port_mixer,
  18025. msm_routing_put_port_mixer),
  18026. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18027. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18028. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18029. msm_routing_get_port_mixer,
  18030. msm_routing_put_port_mixer),
  18031. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18032. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18033. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18034. msm_routing_get_port_mixer,
  18035. msm_routing_put_port_mixer),
  18036. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18037. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18038. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18039. msm_routing_get_port_mixer,
  18040. msm_routing_put_port_mixer),
  18041. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18042. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18043. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18044. msm_routing_get_port_mixer,
  18045. msm_routing_put_port_mixer),
  18046. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18047. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18048. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18049. msm_routing_get_port_mixer,
  18050. msm_routing_put_port_mixer),
  18051. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18052. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18053. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18054. msm_routing_get_port_mixer,
  18055. msm_routing_put_port_mixer),
  18056. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18057. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18058. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18059. msm_routing_get_port_mixer,
  18060. msm_routing_put_port_mixer),
  18061. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18062. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18063. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18064. msm_routing_get_port_mixer,
  18065. msm_routing_put_port_mixer),
  18066. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18067. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18068. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18069. msm_routing_get_port_mixer,
  18070. msm_routing_put_port_mixer),
  18071. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18072. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18073. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18074. msm_routing_get_port_mixer,
  18075. msm_routing_put_port_mixer),
  18076. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18077. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18078. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18079. msm_routing_get_port_mixer,
  18080. msm_routing_put_port_mixer),
  18081. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18082. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18083. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18084. msm_routing_get_port_mixer,
  18085. msm_routing_put_port_mixer),
  18086. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18087. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18088. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18089. msm_routing_get_port_mixer,
  18090. msm_routing_put_port_mixer),
  18091. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18092. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18093. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18094. msm_routing_get_port_mixer,
  18095. msm_routing_put_port_mixer),
  18096. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18097. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18098. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18099. msm_routing_get_port_mixer,
  18100. msm_routing_put_port_mixer),
  18101. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18102. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18103. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18104. msm_routing_get_port_mixer,
  18105. msm_routing_put_port_mixer),
  18106. };
  18107. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  18108. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18109. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18110. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18111. msm_routing_get_port_mixer,
  18112. msm_routing_put_port_mixer),
  18113. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18114. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18115. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18116. msm_routing_get_port_mixer,
  18117. msm_routing_put_port_mixer),
  18118. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18119. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18120. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18121. msm_routing_get_port_mixer,
  18122. msm_routing_put_port_mixer),
  18123. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18124. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18125. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18126. msm_routing_get_port_mixer,
  18127. msm_routing_put_port_mixer),
  18128. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18129. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18130. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18131. msm_routing_get_port_mixer,
  18132. msm_routing_put_port_mixer),
  18133. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18134. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18135. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18136. msm_routing_get_port_mixer,
  18137. msm_routing_put_port_mixer),
  18138. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18139. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18140. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18141. msm_routing_get_port_mixer,
  18142. msm_routing_put_port_mixer),
  18143. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18144. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18145. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18146. msm_routing_get_port_mixer,
  18147. msm_routing_put_port_mixer),
  18148. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18149. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18150. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18151. msm_routing_get_port_mixer,
  18152. msm_routing_put_port_mixer),
  18153. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18154. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18155. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18156. msm_routing_get_port_mixer,
  18157. msm_routing_put_port_mixer),
  18158. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18159. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18160. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18161. msm_routing_get_port_mixer,
  18162. msm_routing_put_port_mixer),
  18163. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18164. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18165. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18166. msm_routing_get_port_mixer,
  18167. msm_routing_put_port_mixer),
  18168. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18169. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18170. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18171. msm_routing_get_port_mixer,
  18172. msm_routing_put_port_mixer),
  18173. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18174. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18175. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18176. msm_routing_get_port_mixer,
  18177. msm_routing_put_port_mixer),
  18178. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18179. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18180. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18181. msm_routing_get_port_mixer,
  18182. msm_routing_put_port_mixer),
  18183. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18184. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18185. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18186. msm_routing_get_port_mixer,
  18187. msm_routing_put_port_mixer),
  18188. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18189. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18190. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18191. msm_routing_get_port_mixer,
  18192. msm_routing_put_port_mixer),
  18193. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18194. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18195. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18196. msm_routing_get_port_mixer,
  18197. msm_routing_put_port_mixer),
  18198. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18199. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18200. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18201. msm_routing_get_port_mixer,
  18202. msm_routing_put_port_mixer),
  18203. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18204. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18205. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18206. msm_routing_get_port_mixer,
  18207. msm_routing_put_port_mixer),
  18208. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18209. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18210. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18211. msm_routing_get_port_mixer,
  18212. msm_routing_put_port_mixer),
  18213. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18214. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18215. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18216. msm_routing_get_port_mixer,
  18217. msm_routing_put_port_mixer),
  18218. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18219. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18220. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18221. msm_routing_get_port_mixer,
  18222. msm_routing_put_port_mixer),
  18223. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18224. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18225. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18226. msm_routing_get_port_mixer,
  18227. msm_routing_put_port_mixer),
  18228. };
  18229. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  18230. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18231. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18232. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18233. msm_routing_get_port_mixer,
  18234. msm_routing_put_port_mixer),
  18235. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18236. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18237. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18238. msm_routing_get_port_mixer,
  18239. msm_routing_put_port_mixer),
  18240. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18241. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18242. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18243. msm_routing_get_port_mixer,
  18244. msm_routing_put_port_mixer),
  18245. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18246. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18247. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18248. msm_routing_get_port_mixer,
  18249. msm_routing_put_port_mixer),
  18250. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18251. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18252. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18253. msm_routing_get_port_mixer,
  18254. msm_routing_put_port_mixer),
  18255. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18256. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18257. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18258. msm_routing_get_port_mixer,
  18259. msm_routing_put_port_mixer),
  18260. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18261. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18262. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18263. msm_routing_get_port_mixer,
  18264. msm_routing_put_port_mixer),
  18265. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18266. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18267. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18268. msm_routing_get_port_mixer,
  18269. msm_routing_put_port_mixer),
  18270. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18271. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18272. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18273. msm_routing_get_port_mixer,
  18274. msm_routing_put_port_mixer),
  18275. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18276. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18277. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18278. msm_routing_get_port_mixer,
  18279. msm_routing_put_port_mixer),
  18280. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18281. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18282. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18283. msm_routing_get_port_mixer,
  18284. msm_routing_put_port_mixer),
  18285. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18286. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18287. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18288. msm_routing_get_port_mixer,
  18289. msm_routing_put_port_mixer),
  18290. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18291. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18292. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18293. msm_routing_get_port_mixer,
  18294. msm_routing_put_port_mixer),
  18295. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18296. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18297. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18298. msm_routing_get_port_mixer,
  18299. msm_routing_put_port_mixer),
  18300. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18301. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18302. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18303. msm_routing_get_port_mixer,
  18304. msm_routing_put_port_mixer),
  18305. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18306. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18307. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18308. msm_routing_get_port_mixer,
  18309. msm_routing_put_port_mixer),
  18310. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18311. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18312. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18313. msm_routing_get_port_mixer,
  18314. msm_routing_put_port_mixer),
  18315. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18316. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18317. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18318. msm_routing_get_port_mixer,
  18319. msm_routing_put_port_mixer),
  18320. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18321. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18322. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18323. msm_routing_get_port_mixer,
  18324. msm_routing_put_port_mixer),
  18325. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18326. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18327. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18328. msm_routing_get_port_mixer,
  18329. msm_routing_put_port_mixer),
  18330. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18331. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18332. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18333. msm_routing_get_port_mixer,
  18334. msm_routing_put_port_mixer),
  18335. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18336. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18337. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18338. msm_routing_get_port_mixer,
  18339. msm_routing_put_port_mixer),
  18340. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18341. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18342. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18343. msm_routing_get_port_mixer,
  18344. msm_routing_put_port_mixer),
  18345. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18346. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18347. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18348. msm_routing_get_port_mixer,
  18349. msm_routing_put_port_mixer),
  18350. };
  18351. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  18352. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18353. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18354. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18355. msm_routing_get_port_mixer,
  18356. msm_routing_put_port_mixer),
  18357. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18358. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18359. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18360. msm_routing_get_port_mixer,
  18361. msm_routing_put_port_mixer),
  18362. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18363. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18364. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18365. msm_routing_get_port_mixer,
  18366. msm_routing_put_port_mixer),
  18367. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18368. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18369. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18370. msm_routing_get_port_mixer,
  18371. msm_routing_put_port_mixer),
  18372. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18373. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18374. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18375. msm_routing_get_port_mixer,
  18376. msm_routing_put_port_mixer),
  18377. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18378. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18379. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18380. msm_routing_get_port_mixer,
  18381. msm_routing_put_port_mixer),
  18382. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18383. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18384. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18385. msm_routing_get_port_mixer,
  18386. msm_routing_put_port_mixer),
  18387. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18388. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18389. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18390. msm_routing_get_port_mixer,
  18391. msm_routing_put_port_mixer),
  18392. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18393. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18394. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18395. msm_routing_get_port_mixer,
  18396. msm_routing_put_port_mixer),
  18397. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18398. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18399. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18400. msm_routing_get_port_mixer,
  18401. msm_routing_put_port_mixer),
  18402. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18403. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18404. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18405. msm_routing_get_port_mixer,
  18406. msm_routing_put_port_mixer),
  18407. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18408. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18409. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18410. msm_routing_get_port_mixer,
  18411. msm_routing_put_port_mixer),
  18412. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18413. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18414. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18415. msm_routing_get_port_mixer,
  18416. msm_routing_put_port_mixer),
  18417. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18418. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18419. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18420. msm_routing_get_port_mixer,
  18421. msm_routing_put_port_mixer),
  18422. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18423. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18424. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18425. msm_routing_get_port_mixer,
  18426. msm_routing_put_port_mixer),
  18427. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18428. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18429. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18430. msm_routing_get_port_mixer,
  18431. msm_routing_put_port_mixer),
  18432. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18433. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18434. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18435. msm_routing_get_port_mixer,
  18436. msm_routing_put_port_mixer),
  18437. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18438. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18439. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18440. msm_routing_get_port_mixer,
  18441. msm_routing_put_port_mixer),
  18442. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18443. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18444. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18445. msm_routing_get_port_mixer,
  18446. msm_routing_put_port_mixer),
  18447. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18448. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18449. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18450. msm_routing_get_port_mixer,
  18451. msm_routing_put_port_mixer),
  18452. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18453. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18454. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18455. msm_routing_get_port_mixer,
  18456. msm_routing_put_port_mixer),
  18457. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18458. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18459. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18460. msm_routing_get_port_mixer,
  18461. msm_routing_put_port_mixer),
  18462. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18463. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18464. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18465. msm_routing_get_port_mixer,
  18466. msm_routing_put_port_mixer),
  18467. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18468. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18469. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18470. msm_routing_get_port_mixer,
  18471. msm_routing_put_port_mixer),
  18472. };
  18473. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  18474. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18475. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18476. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18477. msm_routing_get_port_mixer,
  18478. msm_routing_put_port_mixer),
  18479. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18480. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18481. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18482. msm_routing_get_port_mixer,
  18483. msm_routing_put_port_mixer),
  18484. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18485. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18486. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18487. msm_routing_get_port_mixer,
  18488. msm_routing_put_port_mixer),
  18489. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18490. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18491. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18492. msm_routing_get_port_mixer,
  18493. msm_routing_put_port_mixer),
  18494. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18495. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18496. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18497. msm_routing_get_port_mixer,
  18498. msm_routing_put_port_mixer),
  18499. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18500. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18501. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18502. msm_routing_get_port_mixer,
  18503. msm_routing_put_port_mixer),
  18504. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18505. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18506. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18507. msm_routing_get_port_mixer,
  18508. msm_routing_put_port_mixer),
  18509. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18510. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18511. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18512. msm_routing_get_port_mixer,
  18513. msm_routing_put_port_mixer),
  18514. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18515. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18516. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18517. msm_routing_get_port_mixer,
  18518. msm_routing_put_port_mixer),
  18519. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18520. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18521. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18522. msm_routing_get_port_mixer,
  18523. msm_routing_put_port_mixer),
  18524. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18525. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18526. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18527. msm_routing_get_port_mixer,
  18528. msm_routing_put_port_mixer),
  18529. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18530. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18531. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18532. msm_routing_get_port_mixer,
  18533. msm_routing_put_port_mixer),
  18534. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18535. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18536. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18537. msm_routing_get_port_mixer,
  18538. msm_routing_put_port_mixer),
  18539. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18540. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18541. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18542. msm_routing_get_port_mixer,
  18543. msm_routing_put_port_mixer),
  18544. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18545. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18546. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18547. msm_routing_get_port_mixer,
  18548. msm_routing_put_port_mixer),
  18549. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18550. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18551. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18552. msm_routing_get_port_mixer,
  18553. msm_routing_put_port_mixer),
  18554. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18555. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18556. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18557. msm_routing_get_port_mixer,
  18558. msm_routing_put_port_mixer),
  18559. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18560. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18561. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18562. msm_routing_get_port_mixer,
  18563. msm_routing_put_port_mixer),
  18564. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18565. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18566. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18567. msm_routing_get_port_mixer,
  18568. msm_routing_put_port_mixer),
  18569. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18570. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18571. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18572. msm_routing_get_port_mixer,
  18573. msm_routing_put_port_mixer),
  18574. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18575. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18576. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18577. msm_routing_get_port_mixer,
  18578. msm_routing_put_port_mixer),
  18579. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18580. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18581. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18582. msm_routing_get_port_mixer,
  18583. msm_routing_put_port_mixer),
  18584. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18585. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18586. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18587. msm_routing_get_port_mixer,
  18588. msm_routing_put_port_mixer),
  18589. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18590. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18591. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18592. msm_routing_get_port_mixer,
  18593. msm_routing_put_port_mixer),
  18594. };
  18595. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18596. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18597. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18598. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18599. msm_routing_get_port_mixer,
  18600. msm_routing_put_port_mixer),
  18601. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18602. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18603. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18604. msm_routing_get_port_mixer,
  18605. msm_routing_put_port_mixer),
  18606. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18607. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18608. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18609. msm_routing_get_port_mixer,
  18610. msm_routing_put_port_mixer),
  18611. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18612. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18613. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18614. msm_routing_get_port_mixer,
  18615. msm_routing_put_port_mixer),
  18616. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18617. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18618. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18619. msm_routing_get_port_mixer,
  18620. msm_routing_put_port_mixer),
  18621. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18622. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18623. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18624. msm_routing_get_port_mixer,
  18625. msm_routing_put_port_mixer),
  18626. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18627. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18628. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18629. msm_routing_get_port_mixer,
  18630. msm_routing_put_port_mixer),
  18631. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18632. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18633. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18634. msm_routing_get_port_mixer,
  18635. msm_routing_put_port_mixer),
  18636. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18637. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18638. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18639. msm_routing_get_port_mixer,
  18640. msm_routing_put_port_mixer),
  18641. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18642. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18643. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18644. msm_routing_get_port_mixer,
  18645. msm_routing_put_port_mixer),
  18646. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18647. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18648. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18649. msm_routing_get_port_mixer,
  18650. msm_routing_put_port_mixer),
  18651. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18652. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18653. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18654. msm_routing_get_port_mixer,
  18655. msm_routing_put_port_mixer),
  18656. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18657. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18658. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18659. msm_routing_get_port_mixer,
  18660. msm_routing_put_port_mixer),
  18661. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18662. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18663. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18664. msm_routing_get_port_mixer,
  18665. msm_routing_put_port_mixer),
  18666. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18667. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18668. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18669. msm_routing_get_port_mixer,
  18670. msm_routing_put_port_mixer),
  18671. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18672. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18673. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18674. msm_routing_get_port_mixer,
  18675. msm_routing_put_port_mixer),
  18676. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18677. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18678. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18679. msm_routing_get_port_mixer,
  18680. msm_routing_put_port_mixer),
  18681. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18682. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18683. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18684. msm_routing_get_port_mixer,
  18685. msm_routing_put_port_mixer),
  18686. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18687. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18688. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18689. msm_routing_get_port_mixer,
  18690. msm_routing_put_port_mixer),
  18691. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18692. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18693. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18694. msm_routing_get_port_mixer,
  18695. msm_routing_put_port_mixer),
  18696. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18697. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18698. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18699. msm_routing_get_port_mixer,
  18700. msm_routing_put_port_mixer),
  18701. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18702. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18703. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18704. msm_routing_get_port_mixer,
  18705. msm_routing_put_port_mixer),
  18706. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18707. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18708. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18709. msm_routing_get_port_mixer,
  18710. msm_routing_put_port_mixer),
  18711. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18712. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18713. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18714. msm_routing_get_port_mixer,
  18715. msm_routing_put_port_mixer),
  18716. };
  18717. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  18718. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18719. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18720. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18721. msm_routing_get_port_mixer,
  18722. msm_routing_put_port_mixer),
  18723. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18724. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18725. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18726. msm_routing_get_port_mixer,
  18727. msm_routing_put_port_mixer),
  18728. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18729. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18730. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18731. msm_routing_get_port_mixer,
  18732. msm_routing_put_port_mixer),
  18733. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18734. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18735. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18736. msm_routing_get_port_mixer,
  18737. msm_routing_put_port_mixer),
  18738. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18739. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18740. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18741. msm_routing_get_port_mixer,
  18742. msm_routing_put_port_mixer),
  18743. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18744. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18745. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18746. msm_routing_get_port_mixer,
  18747. msm_routing_put_port_mixer),
  18748. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18749. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18750. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18751. msm_routing_get_port_mixer,
  18752. msm_routing_put_port_mixer),
  18753. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18754. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18755. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18756. msm_routing_get_port_mixer,
  18757. msm_routing_put_port_mixer),
  18758. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18759. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18760. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18761. msm_routing_get_port_mixer,
  18762. msm_routing_put_port_mixer),
  18763. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18764. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18765. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18766. msm_routing_get_port_mixer,
  18767. msm_routing_put_port_mixer),
  18768. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18769. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18770. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18771. msm_routing_get_port_mixer,
  18772. msm_routing_put_port_mixer),
  18773. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18774. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18775. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18776. msm_routing_get_port_mixer,
  18777. msm_routing_put_port_mixer),
  18778. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18779. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18780. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18781. msm_routing_get_port_mixer,
  18782. msm_routing_put_port_mixer),
  18783. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18784. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18785. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18786. msm_routing_get_port_mixer,
  18787. msm_routing_put_port_mixer),
  18788. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18789. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18790. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18791. msm_routing_get_port_mixer,
  18792. msm_routing_put_port_mixer),
  18793. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18794. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18795. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18796. msm_routing_get_port_mixer,
  18797. msm_routing_put_port_mixer),
  18798. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18799. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18800. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18801. msm_routing_get_port_mixer,
  18802. msm_routing_put_port_mixer),
  18803. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18804. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18805. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18806. msm_routing_get_port_mixer,
  18807. msm_routing_put_port_mixer),
  18808. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18809. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18810. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18811. msm_routing_get_port_mixer,
  18812. msm_routing_put_port_mixer),
  18813. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18814. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18815. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18816. msm_routing_get_port_mixer,
  18817. msm_routing_put_port_mixer),
  18818. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18819. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18820. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18821. msm_routing_get_port_mixer,
  18822. msm_routing_put_port_mixer),
  18823. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18824. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18825. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18826. msm_routing_get_port_mixer,
  18827. msm_routing_put_port_mixer),
  18828. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18829. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18830. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18831. msm_routing_get_port_mixer,
  18832. msm_routing_put_port_mixer),
  18833. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18834. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18835. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18836. msm_routing_get_port_mixer,
  18837. msm_routing_put_port_mixer),
  18838. };
  18839. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  18840. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18841. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18842. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18843. msm_routing_get_port_mixer,
  18844. msm_routing_put_port_mixer),
  18845. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18846. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18847. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18848. msm_routing_get_port_mixer,
  18849. msm_routing_put_port_mixer),
  18850. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18851. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18852. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18853. msm_routing_get_port_mixer,
  18854. msm_routing_put_port_mixer),
  18855. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18856. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18857. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18858. msm_routing_get_port_mixer,
  18859. msm_routing_put_port_mixer),
  18860. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18861. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18862. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18863. msm_routing_get_port_mixer,
  18864. msm_routing_put_port_mixer),
  18865. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18866. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18867. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18868. msm_routing_get_port_mixer,
  18869. msm_routing_put_port_mixer),
  18870. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18871. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18872. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18873. msm_routing_get_port_mixer,
  18874. msm_routing_put_port_mixer),
  18875. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18876. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18877. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18878. msm_routing_get_port_mixer,
  18879. msm_routing_put_port_mixer),
  18880. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18881. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18882. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18883. msm_routing_get_port_mixer,
  18884. msm_routing_put_port_mixer),
  18885. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18886. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18887. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18888. msm_routing_get_port_mixer,
  18889. msm_routing_put_port_mixer),
  18890. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18891. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18892. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18893. msm_routing_get_port_mixer,
  18894. msm_routing_put_port_mixer),
  18895. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18896. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18897. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18898. msm_routing_get_port_mixer,
  18899. msm_routing_put_port_mixer),
  18900. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18901. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18902. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18903. msm_routing_get_port_mixer,
  18904. msm_routing_put_port_mixer),
  18905. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18906. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18907. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18908. msm_routing_get_port_mixer,
  18909. msm_routing_put_port_mixer),
  18910. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18911. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18912. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18913. msm_routing_get_port_mixer,
  18914. msm_routing_put_port_mixer),
  18915. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18916. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18917. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18918. msm_routing_get_port_mixer,
  18919. msm_routing_put_port_mixer),
  18920. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18921. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18922. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18923. msm_routing_get_port_mixer,
  18924. msm_routing_put_port_mixer),
  18925. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18926. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18927. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18928. msm_routing_get_port_mixer,
  18929. msm_routing_put_port_mixer),
  18930. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18931. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18932. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18933. msm_routing_get_port_mixer,
  18934. msm_routing_put_port_mixer),
  18935. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18936. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18937. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18938. msm_routing_get_port_mixer,
  18939. msm_routing_put_port_mixer),
  18940. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18941. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18942. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18943. msm_routing_get_port_mixer,
  18944. msm_routing_put_port_mixer),
  18945. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18946. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18947. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18948. msm_routing_get_port_mixer,
  18949. msm_routing_put_port_mixer),
  18950. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18951. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18952. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18953. msm_routing_get_port_mixer,
  18954. msm_routing_put_port_mixer),
  18955. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18956. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18957. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18958. msm_routing_get_port_mixer,
  18959. msm_routing_put_port_mixer),
  18960. };
  18961. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  18962. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18963. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  18964. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18965. msm_routing_get_port_mixer,
  18966. msm_routing_put_port_mixer),
  18967. };
  18968. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  18969. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18970. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18971. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18972. msm_routing_get_port_mixer,
  18973. msm_routing_put_port_mixer),
  18974. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18975. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18976. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18977. msm_routing_get_port_mixer,
  18978. msm_routing_put_port_mixer),
  18979. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18980. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18981. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18982. msm_routing_get_port_mixer,
  18983. msm_routing_put_port_mixer),
  18984. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18985. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18986. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18987. msm_routing_get_port_mixer,
  18988. msm_routing_put_port_mixer),
  18989. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18990. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18991. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18992. msm_routing_get_port_mixer,
  18993. msm_routing_put_port_mixer),
  18994. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18995. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18996. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18997. msm_routing_get_port_mixer,
  18998. msm_routing_put_port_mixer),
  18999. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19000. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19001. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19002. msm_routing_get_port_mixer,
  19003. msm_routing_put_port_mixer),
  19004. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19005. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19006. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19007. msm_routing_get_port_mixer,
  19008. msm_routing_put_port_mixer),
  19009. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19010. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19011. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19012. msm_routing_get_port_mixer,
  19013. msm_routing_put_port_mixer),
  19014. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19015. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19016. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19017. msm_routing_get_port_mixer,
  19018. msm_routing_put_port_mixer),
  19019. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19020. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19021. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19022. msm_routing_get_port_mixer,
  19023. msm_routing_put_port_mixer),
  19024. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19025. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19026. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19027. msm_routing_get_port_mixer,
  19028. msm_routing_put_port_mixer),
  19029. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19030. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19031. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19032. msm_routing_get_port_mixer,
  19033. msm_routing_put_port_mixer),
  19034. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19035. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19036. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19037. msm_routing_get_port_mixer,
  19038. msm_routing_put_port_mixer),
  19039. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19040. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19041. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19042. msm_routing_get_port_mixer,
  19043. msm_routing_put_port_mixer),
  19044. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19045. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19046. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19047. msm_routing_get_port_mixer,
  19048. msm_routing_put_port_mixer),
  19049. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19050. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19051. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19052. msm_routing_get_port_mixer,
  19053. msm_routing_put_port_mixer),
  19054. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19055. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19056. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19057. msm_routing_get_port_mixer,
  19058. msm_routing_put_port_mixer),
  19059. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19060. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19061. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19062. msm_routing_get_port_mixer,
  19063. msm_routing_put_port_mixer),
  19064. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19065. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19066. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19067. msm_routing_get_port_mixer,
  19068. msm_routing_put_port_mixer),
  19069. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19070. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19071. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19072. msm_routing_get_port_mixer,
  19073. msm_routing_put_port_mixer),
  19074. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19075. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19076. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19077. msm_routing_get_port_mixer,
  19078. msm_routing_put_port_mixer),
  19079. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19080. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19081. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19082. msm_routing_get_port_mixer,
  19083. msm_routing_put_port_mixer),
  19084. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19085. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19086. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19087. msm_routing_get_port_mixer,
  19088. msm_routing_put_port_mixer),
  19089. };
  19090. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  19091. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19092. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19093. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19094. msm_routing_get_port_mixer,
  19095. msm_routing_put_port_mixer),
  19096. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19097. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19098. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19099. msm_routing_get_port_mixer,
  19100. msm_routing_put_port_mixer),
  19101. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19102. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19103. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19104. msm_routing_get_port_mixer,
  19105. msm_routing_put_port_mixer),
  19106. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19107. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19108. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19109. msm_routing_get_port_mixer,
  19110. msm_routing_put_port_mixer),
  19111. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19112. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19113. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19114. msm_routing_get_port_mixer,
  19115. msm_routing_put_port_mixer),
  19116. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19117. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19118. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19119. msm_routing_get_port_mixer,
  19120. msm_routing_put_port_mixer),
  19121. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19122. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19123. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19124. msm_routing_get_port_mixer,
  19125. msm_routing_put_port_mixer),
  19126. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19127. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19128. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19129. msm_routing_get_port_mixer,
  19130. msm_routing_put_port_mixer),
  19131. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19132. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19133. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19134. msm_routing_get_port_mixer,
  19135. msm_routing_put_port_mixer),
  19136. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19137. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19138. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19139. msm_routing_get_port_mixer,
  19140. msm_routing_put_port_mixer),
  19141. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19142. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19143. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19144. msm_routing_get_port_mixer,
  19145. msm_routing_put_port_mixer),
  19146. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19147. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19148. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19149. msm_routing_get_port_mixer,
  19150. msm_routing_put_port_mixer),
  19151. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19152. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19153. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19154. msm_routing_get_port_mixer,
  19155. msm_routing_put_port_mixer),
  19156. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19157. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19158. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19159. msm_routing_get_port_mixer,
  19160. msm_routing_put_port_mixer),
  19161. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19162. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19163. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19164. msm_routing_get_port_mixer,
  19165. msm_routing_put_port_mixer),
  19166. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19167. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19168. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19169. msm_routing_get_port_mixer,
  19170. msm_routing_put_port_mixer),
  19171. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19172. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19173. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19174. msm_routing_get_port_mixer,
  19175. msm_routing_put_port_mixer),
  19176. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19177. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19178. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19179. msm_routing_get_port_mixer,
  19180. msm_routing_put_port_mixer),
  19181. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19182. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19183. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19184. msm_routing_get_port_mixer,
  19185. msm_routing_put_port_mixer),
  19186. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19187. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19188. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19189. msm_routing_get_port_mixer,
  19190. msm_routing_put_port_mixer),
  19191. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19192. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19193. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19194. msm_routing_get_port_mixer,
  19195. msm_routing_put_port_mixer),
  19196. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19197. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19198. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19199. msm_routing_get_port_mixer,
  19200. msm_routing_put_port_mixer),
  19201. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19202. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19203. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19204. msm_routing_get_port_mixer,
  19205. msm_routing_put_port_mixer),
  19206. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19207. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19208. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19209. msm_routing_get_port_mixer,
  19210. msm_routing_put_port_mixer),
  19211. };
  19212. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  19213. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19214. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19215. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19216. msm_routing_get_port_mixer,
  19217. msm_routing_put_port_mixer),
  19218. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19219. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19220. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19221. msm_routing_get_port_mixer,
  19222. msm_routing_put_port_mixer),
  19223. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19224. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19225. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19226. msm_routing_get_port_mixer,
  19227. msm_routing_put_port_mixer),
  19228. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19229. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19230. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19231. msm_routing_get_port_mixer,
  19232. msm_routing_put_port_mixer),
  19233. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19234. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19235. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19236. msm_routing_get_port_mixer,
  19237. msm_routing_put_port_mixer),
  19238. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19239. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19240. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19241. msm_routing_get_port_mixer,
  19242. msm_routing_put_port_mixer),
  19243. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19244. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19245. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19246. msm_routing_get_port_mixer,
  19247. msm_routing_put_port_mixer),
  19248. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19249. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19250. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19251. msm_routing_get_port_mixer,
  19252. msm_routing_put_port_mixer),
  19253. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19254. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19255. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19256. msm_routing_get_port_mixer,
  19257. msm_routing_put_port_mixer),
  19258. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19259. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19260. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19261. msm_routing_get_port_mixer,
  19262. msm_routing_put_port_mixer),
  19263. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19264. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19265. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19266. msm_routing_get_port_mixer,
  19267. msm_routing_put_port_mixer),
  19268. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19269. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19270. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19271. msm_routing_get_port_mixer,
  19272. msm_routing_put_port_mixer),
  19273. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19274. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19275. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19276. msm_routing_get_port_mixer,
  19277. msm_routing_put_port_mixer),
  19278. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19279. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19280. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19281. msm_routing_get_port_mixer,
  19282. msm_routing_put_port_mixer),
  19283. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19284. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19285. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19286. msm_routing_get_port_mixer,
  19287. msm_routing_put_port_mixer),
  19288. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19289. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19290. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19291. msm_routing_get_port_mixer,
  19292. msm_routing_put_port_mixer),
  19293. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19294. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19295. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19296. msm_routing_get_port_mixer,
  19297. msm_routing_put_port_mixer),
  19298. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19299. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19300. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19301. msm_routing_get_port_mixer,
  19302. msm_routing_put_port_mixer),
  19303. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19304. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19305. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19306. msm_routing_get_port_mixer,
  19307. msm_routing_put_port_mixer),
  19308. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19309. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19310. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19311. msm_routing_get_port_mixer,
  19312. msm_routing_put_port_mixer),
  19313. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19314. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19315. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19316. msm_routing_get_port_mixer,
  19317. msm_routing_put_port_mixer),
  19318. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19319. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19320. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19321. msm_routing_get_port_mixer,
  19322. msm_routing_put_port_mixer),
  19323. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19324. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19325. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19326. msm_routing_get_port_mixer,
  19327. msm_routing_put_port_mixer),
  19328. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19329. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19330. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19331. msm_routing_get_port_mixer,
  19332. msm_routing_put_port_mixer),
  19333. };
  19334. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  19335. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19336. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19337. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19338. msm_routing_get_port_mixer,
  19339. msm_routing_put_port_mixer),
  19340. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19341. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19342. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19343. msm_routing_get_port_mixer,
  19344. msm_routing_put_port_mixer),
  19345. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19346. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19347. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19348. msm_routing_get_port_mixer,
  19349. msm_routing_put_port_mixer),
  19350. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19351. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19352. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19353. msm_routing_get_port_mixer,
  19354. msm_routing_put_port_mixer),
  19355. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19356. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19357. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19358. msm_routing_get_port_mixer,
  19359. msm_routing_put_port_mixer),
  19360. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19361. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19362. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19363. msm_routing_get_port_mixer,
  19364. msm_routing_put_port_mixer),
  19365. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19366. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19367. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19368. msm_routing_get_port_mixer,
  19369. msm_routing_put_port_mixer),
  19370. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19371. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19372. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19373. msm_routing_get_port_mixer,
  19374. msm_routing_put_port_mixer),
  19375. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19376. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19377. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19378. msm_routing_get_port_mixer,
  19379. msm_routing_put_port_mixer),
  19380. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19381. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19382. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19383. msm_routing_get_port_mixer,
  19384. msm_routing_put_port_mixer),
  19385. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19386. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19387. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19388. msm_routing_get_port_mixer,
  19389. msm_routing_put_port_mixer),
  19390. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19391. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19392. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19393. msm_routing_get_port_mixer,
  19394. msm_routing_put_port_mixer),
  19395. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19396. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19397. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19398. msm_routing_get_port_mixer,
  19399. msm_routing_put_port_mixer),
  19400. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19401. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19402. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19403. msm_routing_get_port_mixer,
  19404. msm_routing_put_port_mixer),
  19405. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19406. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19407. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19408. msm_routing_get_port_mixer,
  19409. msm_routing_put_port_mixer),
  19410. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19411. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19412. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19413. msm_routing_get_port_mixer,
  19414. msm_routing_put_port_mixer),
  19415. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19416. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19417. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19418. msm_routing_get_port_mixer,
  19419. msm_routing_put_port_mixer),
  19420. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19421. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19422. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19423. msm_routing_get_port_mixer,
  19424. msm_routing_put_port_mixer),
  19425. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19426. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19427. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19428. msm_routing_get_port_mixer,
  19429. msm_routing_put_port_mixer),
  19430. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19431. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19432. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19433. msm_routing_get_port_mixer,
  19434. msm_routing_put_port_mixer),
  19435. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19436. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19437. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19438. msm_routing_get_port_mixer,
  19439. msm_routing_put_port_mixer),
  19440. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19441. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19442. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19443. msm_routing_get_port_mixer,
  19444. msm_routing_put_port_mixer),
  19445. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19446. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19447. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19448. msm_routing_get_port_mixer,
  19449. msm_routing_put_port_mixer),
  19450. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19451. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19452. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19453. msm_routing_get_port_mixer,
  19454. msm_routing_put_port_mixer),
  19455. };
  19456. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  19457. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19458. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19459. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19460. msm_routing_get_port_mixer,
  19461. msm_routing_put_port_mixer),
  19462. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19463. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19464. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19465. msm_routing_get_port_mixer,
  19466. msm_routing_put_port_mixer),
  19467. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19468. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19469. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19470. msm_routing_get_port_mixer,
  19471. msm_routing_put_port_mixer),
  19472. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19473. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19474. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19475. msm_routing_get_port_mixer,
  19476. msm_routing_put_port_mixer),
  19477. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19478. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19479. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19480. msm_routing_get_port_mixer,
  19481. msm_routing_put_port_mixer),
  19482. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19483. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19484. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19485. msm_routing_get_port_mixer,
  19486. msm_routing_put_port_mixer),
  19487. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19488. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19489. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19490. msm_routing_get_port_mixer,
  19491. msm_routing_put_port_mixer),
  19492. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19493. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19494. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19495. msm_routing_get_port_mixer,
  19496. msm_routing_put_port_mixer),
  19497. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19498. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19499. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19500. msm_routing_get_port_mixer,
  19501. msm_routing_put_port_mixer),
  19502. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19503. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19504. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19505. msm_routing_get_port_mixer,
  19506. msm_routing_put_port_mixer),
  19507. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19508. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19509. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19510. msm_routing_get_port_mixer,
  19511. msm_routing_put_port_mixer),
  19512. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19513. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19514. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19515. msm_routing_get_port_mixer,
  19516. msm_routing_put_port_mixer),
  19517. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19518. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19519. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19520. msm_routing_get_port_mixer,
  19521. msm_routing_put_port_mixer),
  19522. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19523. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19524. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19525. msm_routing_get_port_mixer,
  19526. msm_routing_put_port_mixer),
  19527. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19528. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19529. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19530. msm_routing_get_port_mixer,
  19531. msm_routing_put_port_mixer),
  19532. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19533. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19534. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19535. msm_routing_get_port_mixer,
  19536. msm_routing_put_port_mixer),
  19537. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19538. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19539. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19540. msm_routing_get_port_mixer,
  19541. msm_routing_put_port_mixer),
  19542. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19543. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19544. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19545. msm_routing_get_port_mixer,
  19546. msm_routing_put_port_mixer),
  19547. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19548. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19549. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19550. msm_routing_get_port_mixer,
  19551. msm_routing_put_port_mixer),
  19552. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19553. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19554. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19555. msm_routing_get_port_mixer,
  19556. msm_routing_put_port_mixer),
  19557. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19558. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19559. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19560. msm_routing_get_port_mixer,
  19561. msm_routing_put_port_mixer),
  19562. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19563. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19564. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19565. msm_routing_get_port_mixer,
  19566. msm_routing_put_port_mixer),
  19567. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19568. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19569. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19570. msm_routing_get_port_mixer,
  19571. msm_routing_put_port_mixer),
  19572. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19573. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19574. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19575. msm_routing_get_port_mixer,
  19576. msm_routing_put_port_mixer),
  19577. };
  19578. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19579. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19580. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19581. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19582. msm_routing_get_port_mixer,
  19583. msm_routing_put_port_mixer),
  19584. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19585. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19586. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19587. msm_routing_get_port_mixer,
  19588. msm_routing_put_port_mixer),
  19589. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19590. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19591. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19592. msm_routing_get_port_mixer,
  19593. msm_routing_put_port_mixer),
  19594. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19595. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19596. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19597. msm_routing_get_port_mixer,
  19598. msm_routing_put_port_mixer),
  19599. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19600. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19601. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19602. msm_routing_get_port_mixer,
  19603. msm_routing_put_port_mixer),
  19604. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19605. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19606. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19607. msm_routing_get_port_mixer,
  19608. msm_routing_put_port_mixer),
  19609. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19610. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19611. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19612. msm_routing_get_port_mixer,
  19613. msm_routing_put_port_mixer),
  19614. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19615. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19616. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19617. msm_routing_get_port_mixer,
  19618. msm_routing_put_port_mixer),
  19619. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19620. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19621. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19622. msm_routing_get_port_mixer,
  19623. msm_routing_put_port_mixer),
  19624. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19625. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19626. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19627. msm_routing_get_port_mixer,
  19628. msm_routing_put_port_mixer),
  19629. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19630. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19631. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19632. msm_routing_get_port_mixer,
  19633. msm_routing_put_port_mixer),
  19634. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19635. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19636. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19637. msm_routing_get_port_mixer,
  19638. msm_routing_put_port_mixer),
  19639. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19640. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19641. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19642. msm_routing_get_port_mixer,
  19643. msm_routing_put_port_mixer),
  19644. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19645. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19646. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19647. msm_routing_get_port_mixer,
  19648. msm_routing_put_port_mixer),
  19649. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19650. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19651. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19652. msm_routing_get_port_mixer,
  19653. msm_routing_put_port_mixer),
  19654. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19655. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19656. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19657. msm_routing_get_port_mixer,
  19658. msm_routing_put_port_mixer),
  19659. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19660. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19661. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19662. msm_routing_get_port_mixer,
  19663. msm_routing_put_port_mixer),
  19664. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19665. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19666. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19667. msm_routing_get_port_mixer,
  19668. msm_routing_put_port_mixer),
  19669. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19670. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19671. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19672. msm_routing_get_port_mixer,
  19673. msm_routing_put_port_mixer),
  19674. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19675. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19676. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19677. msm_routing_get_port_mixer,
  19678. msm_routing_put_port_mixer),
  19679. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19680. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19681. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19682. msm_routing_get_port_mixer,
  19683. msm_routing_put_port_mixer),
  19684. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19685. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19686. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19687. msm_routing_get_port_mixer,
  19688. msm_routing_put_port_mixer),
  19689. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19690. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19691. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19692. msm_routing_get_port_mixer,
  19693. msm_routing_put_port_mixer),
  19694. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19695. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19696. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19697. msm_routing_get_port_mixer,
  19698. msm_routing_put_port_mixer),
  19699. };
  19700. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19701. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19702. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19703. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19704. msm_routing_get_port_mixer,
  19705. msm_routing_put_port_mixer),
  19706. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19707. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19708. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19709. msm_routing_get_port_mixer,
  19710. msm_routing_put_port_mixer),
  19711. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19712. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19713. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19714. msm_routing_get_port_mixer,
  19715. msm_routing_put_port_mixer),
  19716. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19717. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19718. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19719. msm_routing_get_port_mixer,
  19720. msm_routing_put_port_mixer),
  19721. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19722. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19723. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19724. msm_routing_get_port_mixer,
  19725. msm_routing_put_port_mixer),
  19726. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19727. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19728. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19729. msm_routing_get_port_mixer,
  19730. msm_routing_put_port_mixer),
  19731. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19732. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19733. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19734. msm_routing_get_port_mixer,
  19735. msm_routing_put_port_mixer),
  19736. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19737. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19738. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19739. msm_routing_get_port_mixer,
  19740. msm_routing_put_port_mixer),
  19741. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19742. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19743. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19744. msm_routing_get_port_mixer,
  19745. msm_routing_put_port_mixer),
  19746. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19747. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19748. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19749. msm_routing_get_port_mixer,
  19750. msm_routing_put_port_mixer),
  19751. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19752. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19753. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19754. msm_routing_get_port_mixer,
  19755. msm_routing_put_port_mixer),
  19756. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19757. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19758. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19759. msm_routing_get_port_mixer,
  19760. msm_routing_put_port_mixer),
  19761. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19762. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19763. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19764. msm_routing_get_port_mixer,
  19765. msm_routing_put_port_mixer),
  19766. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19767. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19768. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19769. msm_routing_get_port_mixer,
  19770. msm_routing_put_port_mixer),
  19771. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19772. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19773. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19774. msm_routing_get_port_mixer,
  19775. msm_routing_put_port_mixer),
  19776. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19777. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19778. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19779. msm_routing_get_port_mixer,
  19780. msm_routing_put_port_mixer),
  19781. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19782. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19783. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19784. msm_routing_get_port_mixer,
  19785. msm_routing_put_port_mixer),
  19786. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19787. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19788. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19789. msm_routing_get_port_mixer,
  19790. msm_routing_put_port_mixer),
  19791. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19792. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19793. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19794. msm_routing_get_port_mixer,
  19795. msm_routing_put_port_mixer),
  19796. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19797. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19798. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19799. msm_routing_get_port_mixer,
  19800. msm_routing_put_port_mixer),
  19801. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19802. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19803. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19804. msm_routing_get_port_mixer,
  19805. msm_routing_put_port_mixer),
  19806. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19807. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19808. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19809. msm_routing_get_port_mixer,
  19810. msm_routing_put_port_mixer),
  19811. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19812. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19813. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19814. msm_routing_get_port_mixer,
  19815. msm_routing_put_port_mixer),
  19816. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19817. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19818. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19819. msm_routing_get_port_mixer,
  19820. msm_routing_put_port_mixer),
  19821. };
  19822. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  19823. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19824. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19825. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19826. msm_routing_get_port_mixer,
  19827. msm_routing_put_port_mixer),
  19828. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19829. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19830. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19831. msm_routing_get_port_mixer,
  19832. msm_routing_put_port_mixer),
  19833. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19834. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19835. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19836. msm_routing_get_port_mixer,
  19837. msm_routing_put_port_mixer),
  19838. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19839. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19840. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19841. msm_routing_get_port_mixer,
  19842. msm_routing_put_port_mixer),
  19843. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19844. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19845. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19846. msm_routing_get_port_mixer,
  19847. msm_routing_put_port_mixer),
  19848. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19849. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19850. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19851. msm_routing_get_port_mixer,
  19852. msm_routing_put_port_mixer),
  19853. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19854. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19855. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19856. msm_routing_get_port_mixer,
  19857. msm_routing_put_port_mixer),
  19858. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19859. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19860. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19861. msm_routing_get_port_mixer,
  19862. msm_routing_put_port_mixer),
  19863. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19864. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19865. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19866. msm_routing_get_port_mixer,
  19867. msm_routing_put_port_mixer),
  19868. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19869. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19870. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19871. msm_routing_get_port_mixer,
  19872. msm_routing_put_port_mixer),
  19873. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19874. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19875. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19876. msm_routing_get_port_mixer,
  19877. msm_routing_put_port_mixer),
  19878. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19879. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19880. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19881. msm_routing_get_port_mixer,
  19882. msm_routing_put_port_mixer),
  19883. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19884. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19885. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19886. msm_routing_get_port_mixer,
  19887. msm_routing_put_port_mixer),
  19888. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19889. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19890. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19891. msm_routing_get_port_mixer,
  19892. msm_routing_put_port_mixer),
  19893. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19894. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19895. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19896. msm_routing_get_port_mixer,
  19897. msm_routing_put_port_mixer),
  19898. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19899. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19900. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19901. msm_routing_get_port_mixer,
  19902. msm_routing_put_port_mixer),
  19903. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19904. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19905. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19906. msm_routing_get_port_mixer,
  19907. msm_routing_put_port_mixer),
  19908. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19909. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19910. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19911. msm_routing_get_port_mixer,
  19912. msm_routing_put_port_mixer),
  19913. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19914. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19915. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19916. msm_routing_get_port_mixer,
  19917. msm_routing_put_port_mixer),
  19918. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19919. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19920. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19921. msm_routing_get_port_mixer,
  19922. msm_routing_put_port_mixer),
  19923. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19924. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19925. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19926. msm_routing_get_port_mixer,
  19927. msm_routing_put_port_mixer),
  19928. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19929. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19930. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19931. msm_routing_get_port_mixer,
  19932. msm_routing_put_port_mixer),
  19933. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19934. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19935. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19936. msm_routing_get_port_mixer,
  19937. msm_routing_put_port_mixer),
  19938. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19939. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19940. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19941. msm_routing_get_port_mixer,
  19942. msm_routing_put_port_mixer),
  19943. };
  19944. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  19945. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19946. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19947. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19948. msm_routing_get_port_mixer,
  19949. msm_routing_put_port_mixer),
  19950. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19951. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19952. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19953. msm_routing_get_port_mixer,
  19954. msm_routing_put_port_mixer),
  19955. };
  19956. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  19957. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19958. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19959. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19960. msm_routing_get_port_mixer,
  19961. msm_routing_put_port_mixer),
  19962. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19963. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19964. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19965. msm_routing_get_port_mixer,
  19966. msm_routing_put_port_mixer),
  19967. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19968. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19969. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19970. msm_routing_get_port_mixer,
  19971. msm_routing_put_port_mixer),
  19972. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19973. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19974. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19975. msm_routing_get_port_mixer,
  19976. msm_routing_put_port_mixer),
  19977. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19978. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19979. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19980. msm_routing_get_port_mixer,
  19981. msm_routing_put_port_mixer),
  19982. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19983. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19984. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19985. msm_routing_get_port_mixer,
  19986. msm_routing_put_port_mixer),
  19987. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19988. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19989. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19990. msm_routing_get_port_mixer,
  19991. msm_routing_put_port_mixer),
  19992. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19993. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19994. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19995. msm_routing_get_port_mixer,
  19996. msm_routing_put_port_mixer),
  19997. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19998. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19999. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20000. msm_routing_get_port_mixer,
  20001. msm_routing_put_port_mixer),
  20002. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20003. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20004. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20005. msm_routing_get_port_mixer,
  20006. msm_routing_put_port_mixer),
  20007. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20008. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20009. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20010. msm_routing_get_port_mixer,
  20011. msm_routing_put_port_mixer),
  20012. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20013. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20014. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20015. msm_routing_get_port_mixer,
  20016. msm_routing_put_port_mixer),
  20017. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20018. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20019. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20020. msm_routing_get_port_mixer,
  20021. msm_routing_put_port_mixer),
  20022. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20023. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20024. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20025. msm_routing_get_port_mixer,
  20026. msm_routing_put_port_mixer),
  20027. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20028. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20029. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20030. msm_routing_get_port_mixer,
  20031. msm_routing_put_port_mixer),
  20032. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20033. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20034. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20035. msm_routing_get_port_mixer,
  20036. msm_routing_put_port_mixer),
  20037. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20038. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20039. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20040. msm_routing_get_port_mixer,
  20041. msm_routing_put_port_mixer),
  20042. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20043. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20044. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20045. msm_routing_get_port_mixer,
  20046. msm_routing_put_port_mixer),
  20047. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20048. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20049. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20050. msm_routing_get_port_mixer,
  20051. msm_routing_put_port_mixer),
  20052. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20053. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20054. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20055. msm_routing_get_port_mixer,
  20056. msm_routing_put_port_mixer),
  20057. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20058. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20059. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20060. msm_routing_get_port_mixer,
  20061. msm_routing_put_port_mixer),
  20062. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20063. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20064. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20065. msm_routing_get_port_mixer,
  20066. msm_routing_put_port_mixer),
  20067. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20068. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20069. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20070. msm_routing_get_port_mixer,
  20071. msm_routing_put_port_mixer),
  20072. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20073. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20074. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20075. msm_routing_get_port_mixer,
  20076. msm_routing_put_port_mixer),
  20077. };
  20078. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  20079. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20080. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20081. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20082. msm_routing_get_port_mixer,
  20083. msm_routing_put_port_mixer),
  20084. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20085. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20086. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20087. msm_routing_get_port_mixer,
  20088. msm_routing_put_port_mixer),
  20089. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20090. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20091. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20092. msm_routing_get_port_mixer,
  20093. msm_routing_put_port_mixer),
  20094. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20095. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20096. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20097. msm_routing_get_port_mixer,
  20098. msm_routing_put_port_mixer),
  20099. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20100. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20101. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20102. msm_routing_get_port_mixer,
  20103. msm_routing_put_port_mixer),
  20104. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20105. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20106. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20107. msm_routing_get_port_mixer,
  20108. msm_routing_put_port_mixer),
  20109. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20110. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20111. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20112. msm_routing_get_port_mixer,
  20113. msm_routing_put_port_mixer),
  20114. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20115. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20116. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20117. msm_routing_get_port_mixer,
  20118. msm_routing_put_port_mixer),
  20119. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20120. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20121. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20122. msm_routing_get_port_mixer,
  20123. msm_routing_put_port_mixer),
  20124. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20125. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20126. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20127. msm_routing_get_port_mixer,
  20128. msm_routing_put_port_mixer),
  20129. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20130. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20131. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20132. msm_routing_get_port_mixer,
  20133. msm_routing_put_port_mixer),
  20134. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20135. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20136. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20137. msm_routing_get_port_mixer,
  20138. msm_routing_put_port_mixer),
  20139. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20140. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20141. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20142. msm_routing_get_port_mixer,
  20143. msm_routing_put_port_mixer),
  20144. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20145. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20146. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20147. msm_routing_get_port_mixer,
  20148. msm_routing_put_port_mixer),
  20149. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20150. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20151. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20152. msm_routing_get_port_mixer,
  20153. msm_routing_put_port_mixer),
  20154. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20155. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20156. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20157. msm_routing_get_port_mixer,
  20158. msm_routing_put_port_mixer),
  20159. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20160. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20161. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20162. msm_routing_get_port_mixer,
  20163. msm_routing_put_port_mixer),
  20164. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20165. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20166. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20167. msm_routing_get_port_mixer,
  20168. msm_routing_put_port_mixer),
  20169. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20170. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20171. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20172. msm_routing_get_port_mixer,
  20173. msm_routing_put_port_mixer),
  20174. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20175. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20176. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20177. msm_routing_get_port_mixer,
  20178. msm_routing_put_port_mixer),
  20179. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20180. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20181. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20182. msm_routing_get_port_mixer,
  20183. msm_routing_put_port_mixer),
  20184. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20185. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20186. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20187. msm_routing_get_port_mixer,
  20188. msm_routing_put_port_mixer),
  20189. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20190. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20191. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20192. msm_routing_get_port_mixer,
  20193. msm_routing_put_port_mixer),
  20194. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20195. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20196. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20197. msm_routing_get_port_mixer,
  20198. msm_routing_put_port_mixer),
  20199. };
  20200. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  20201. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20202. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20203. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20204. msm_routing_get_port_mixer,
  20205. msm_routing_put_port_mixer),
  20206. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20207. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20208. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20209. msm_routing_get_port_mixer,
  20210. msm_routing_put_port_mixer),
  20211. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20212. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20213. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20214. msm_routing_get_port_mixer,
  20215. msm_routing_put_port_mixer),
  20216. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20217. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20218. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20219. msm_routing_get_port_mixer,
  20220. msm_routing_put_port_mixer),
  20221. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20222. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20223. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20224. msm_routing_get_port_mixer,
  20225. msm_routing_put_port_mixer),
  20226. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20227. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20228. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20229. msm_routing_get_port_mixer,
  20230. msm_routing_put_port_mixer),
  20231. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20232. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20233. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20234. msm_routing_get_port_mixer,
  20235. msm_routing_put_port_mixer),
  20236. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20237. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20238. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20239. msm_routing_get_port_mixer,
  20240. msm_routing_put_port_mixer),
  20241. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20242. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20243. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20244. msm_routing_get_port_mixer,
  20245. msm_routing_put_port_mixer),
  20246. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20247. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20248. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20249. msm_routing_get_port_mixer,
  20250. msm_routing_put_port_mixer),
  20251. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20252. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20253. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20254. msm_routing_get_port_mixer,
  20255. msm_routing_put_port_mixer),
  20256. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20257. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20258. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20259. msm_routing_get_port_mixer,
  20260. msm_routing_put_port_mixer),
  20261. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20262. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20263. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20264. msm_routing_get_port_mixer,
  20265. msm_routing_put_port_mixer),
  20266. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20267. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20268. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20269. msm_routing_get_port_mixer,
  20270. msm_routing_put_port_mixer),
  20271. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20272. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20273. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20274. msm_routing_get_port_mixer,
  20275. msm_routing_put_port_mixer),
  20276. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20277. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20278. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20279. msm_routing_get_port_mixer,
  20280. msm_routing_put_port_mixer),
  20281. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20282. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20283. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20284. msm_routing_get_port_mixer,
  20285. msm_routing_put_port_mixer),
  20286. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20287. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20288. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20289. msm_routing_get_port_mixer,
  20290. msm_routing_put_port_mixer),
  20291. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20292. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20293. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20294. msm_routing_get_port_mixer,
  20295. msm_routing_put_port_mixer),
  20296. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20297. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20298. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20299. msm_routing_get_port_mixer,
  20300. msm_routing_put_port_mixer),
  20301. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20302. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20303. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20304. msm_routing_get_port_mixer,
  20305. msm_routing_put_port_mixer),
  20306. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20307. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20308. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20309. msm_routing_get_port_mixer,
  20310. msm_routing_put_port_mixer),
  20311. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20312. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20313. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20314. msm_routing_get_port_mixer,
  20315. msm_routing_put_port_mixer),
  20316. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20317. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20318. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20319. msm_routing_get_port_mixer,
  20320. msm_routing_put_port_mixer),
  20321. };
  20322. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  20323. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20324. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20325. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20326. msm_routing_get_port_mixer,
  20327. msm_routing_put_port_mixer),
  20328. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20329. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20330. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20331. msm_routing_get_port_mixer,
  20332. msm_routing_put_port_mixer),
  20333. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20334. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20335. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20336. msm_routing_get_port_mixer,
  20337. msm_routing_put_port_mixer),
  20338. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20339. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20340. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20341. msm_routing_get_port_mixer,
  20342. msm_routing_put_port_mixer),
  20343. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20344. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20345. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20346. msm_routing_get_port_mixer,
  20347. msm_routing_put_port_mixer),
  20348. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20349. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20350. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20351. msm_routing_get_port_mixer,
  20352. msm_routing_put_port_mixer),
  20353. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20354. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20355. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20356. msm_routing_get_port_mixer,
  20357. msm_routing_put_port_mixer),
  20358. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20359. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20360. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20361. msm_routing_get_port_mixer,
  20362. msm_routing_put_port_mixer),
  20363. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20364. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20365. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20366. msm_routing_get_port_mixer,
  20367. msm_routing_put_port_mixer),
  20368. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20369. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20370. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20371. msm_routing_get_port_mixer,
  20372. msm_routing_put_port_mixer),
  20373. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20374. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20375. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20376. msm_routing_get_port_mixer,
  20377. msm_routing_put_port_mixer),
  20378. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20379. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20380. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20381. msm_routing_get_port_mixer,
  20382. msm_routing_put_port_mixer),
  20383. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20384. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20385. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20386. msm_routing_get_port_mixer,
  20387. msm_routing_put_port_mixer),
  20388. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20389. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20390. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20391. msm_routing_get_port_mixer,
  20392. msm_routing_put_port_mixer),
  20393. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20394. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20395. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20396. msm_routing_get_port_mixer,
  20397. msm_routing_put_port_mixer),
  20398. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20399. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20400. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20401. msm_routing_get_port_mixer,
  20402. msm_routing_put_port_mixer),
  20403. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20404. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20405. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20406. msm_routing_get_port_mixer,
  20407. msm_routing_put_port_mixer),
  20408. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20409. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20410. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20411. msm_routing_get_port_mixer,
  20412. msm_routing_put_port_mixer),
  20413. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20414. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20415. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20416. msm_routing_get_port_mixer,
  20417. msm_routing_put_port_mixer),
  20418. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20419. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20420. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20421. msm_routing_get_port_mixer,
  20422. msm_routing_put_port_mixer),
  20423. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20424. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20425. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20426. msm_routing_get_port_mixer,
  20427. msm_routing_put_port_mixer),
  20428. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20429. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20430. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20431. msm_routing_get_port_mixer,
  20432. msm_routing_put_port_mixer),
  20433. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20434. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20435. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20436. msm_routing_get_port_mixer,
  20437. msm_routing_put_port_mixer),
  20438. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20439. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20440. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20441. msm_routing_get_port_mixer,
  20442. msm_routing_put_port_mixer),
  20443. };
  20444. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  20445. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20446. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20447. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20448. msm_routing_get_port_mixer,
  20449. msm_routing_put_port_mixer),
  20450. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20451. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20452. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20453. msm_routing_get_port_mixer,
  20454. msm_routing_put_port_mixer),
  20455. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20456. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20457. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20458. msm_routing_get_port_mixer,
  20459. msm_routing_put_port_mixer),
  20460. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20461. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20462. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20463. msm_routing_get_port_mixer,
  20464. msm_routing_put_port_mixer),
  20465. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20466. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20467. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20468. msm_routing_get_port_mixer,
  20469. msm_routing_put_port_mixer),
  20470. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20471. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20472. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20473. msm_routing_get_port_mixer,
  20474. msm_routing_put_port_mixer),
  20475. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20476. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20477. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20478. msm_routing_get_port_mixer,
  20479. msm_routing_put_port_mixer),
  20480. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20481. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20482. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20483. msm_routing_get_port_mixer,
  20484. msm_routing_put_port_mixer),
  20485. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20486. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20487. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20488. msm_routing_get_port_mixer,
  20489. msm_routing_put_port_mixer),
  20490. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20491. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20492. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20493. msm_routing_get_port_mixer,
  20494. msm_routing_put_port_mixer),
  20495. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20496. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20497. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20498. msm_routing_get_port_mixer,
  20499. msm_routing_put_port_mixer),
  20500. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20501. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20502. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20503. msm_routing_get_port_mixer,
  20504. msm_routing_put_port_mixer),
  20505. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20506. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20507. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20508. msm_routing_get_port_mixer,
  20509. msm_routing_put_port_mixer),
  20510. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20511. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20512. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20513. msm_routing_get_port_mixer,
  20514. msm_routing_put_port_mixer),
  20515. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20516. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20517. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20518. msm_routing_get_port_mixer,
  20519. msm_routing_put_port_mixer),
  20520. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20521. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20522. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20523. msm_routing_get_port_mixer,
  20524. msm_routing_put_port_mixer),
  20525. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20526. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20527. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20528. msm_routing_get_port_mixer,
  20529. msm_routing_put_port_mixer),
  20530. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20531. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20532. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20533. msm_routing_get_port_mixer,
  20534. msm_routing_put_port_mixer),
  20535. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20536. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20537. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20538. msm_routing_get_port_mixer,
  20539. msm_routing_put_port_mixer),
  20540. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20541. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20542. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20543. msm_routing_get_port_mixer,
  20544. msm_routing_put_port_mixer),
  20545. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20546. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20547. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20548. msm_routing_get_port_mixer,
  20549. msm_routing_put_port_mixer),
  20550. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20551. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20552. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20553. msm_routing_get_port_mixer,
  20554. msm_routing_put_port_mixer),
  20555. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20556. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20557. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20558. msm_routing_get_port_mixer,
  20559. msm_routing_put_port_mixer),
  20560. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20561. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20562. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20563. msm_routing_get_port_mixer,
  20564. msm_routing_put_port_mixer),
  20565. };
  20566. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20567. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20568. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20569. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20570. msm_routing_get_port_mixer,
  20571. msm_routing_put_port_mixer),
  20572. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20573. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20574. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20575. msm_routing_get_port_mixer,
  20576. msm_routing_put_port_mixer),
  20577. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20578. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20579. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20580. msm_routing_get_port_mixer,
  20581. msm_routing_put_port_mixer),
  20582. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20583. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20584. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20585. msm_routing_get_port_mixer,
  20586. msm_routing_put_port_mixer),
  20587. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20588. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20589. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20590. msm_routing_get_port_mixer,
  20591. msm_routing_put_port_mixer),
  20592. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20593. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20594. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20595. msm_routing_get_port_mixer,
  20596. msm_routing_put_port_mixer),
  20597. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20598. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20599. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20600. msm_routing_get_port_mixer,
  20601. msm_routing_put_port_mixer),
  20602. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20603. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20604. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20605. msm_routing_get_port_mixer,
  20606. msm_routing_put_port_mixer),
  20607. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20608. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20609. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20610. msm_routing_get_port_mixer,
  20611. msm_routing_put_port_mixer),
  20612. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20613. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20614. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20615. msm_routing_get_port_mixer,
  20616. msm_routing_put_port_mixer),
  20617. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20618. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20619. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20620. msm_routing_get_port_mixer,
  20621. msm_routing_put_port_mixer),
  20622. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20623. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20624. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20625. msm_routing_get_port_mixer,
  20626. msm_routing_put_port_mixer),
  20627. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20628. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20629. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20630. msm_routing_get_port_mixer,
  20631. msm_routing_put_port_mixer),
  20632. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20633. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20634. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20635. msm_routing_get_port_mixer,
  20636. msm_routing_put_port_mixer),
  20637. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20638. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20639. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20640. msm_routing_get_port_mixer,
  20641. msm_routing_put_port_mixer),
  20642. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20643. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20644. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20645. msm_routing_get_port_mixer,
  20646. msm_routing_put_port_mixer),
  20647. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20648. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20649. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20650. msm_routing_get_port_mixer,
  20651. msm_routing_put_port_mixer),
  20652. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20653. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20654. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20655. msm_routing_get_port_mixer,
  20656. msm_routing_put_port_mixer),
  20657. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20658. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20659. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20660. msm_routing_get_port_mixer,
  20661. msm_routing_put_port_mixer),
  20662. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20663. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20664. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20665. msm_routing_get_port_mixer,
  20666. msm_routing_put_port_mixer),
  20667. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20668. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20669. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20670. msm_routing_get_port_mixer,
  20671. msm_routing_put_port_mixer),
  20672. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20673. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20674. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20675. msm_routing_get_port_mixer,
  20676. msm_routing_put_port_mixer),
  20677. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20678. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20679. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20680. msm_routing_get_port_mixer,
  20681. msm_routing_put_port_mixer),
  20682. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20683. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20684. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20685. msm_routing_get_port_mixer,
  20686. msm_routing_put_port_mixer),
  20687. };
  20688. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20689. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20690. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20691. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20692. msm_routing_get_port_mixer,
  20693. msm_routing_put_port_mixer),
  20694. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20695. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20696. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20697. msm_routing_get_port_mixer,
  20698. msm_routing_put_port_mixer),
  20699. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20700. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20701. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20702. msm_routing_get_port_mixer,
  20703. msm_routing_put_port_mixer),
  20704. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20705. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20706. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20707. msm_routing_get_port_mixer,
  20708. msm_routing_put_port_mixer),
  20709. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20710. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20711. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20712. msm_routing_get_port_mixer,
  20713. msm_routing_put_port_mixer),
  20714. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20715. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20716. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20717. msm_routing_get_port_mixer,
  20718. msm_routing_put_port_mixer),
  20719. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20720. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20721. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20722. msm_routing_get_port_mixer,
  20723. msm_routing_put_port_mixer),
  20724. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20725. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20726. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20727. msm_routing_get_port_mixer,
  20728. msm_routing_put_port_mixer),
  20729. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20730. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20731. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20732. msm_routing_get_port_mixer,
  20733. msm_routing_put_port_mixer),
  20734. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20735. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20736. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20737. msm_routing_get_port_mixer,
  20738. msm_routing_put_port_mixer),
  20739. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20740. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20741. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20742. msm_routing_get_port_mixer,
  20743. msm_routing_put_port_mixer),
  20744. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20745. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20746. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20747. msm_routing_get_port_mixer,
  20748. msm_routing_put_port_mixer),
  20749. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20750. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20751. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20752. msm_routing_get_port_mixer,
  20753. msm_routing_put_port_mixer),
  20754. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20755. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20756. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20757. msm_routing_get_port_mixer,
  20758. msm_routing_put_port_mixer),
  20759. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20760. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20761. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20762. msm_routing_get_port_mixer,
  20763. msm_routing_put_port_mixer),
  20764. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20765. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20766. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20767. msm_routing_get_port_mixer,
  20768. msm_routing_put_port_mixer),
  20769. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20770. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20771. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20772. msm_routing_get_port_mixer,
  20773. msm_routing_put_port_mixer),
  20774. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20775. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20776. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20777. msm_routing_get_port_mixer,
  20778. msm_routing_put_port_mixer),
  20779. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20780. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20781. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20782. msm_routing_get_port_mixer,
  20783. msm_routing_put_port_mixer),
  20784. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20785. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20786. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20787. msm_routing_get_port_mixer,
  20788. msm_routing_put_port_mixer),
  20789. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20790. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20791. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20792. msm_routing_get_port_mixer,
  20793. msm_routing_put_port_mixer),
  20794. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20795. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20796. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20797. msm_routing_get_port_mixer,
  20798. msm_routing_put_port_mixer),
  20799. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20800. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20801. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20802. msm_routing_get_port_mixer,
  20803. msm_routing_put_port_mixer),
  20804. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20805. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20806. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20807. msm_routing_get_port_mixer,
  20808. msm_routing_put_port_mixer),
  20809. };
  20810. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  20811. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20812. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20813. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20814. msm_routing_get_port_mixer,
  20815. msm_routing_put_port_mixer),
  20816. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20817. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20818. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20819. msm_routing_get_port_mixer,
  20820. msm_routing_put_port_mixer),
  20821. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20822. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20823. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20824. msm_routing_get_port_mixer,
  20825. msm_routing_put_port_mixer),
  20826. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20827. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20828. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20829. msm_routing_get_port_mixer,
  20830. msm_routing_put_port_mixer),
  20831. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20832. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20833. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20834. msm_routing_get_port_mixer,
  20835. msm_routing_put_port_mixer),
  20836. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20837. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20838. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20839. msm_routing_get_port_mixer,
  20840. msm_routing_put_port_mixer),
  20841. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20842. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20843. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20844. msm_routing_get_port_mixer,
  20845. msm_routing_put_port_mixer),
  20846. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20847. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20848. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20849. msm_routing_get_port_mixer,
  20850. msm_routing_put_port_mixer),
  20851. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20852. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20853. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20854. msm_routing_get_port_mixer,
  20855. msm_routing_put_port_mixer),
  20856. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20857. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20858. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20859. msm_routing_get_port_mixer,
  20860. msm_routing_put_port_mixer),
  20861. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20862. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20863. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20864. msm_routing_get_port_mixer,
  20865. msm_routing_put_port_mixer),
  20866. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20867. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20868. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20869. msm_routing_get_port_mixer,
  20870. msm_routing_put_port_mixer),
  20871. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20872. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20873. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20874. msm_routing_get_port_mixer,
  20875. msm_routing_put_port_mixer),
  20876. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20877. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20878. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20879. msm_routing_get_port_mixer,
  20880. msm_routing_put_port_mixer),
  20881. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20882. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20883. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20884. msm_routing_get_port_mixer,
  20885. msm_routing_put_port_mixer),
  20886. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20887. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20888. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20889. msm_routing_get_port_mixer,
  20890. msm_routing_put_port_mixer),
  20891. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20892. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20893. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20894. msm_routing_get_port_mixer,
  20895. msm_routing_put_port_mixer),
  20896. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20897. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20898. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20899. msm_routing_get_port_mixer,
  20900. msm_routing_put_port_mixer),
  20901. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20902. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20903. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20904. msm_routing_get_port_mixer,
  20905. msm_routing_put_port_mixer),
  20906. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20907. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20908. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20909. msm_routing_get_port_mixer,
  20910. msm_routing_put_port_mixer),
  20911. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20912. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20913. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20914. msm_routing_get_port_mixer,
  20915. msm_routing_put_port_mixer),
  20916. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20917. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20918. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20919. msm_routing_get_port_mixer,
  20920. msm_routing_put_port_mixer),
  20921. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20922. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20923. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20924. msm_routing_get_port_mixer,
  20925. msm_routing_put_port_mixer),
  20926. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20927. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20928. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20929. msm_routing_get_port_mixer,
  20930. msm_routing_put_port_mixer),
  20931. };
  20932. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  20933. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  20934. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20935. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  20936. msm_routing_get_port_mixer,
  20937. msm_routing_put_port_mixer),
  20938. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20939. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20940. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20941. msm_routing_get_port_mixer,
  20942. msm_routing_put_port_mixer),
  20943. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20944. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20945. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20946. msm_routing_get_port_mixer,
  20947. msm_routing_put_port_mixer),
  20948. };
  20949. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  20950. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20951. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20952. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20953. msm_routing_put_port_mixer),
  20954. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20955. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20956. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20957. msm_routing_put_port_mixer),
  20958. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20959. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20960. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20961. msm_routing_put_port_mixer),
  20962. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20963. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20964. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20965. msm_routing_put_port_mixer),
  20966. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20967. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20968. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20969. msm_routing_put_port_mixer),
  20970. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20971. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20972. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20973. msm_routing_put_port_mixer),
  20974. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20975. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20976. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20977. msm_routing_put_port_mixer),
  20978. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20979. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20980. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20981. msm_routing_put_port_mixer),
  20982. };
  20983. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20984. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20985. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20986. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20987. msm_routing_put_port_mixer),
  20988. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20989. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20990. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20991. msm_routing_put_port_mixer),
  20992. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20993. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20994. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20995. msm_routing_put_port_mixer),
  20996. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20997. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20998. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20999. msm_routing_put_port_mixer),
  21000. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  21001. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21002. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21003. msm_routing_put_port_mixer),
  21004. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  21005. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21006. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21007. msm_routing_put_port_mixer),
  21008. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21009. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21010. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21011. msm_routing_put_port_mixer),
  21012. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21013. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21014. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  21015. msm_routing_put_port_mixer),
  21016. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21017. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21018. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21019. msm_routing_put_port_mixer),
  21020. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21021. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21022. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21023. msm_routing_put_port_mixer),
  21024. };
  21025. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  21026. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21027. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21028. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21029. msm_routing_put_listen_mixer),
  21030. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21031. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21032. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21033. msm_routing_put_listen_mixer),
  21034. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21035. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21036. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21037. msm_routing_put_listen_mixer),
  21038. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21039. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21040. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21041. msm_routing_put_listen_mixer),
  21042. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21043. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21044. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21045. msm_routing_put_listen_mixer),
  21046. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21047. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21048. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21049. msm_routing_put_listen_mixer),
  21050. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21051. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21052. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21053. msm_routing_put_listen_mixer),
  21054. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21055. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21056. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21057. msm_routing_put_listen_mixer),
  21058. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21059. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21060. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21061. msm_routing_put_listen_mixer),
  21062. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21063. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21064. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21065. msm_routing_put_listen_mixer),
  21066. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21067. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21068. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21069. msm_routing_put_listen_mixer),
  21070. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21071. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21072. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21073. msm_routing_put_listen_mixer),
  21074. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21075. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21076. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21077. msm_routing_put_listen_mixer),
  21078. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21079. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21080. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21081. msm_routing_put_listen_mixer),
  21082. };
  21083. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  21084. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21085. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21086. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21087. msm_routing_put_listen_mixer),
  21088. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  21089. SND_SOC_NOPM,
  21090. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21091. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21092. msm_routing_put_listen_mixer),
  21093. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21094. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21095. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21096. msm_routing_put_listen_mixer),
  21097. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21098. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21099. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21100. msm_routing_put_listen_mixer),
  21101. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21102. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21103. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21104. msm_routing_put_listen_mixer),
  21105. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21106. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21107. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21108. msm_routing_put_listen_mixer),
  21109. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21110. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21111. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21112. msm_routing_put_listen_mixer),
  21113. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21114. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21115. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21116. msm_routing_put_listen_mixer),
  21117. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21118. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21119. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21120. msm_routing_put_listen_mixer),
  21121. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21122. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21123. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21124. msm_routing_put_listen_mixer),
  21125. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21126. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21127. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21128. msm_routing_put_listen_mixer),
  21129. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21130. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21131. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21132. msm_routing_put_listen_mixer),
  21133. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21134. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21135. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21136. msm_routing_put_listen_mixer),
  21137. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21138. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21139. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21140. msm_routing_put_listen_mixer),
  21141. };
  21142. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  21143. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21144. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21145. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21146. msm_routing_put_listen_mixer),
  21147. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21148. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21149. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21150. msm_routing_put_listen_mixer),
  21151. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21152. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21153. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21154. msm_routing_put_listen_mixer),
  21155. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21156. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21157. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21158. msm_routing_put_listen_mixer),
  21159. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21160. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21161. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21162. msm_routing_put_listen_mixer),
  21163. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21164. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21165. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21166. msm_routing_put_listen_mixer),
  21167. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21168. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21169. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21170. msm_routing_put_listen_mixer),
  21171. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21172. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21173. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21174. msm_routing_put_listen_mixer),
  21175. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21176. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21177. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21178. msm_routing_put_listen_mixer),
  21179. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21180. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21181. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21182. msm_routing_put_listen_mixer),
  21183. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21184. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21185. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21186. msm_routing_put_listen_mixer),
  21187. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21188. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21189. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21190. msm_routing_put_listen_mixer),
  21191. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21192. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21193. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21194. msm_routing_put_listen_mixer),
  21195. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21196. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21197. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21198. msm_routing_put_listen_mixer),
  21199. };
  21200. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  21201. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21202. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21203. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21204. msm_routing_put_listen_mixer),
  21205. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21206. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21207. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21208. msm_routing_put_listen_mixer),
  21209. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21210. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21211. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21212. msm_routing_put_listen_mixer),
  21213. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21214. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21215. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21216. msm_routing_put_listen_mixer),
  21217. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21218. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21219. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21220. msm_routing_put_listen_mixer),
  21221. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21222. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21223. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21224. msm_routing_put_listen_mixer),
  21225. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21226. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21227. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21228. msm_routing_put_listen_mixer),
  21229. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21230. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21231. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21232. msm_routing_put_listen_mixer),
  21233. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21234. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21235. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21236. msm_routing_put_listen_mixer),
  21237. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21238. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21239. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21240. msm_routing_put_listen_mixer),
  21241. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21242. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21243. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21244. msm_routing_put_listen_mixer),
  21245. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21246. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21247. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21248. msm_routing_put_listen_mixer),
  21249. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21250. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21251. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21252. msm_routing_put_listen_mixer),
  21253. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21254. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21255. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21256. msm_routing_put_listen_mixer),
  21257. };
  21258. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  21259. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21260. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21261. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21262. msm_routing_put_listen_mixer),
  21263. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21264. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21265. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21266. msm_routing_put_listen_mixer),
  21267. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21268. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21269. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21270. msm_routing_put_listen_mixer),
  21271. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21272. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21273. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21274. msm_routing_put_listen_mixer),
  21275. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21276. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21277. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21278. msm_routing_put_listen_mixer),
  21279. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21280. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21281. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21282. msm_routing_put_listen_mixer),
  21283. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21284. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21285. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21286. msm_routing_put_listen_mixer),
  21287. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21288. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21289. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21290. msm_routing_put_listen_mixer),
  21291. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21292. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21293. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21294. msm_routing_put_listen_mixer),
  21295. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21296. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21297. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21298. msm_routing_put_listen_mixer),
  21299. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21300. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21301. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21302. msm_routing_put_listen_mixer),
  21303. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21304. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21305. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21306. msm_routing_put_listen_mixer),
  21307. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21308. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21309. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21310. msm_routing_put_listen_mixer),
  21311. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21312. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21313. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21314. msm_routing_put_listen_mixer),
  21315. };
  21316. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  21317. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21318. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21319. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21320. msm_routing_put_listen_mixer),
  21321. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21322. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21323. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21324. msm_routing_put_listen_mixer),
  21325. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21326. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21327. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21328. msm_routing_put_listen_mixer),
  21329. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21330. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21331. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21332. msm_routing_put_listen_mixer),
  21333. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21334. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21335. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21336. msm_routing_put_listen_mixer),
  21337. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21338. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21339. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21340. msm_routing_put_listen_mixer),
  21341. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21342. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21343. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21344. msm_routing_put_listen_mixer),
  21345. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21346. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21347. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21348. msm_routing_put_listen_mixer),
  21349. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21350. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21351. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21352. msm_routing_put_listen_mixer),
  21353. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21354. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21355. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21356. msm_routing_put_listen_mixer),
  21357. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21358. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21359. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21360. msm_routing_put_listen_mixer),
  21361. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21362. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21363. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21364. msm_routing_put_listen_mixer),
  21365. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21366. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21367. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21368. msm_routing_put_listen_mixer),
  21369. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21370. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21371. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21372. msm_routing_put_listen_mixer),
  21373. };
  21374. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  21375. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21376. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21377. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21378. msm_routing_put_listen_mixer),
  21379. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21380. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21381. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21382. msm_routing_put_listen_mixer),
  21383. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21384. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21385. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21386. msm_routing_put_listen_mixer),
  21387. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21388. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21389. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21390. msm_routing_put_listen_mixer),
  21391. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21392. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21393. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21394. msm_routing_put_listen_mixer),
  21395. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21396. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21397. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21398. msm_routing_put_listen_mixer),
  21399. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21400. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21401. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21402. msm_routing_put_listen_mixer),
  21403. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21404. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21405. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21406. msm_routing_put_listen_mixer),
  21407. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21408. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21409. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21410. msm_routing_put_listen_mixer),
  21411. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21412. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21413. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21414. msm_routing_put_listen_mixer),
  21415. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21416. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21417. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21418. msm_routing_put_listen_mixer),
  21419. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21420. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21421. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21422. msm_routing_put_listen_mixer),
  21423. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21424. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21425. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21426. msm_routing_put_listen_mixer),
  21427. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21428. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21429. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21430. msm_routing_put_listen_mixer),
  21431. };
  21432. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  21433. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21434. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21435. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21436. msm_routing_put_listen_mixer),
  21437. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21438. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21439. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21440. msm_routing_put_listen_mixer),
  21441. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21442. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21443. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21444. msm_routing_put_listen_mixer),
  21445. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21446. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21447. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21448. msm_routing_put_listen_mixer),
  21449. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21450. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21451. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21452. msm_routing_put_listen_mixer),
  21453. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21454. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21455. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21456. msm_routing_put_listen_mixer),
  21457. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21458. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21459. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21460. msm_routing_put_listen_mixer),
  21461. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21462. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21463. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21464. msm_routing_put_listen_mixer),
  21465. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21466. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21467. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21468. msm_routing_put_listen_mixer),
  21469. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21470. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21471. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21472. msm_routing_put_listen_mixer),
  21473. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21474. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21475. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21476. msm_routing_put_listen_mixer),
  21477. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21478. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21479. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21480. msm_routing_put_listen_mixer),
  21481. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21482. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21483. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21484. msm_routing_put_listen_mixer),
  21485. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21486. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21487. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21488. msm_routing_put_listen_mixer),
  21489. };
  21490. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  21491. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21492. 0, 1, 0, msm_routing_get_switch_mixer,
  21493. msm_routing_put_switch_mixer);
  21494. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  21495. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21496. 0, 1, 0, msm_routing_get_switch_mixer,
  21497. msm_routing_put_switch_mixer);
  21498. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  21499. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21500. 0, 1, 0, msm_routing_get_switch_mixer,
  21501. msm_routing_put_switch_mixer);
  21502. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  21503. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21504. 0, 1, 0, msm_routing_get_switch_mixer,
  21505. msm_routing_put_switch_mixer);
  21506. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  21507. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21508. 0, 1, 0, msm_routing_get_switch_mixer,
  21509. msm_routing_put_switch_mixer);
  21510. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  21511. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21512. 0, 1, 0, msm_routing_get_switch_mixer,
  21513. msm_routing_put_switch_mixer);
  21514. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  21515. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21516. 0, 1, 0, msm_routing_get_switch_mixer,
  21517. msm_routing_put_switch_mixer);
  21518. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  21519. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21520. 0, 1, 0, msm_routing_get_switch_mixer,
  21521. msm_routing_put_switch_mixer);
  21522. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  21523. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21524. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  21525. msm_routing_put_fm_pcmrx_switch_mixer);
  21526. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  21527. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21528. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  21529. msm_routing_put_int0_mi2s_switch_mixer);
  21530. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  21531. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21532. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  21533. msm_routing_put_int4_mi2s_switch_mixer);
  21534. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  21535. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21536. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21537. msm_routing_put_pri_mi2s_switch_mixer);
  21538. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21539. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21540. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21541. msm_routing_put_sec_mi2s_switch_mixer);
  21542. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21543. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21544. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21545. msm_routing_put_tert_mi2s_switch_mixer);
  21546. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21547. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21548. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21549. msm_routing_put_quat_mi2s_switch_mixer);
  21550. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21551. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21552. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21553. msm_routing_put_quin_mi2s_switch_mixer);
  21554. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21555. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21556. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21557. msm_routing_put_sen_mi2s_switch_mixer);
  21558. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21559. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21560. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21561. msm_routing_put_hfp_switch_mixer);
  21562. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21563. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21564. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21565. msm_routing_put_hfp_switch_mixer);
  21566. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21567. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21568. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21569. msm_routing_put_hfp_switch_mixer);
  21570. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21571. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21572. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21573. msm_routing_put_hfp_switch_mixer);
  21574. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21575. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21576. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21577. msm_routing_put_usb_switch_mixer);
  21578. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21579. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21580. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21581. msm_routing_a2dp_switch_mixer_put);
  21582. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21583. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21584. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21585. msm_routing_sco_switch_mixer_put);
  21586. static const struct soc_enum lsm_port_enum =
  21587. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21588. static const char * const lsm_func_text[] = {
  21589. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21590. };
  21591. static const struct soc_enum lsm_func_enum =
  21592. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21593. static const struct snd_kcontrol_new lsm_controls[] = {
  21594. /* kcontrol of lsm_function */
  21595. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21596. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21597. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21598. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21599. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21600. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21601. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21602. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21603. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21604. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21605. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21606. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21607. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21608. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21609. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21610. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21611. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21612. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21613. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21614. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21615. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21616. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21617. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21618. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21619. /* kcontrol of lsm_port */
  21620. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21621. msm_routing_lsm_port_get,
  21622. msm_routing_lsm_port_put),
  21623. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21624. msm_routing_lsm_port_get,
  21625. msm_routing_lsm_port_put),
  21626. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21627. msm_routing_lsm_port_get,
  21628. msm_routing_lsm_port_put),
  21629. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21630. msm_routing_lsm_port_get,
  21631. msm_routing_lsm_port_put),
  21632. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21633. msm_routing_lsm_port_get,
  21634. msm_routing_lsm_port_put),
  21635. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21636. msm_routing_lsm_port_get,
  21637. msm_routing_lsm_port_put),
  21638. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21639. msm_routing_lsm_port_get,
  21640. msm_routing_lsm_port_put),
  21641. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21642. msm_routing_lsm_port_get,
  21643. msm_routing_lsm_port_put),
  21644. };
  21645. static const char * const aanc_slim_0_rx_text[] = {
  21646. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21647. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21648. };
  21649. static const struct soc_enum aanc_slim_0_rx_enum =
  21650. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21651. aanc_slim_0_rx_text);
  21652. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21653. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21654. msm_routing_slim_0_rx_aanc_mux_get,
  21655. msm_routing_slim_0_rx_aanc_mux_put)
  21656. };
  21657. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21658. struct snd_ctl_elem_value *ucontrol)
  21659. {
  21660. ucontrol->value.integer.value[0] = aanc_level;
  21661. return 0;
  21662. }
  21663. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21664. struct snd_ctl_elem_value *ucontrol)
  21665. {
  21666. int ret = 0;
  21667. mutex_lock(&routing_lock);
  21668. aanc_level = ucontrol->value.integer.value[0];
  21669. pr_debug("%s: value: %ld\n",
  21670. __func__, ucontrol->value.integer.value[0]);
  21671. ret = afe_set_aanc_noise_level(aanc_level);
  21672. mutex_unlock(&routing_lock);
  21673. return ret;
  21674. }
  21675. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21676. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21677. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21678. };
  21679. static int msm_routing_get_stereo_to_custom_stereo_control(
  21680. struct snd_kcontrol *kcontrol,
  21681. struct snd_ctl_elem_value *ucontrol)
  21682. {
  21683. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21684. return 0;
  21685. }
  21686. static int msm_routing_put_stereo_to_custom_stereo_control(
  21687. struct snd_kcontrol *kcontrol,
  21688. struct snd_ctl_elem_value *ucontrol)
  21689. {
  21690. int flag = 0, i = 0, rc = 0, idx = 0;
  21691. int be_index = 0, port_id, topo_id;
  21692. unsigned int session_id = 0;
  21693. uint16_t op_FL_ip_FL_weight = 0;
  21694. uint16_t op_FL_ip_FR_weight = 0;
  21695. uint16_t op_FR_ip_FL_weight = 0;
  21696. uint16_t op_FR_ip_FR_weight = 0;
  21697. flag = ucontrol->value.integer.value[0];
  21698. pr_debug("%s E flag %d\n", __func__, flag);
  21699. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21700. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21701. __func__, is_custom_stereo_on, flag);
  21702. return 0;
  21703. }
  21704. is_custom_stereo_on = flag ? true : false;
  21705. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  21706. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21707. port_id = msm_bedais[be_index].port_id;
  21708. if (!msm_bedais[be_index].active)
  21709. continue;
  21710. if ((port_id != SLIMBUS_0_RX) &&
  21711. (port_id != RT_PROXY_PORT_001_RX) &&
  21712. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  21713. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  21714. continue;
  21715. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21716. MSM_FRONTEND_DAI_MM_SIZE) {
  21717. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  21718. LEGACY_PCM_MODE)
  21719. goto skip_send_custom_stereo;
  21720. session_id =
  21721. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  21722. if (is_custom_stereo_on) {
  21723. op_FL_ip_FL_weight =
  21724. Q14_GAIN_ZERO_POINT_FIVE;
  21725. op_FL_ip_FR_weight =
  21726. Q14_GAIN_ZERO_POINT_FIVE;
  21727. op_FR_ip_FL_weight =
  21728. Q14_GAIN_ZERO_POINT_FIVE;
  21729. op_FR_ip_FR_weight =
  21730. Q14_GAIN_ZERO_POINT_FIVE;
  21731. } else {
  21732. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  21733. op_FL_ip_FR_weight = 0;
  21734. op_FR_ip_FL_weight = 0;
  21735. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  21736. }
  21737. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21738. unsigned long copp =
  21739. session_copp_map[i]
  21740. [SESSION_TYPE_RX][be_index];
  21741. if (!test_bit(idx, &copp))
  21742. goto skip_send_custom_stereo;
  21743. topo_id = adm_get_topology_for_port_copp_idx(
  21744. msm_bedais[be_index].port_id, idx);
  21745. if (topo_id < 0)
  21746. pr_debug("%s:Err:custom stereo topo %d",
  21747. __func__, topo_id);
  21748. pr_debug("idx %d\n", idx);
  21749. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  21750. rc = msm_ds2_dap_set_custom_stereo_onoff
  21751. (msm_bedais[be_index].port_id,
  21752. idx, is_custom_stereo_on);
  21753. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  21754. rc = dolby_dap_set_custom_stereo_onoff(
  21755. msm_bedais[be_index].port_id,
  21756. idx, is_custom_stereo_on);
  21757. else
  21758. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  21759. (msm_bedais[be_index].port_id,
  21760. idx, session_id,
  21761. op_FL_ip_FL_weight,
  21762. op_FL_ip_FR_weight,
  21763. op_FR_ip_FL_weight,
  21764. op_FR_ip_FR_weight);
  21765. if (rc < 0)
  21766. skip_send_custom_stereo:
  21767. pr_err("%s: err setting custom stereo\n",
  21768. __func__);
  21769. }
  21770. }
  21771. }
  21772. return 0;
  21773. }
  21774. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  21775. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  21776. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  21777. msm_routing_put_stereo_to_custom_stereo_control),
  21778. };
  21779. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21780. struct snd_ctl_elem_value *ucontrol)
  21781. {
  21782. return 0;
  21783. }
  21784. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21785. struct snd_ctl_elem_value *ucontrol)
  21786. {
  21787. int i = 0, j;
  21788. int num_app_types = ucontrol->value.integer.value[i++];
  21789. pr_debug("%s\n", __func__);
  21790. memset(app_type_cfg, 0, MAX_APP_TYPES*
  21791. sizeof(struct msm_pcm_routing_app_type_data));
  21792. if (num_app_types > MAX_APP_TYPES) {
  21793. pr_err("%s: number of app types exceed the max supported\n",
  21794. __func__);
  21795. return -EINVAL;
  21796. }
  21797. for (j = 0; j < num_app_types; j++) {
  21798. app_type_cfg[j].app_type =
  21799. ucontrol->value.integer.value[i++];
  21800. app_type_cfg[j].sample_rate =
  21801. ucontrol->value.integer.value[i++];
  21802. app_type_cfg[j].bit_width =
  21803. ucontrol->value.integer.value[i++];
  21804. }
  21805. return 0;
  21806. }
  21807. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  21808. struct snd_ctl_elem_value *ucontrol)
  21809. {
  21810. int j, fe_id, be_id, port_type;
  21811. int ret = 0;
  21812. unsigned long copp;
  21813. struct msm_pcm_routing_bdai_data *bedai;
  21814. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21815. SESSION_TYPE_RX;
  21816. int app_type = ucontrol->value.integer.value[1];
  21817. int gain = (ucontrol->value.integer.value[2] +
  21818. ucontrol->value.integer.value[3])/2;
  21819. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21820. MSM_AFE_PORT_TYPE_TX;
  21821. mutex_lock(&routing_lock);
  21822. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21823. if (is_be_dai_extproc(be_id))
  21824. continue;
  21825. bedai = &msm_bedais[be_id];
  21826. if (afe_get_port_type(bedai->port_id) != port_type)
  21827. continue;
  21828. if (!bedai->active)
  21829. continue;
  21830. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21831. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21832. continue;
  21833. if (app_type !=
  21834. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21835. continue;
  21836. copp = session_copp_map[fe_id][dir][be_id];
  21837. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  21838. if (!test_bit(j, &copp))
  21839. continue;
  21840. ret |= adm_set_volume(bedai->port_id, j, gain);
  21841. }
  21842. }
  21843. }
  21844. mutex_unlock(&routing_lock);
  21845. return ret ? -EINVAL : 0;
  21846. }
  21847. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  21848. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  21849. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  21850. msm_routing_put_app_type_cfg_control),
  21851. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  21852. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  21853. };
  21854. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  21855. struct snd_ctl_elem_value *ucontrol)
  21856. {
  21857. int copp_idx, fe_id, be_id, port_type;
  21858. int ret = 0;
  21859. unsigned long copp;
  21860. struct msm_pcm_routing_bdai_data *bedai;
  21861. u8 *packed_params = NULL;
  21862. struct param_hdr_v3 param_hdr;
  21863. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  21864. sizeof(uint32_t));
  21865. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21866. SESSION_TYPE_RX;
  21867. int app_type = ucontrol->value.integer.value[1];
  21868. int module_id = ucontrol->value.integer.value[2];
  21869. int instance_id = ucontrol->value.integer.value[3];
  21870. int param_id = ucontrol->value.integer.value[4];
  21871. int param_value = ucontrol->value.integer.value[5];
  21872. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21873. MSM_AFE_PORT_TYPE_TX;
  21874. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  21875. __func__, app_type, module_id,
  21876. instance_id, param_id, param_value);
  21877. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  21878. if (!packed_params)
  21879. return -ENOMEM;
  21880. memset(&param_hdr, 0, sizeof(param_hdr));
  21881. param_hdr.module_id = module_id;
  21882. param_hdr.instance_id = instance_id;
  21883. param_hdr.param_id = param_id;
  21884. param_hdr.param_size = sizeof(uint32_t);
  21885. packed_param_size = 0;
  21886. mutex_lock(&routing_lock);
  21887. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21888. if (is_be_dai_extproc(be_id))
  21889. continue;
  21890. bedai = &msm_bedais[be_id];
  21891. if (afe_get_port_type(bedai->port_id) != port_type)
  21892. continue;
  21893. if (!bedai->active)
  21894. continue;
  21895. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21896. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21897. continue;
  21898. if (app_type !=
  21899. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21900. continue;
  21901. copp = session_copp_map[fe_id][dir][be_id];
  21902. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  21903. copp_idx++) {
  21904. if (!test_bit(copp_idx, &copp))
  21905. continue;
  21906. ret = q6common_pack_pp_params(packed_params,
  21907. &param_hdr,
  21908. (u8 *) &param_value,
  21909. &packed_param_size);
  21910. if (ret) {
  21911. pr_err("%s: Failed to pack params, error %d\n",
  21912. __func__, ret);
  21913. goto done;
  21914. }
  21915. ret = adm_set_pp_params(bedai->port_id,
  21916. copp_idx, NULL,
  21917. packed_params,
  21918. packed_param_size);
  21919. if (ret) {
  21920. pr_err("%s: Setting param failed with err=%d\n",
  21921. __func__, ret);
  21922. ret = -EINVAL;
  21923. goto done;
  21924. }
  21925. }
  21926. }
  21927. }
  21928. done:
  21929. mutex_unlock(&routing_lock);
  21930. kfree(packed_params);
  21931. return ret;
  21932. }
  21933. static const struct snd_kcontrol_new module_cfg_controls[] = {
  21934. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  21935. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  21936. };
  21937. static int msm_routing_get_lsm_app_type_cfg_control(
  21938. struct snd_kcontrol *kcontrol,
  21939. struct snd_ctl_elem_value *ucontrol)
  21940. {
  21941. int shift = ((struct soc_multi_mixer_control *)
  21942. kcontrol->private_value)->shift;
  21943. int i = 0, j = 0;
  21944. mutex_lock(&routing_lock);
  21945. ucontrol->value.integer.value[i] = num_app_cfg_types;
  21946. for (j = 0; j < num_app_cfg_types; ++j) {
  21947. ucontrol->value.integer.value[++i] =
  21948. lsm_app_type_cfg[j].app_type;
  21949. ucontrol->value.integer.value[++i] =
  21950. lsm_app_type_cfg[j].sample_rate;
  21951. ucontrol->value.integer.value[++i] =
  21952. lsm_app_type_cfg[j].bit_width;
  21953. if (shift == 1)
  21954. ucontrol->value.integer.value[++i] =
  21955. lsm_app_type_cfg[j].num_out_channels;
  21956. }
  21957. mutex_unlock(&routing_lock);
  21958. return 0;
  21959. }
  21960. static int msm_routing_put_lsm_app_type_cfg_control(
  21961. struct snd_kcontrol *kcontrol,
  21962. struct snd_ctl_elem_value *ucontrol)
  21963. {
  21964. int shift = ((struct soc_multi_mixer_control *)
  21965. kcontrol->private_value)->shift;
  21966. int i = 0, j;
  21967. mutex_lock(&routing_lock);
  21968. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  21969. pr_err("%s: number of app types exceed the max supported\n",
  21970. __func__);
  21971. mutex_unlock(&routing_lock);
  21972. return -EINVAL;
  21973. }
  21974. num_app_cfg_types = ucontrol->value.integer.value[i++];
  21975. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  21976. sizeof(struct msm_pcm_routing_app_type_data));
  21977. for (j = 0; j < num_app_cfg_types; j++) {
  21978. lsm_app_type_cfg[j].app_type =
  21979. ucontrol->value.integer.value[i++];
  21980. lsm_app_type_cfg[j].sample_rate =
  21981. ucontrol->value.integer.value[i++];
  21982. lsm_app_type_cfg[j].bit_width =
  21983. ucontrol->value.integer.value[i++];
  21984. /* Shift of 1 indicates this is V2 mixer control */
  21985. if (shift == 1)
  21986. lsm_app_type_cfg[j].num_out_channels =
  21987. ucontrol->value.integer.value[i++];
  21988. }
  21989. mutex_unlock(&routing_lock);
  21990. return 0;
  21991. }
  21992. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  21993. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  21994. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21995. msm_routing_put_lsm_app_type_cfg_control),
  21996. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  21997. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21998. msm_routing_put_lsm_app_type_cfg_control),
  21999. };
  22000. static int msm_routing_get_use_ds1_or_ds2_control(
  22001. struct snd_kcontrol *kcontrol,
  22002. struct snd_ctl_elem_value *ucontrol)
  22003. {
  22004. ucontrol->value.integer.value[0] = is_ds2_on;
  22005. return 0;
  22006. }
  22007. static int msm_routing_put_use_ds1_or_ds2_control(
  22008. struct snd_kcontrol *kcontrol,
  22009. struct snd_ctl_elem_value *ucontrol)
  22010. {
  22011. is_ds2_on = ucontrol->value.integer.value[0];
  22012. return 0;
  22013. }
  22014. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  22015. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  22016. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  22017. msm_routing_put_use_ds1_or_ds2_control),
  22018. };
  22019. static int msm_routing_get_hifi_filter_control(
  22020. struct snd_kcontrol *kcontrol,
  22021. struct snd_ctl_elem_value *ucontrol)
  22022. {
  22023. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  22024. return 0;
  22025. }
  22026. static int msm_routing_put_hifi_filter_control(
  22027. struct snd_kcontrol *kcontrol,
  22028. struct snd_ctl_elem_value *ucontrol)
  22029. {
  22030. hifi_filter_enabled = ucontrol->value.integer.value[0];
  22031. return 0;
  22032. }
  22033. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  22034. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  22035. 1, 0, msm_routing_get_hifi_filter_control,
  22036. msm_routing_put_hifi_filter_control),
  22037. };
  22038. static int msm_routing_get_ffecns_freeze_event_control(
  22039. struct snd_kcontrol *kcontrol,
  22040. struct snd_ctl_elem_value *ucontrol)
  22041. {
  22042. ucontrol->value.integer.value[0] = ffecns_freeze_event;
  22043. return 0;
  22044. }
  22045. static int msm_routing_put_ffecns_freeze_event_control(
  22046. struct snd_kcontrol *kcontrol,
  22047. struct snd_ctl_elem_value *ucontrol)
  22048. {
  22049. int ret = -EINVAL;
  22050. ffecns_freeze_event = ucontrol->value.integer.value[0];
  22051. ret = adm_set_ffecns_freeze_event(ffecns_freeze_event);
  22052. if (ret)
  22053. pr_err("%s: failed to set ffecns imc event to%d\n",
  22054. __func__, ffecns_freeze_event);
  22055. return ret;
  22056. }
  22057. static const struct snd_kcontrol_new use_ffecns_freeze_event_controls[] = {
  22058. SOC_SINGLE_EXT("FFECNS Freeze Event", SND_SOC_NOPM, 0,
  22059. 1, 0, msm_routing_get_ffecns_freeze_event_control,
  22060. msm_routing_put_ffecns_freeze_event_control),
  22061. };
  22062. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  22063. struct snd_ctl_elem_value *ucontrol) {
  22064. int rc = 0;
  22065. int be_idx = 0;
  22066. char *param_value;
  22067. int *update_param_value;
  22068. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  22069. struct param_hdr_v3 param_hdr;
  22070. param_value = kzalloc(param_size, GFP_KERNEL);
  22071. if (!param_value)
  22072. return -ENOMEM;
  22073. memset(&param_hdr, 0, sizeof(param_hdr));
  22074. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  22075. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  22076. break;
  22077. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  22078. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  22079. param_hdr.instance_id = INSTANCE_ID_0;
  22080. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  22081. param_hdr.param_size = param_size;
  22082. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  22083. NULL, &param_hdr, (u8 *) param_value);
  22084. if (rc) {
  22085. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  22086. kfree(param_value);
  22087. return -EINVAL;
  22088. }
  22089. update_param_value = (int *)param_value;
  22090. ucontrol->value.integer.value[0] = update_param_value[0];
  22091. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  22092. __func__, update_param_value[0]);
  22093. }
  22094. kfree(param_value);
  22095. return 0;
  22096. }
  22097. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  22098. struct snd_ctl_elem_value *ucontrol)
  22099. {
  22100. voc_session_id = ucontrol->value.integer.value[0];
  22101. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  22102. return 0;
  22103. }
  22104. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  22105. struct snd_ctl_elem_value *ucontrol)
  22106. {
  22107. ucontrol->value.integer.value[0] = voc_session_id;
  22108. return 0;
  22109. }
  22110. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  22111. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  22112. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  22113. msm_voc_session_id_put),
  22114. };
  22115. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  22116. struct snd_ctl_elem_info *uinfo)
  22117. {
  22118. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22119. uinfo->count = sizeof(struct sound_focus_param);
  22120. return 0;
  22121. }
  22122. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  22123. struct snd_ctl_elem_value *ucontrol)
  22124. {
  22125. int ret = 0;
  22126. struct sound_focus_param soundFocusData;
  22127. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22128. sizeof(struct sound_focus_param));
  22129. ret = voc_set_sound_focus(soundFocusData);
  22130. if (ret) {
  22131. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22132. __func__, ret);
  22133. ret = -EINVAL;
  22134. }
  22135. return ret;
  22136. }
  22137. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  22138. struct snd_ctl_elem_value *ucontrol)
  22139. {
  22140. int ret = 0;
  22141. struct sound_focus_param soundFocusData;
  22142. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  22143. ret = voc_get_sound_focus(&soundFocusData);
  22144. if (ret) {
  22145. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  22146. __func__, ret);
  22147. ret = -EINVAL;
  22148. goto done;
  22149. }
  22150. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22151. sizeof(struct sound_focus_param));
  22152. done:
  22153. return ret;
  22154. }
  22155. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  22156. struct snd_ctl_elem_info *uinfo)
  22157. {
  22158. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22159. uinfo->count = sizeof(struct source_tracking_param);
  22160. return 0;
  22161. }
  22162. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  22163. struct snd_ctl_elem_value *ucontrol)
  22164. {
  22165. int ret = 0;
  22166. struct source_tracking_param sourceTrackingData;
  22167. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  22168. ret = voc_get_source_tracking(&sourceTrackingData);
  22169. if (ret) {
  22170. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  22171. __func__, ret);
  22172. ret = -EINVAL;
  22173. goto done;
  22174. }
  22175. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22176. sizeof(struct source_tracking_param));
  22177. done:
  22178. return ret;
  22179. }
  22180. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  22181. int *copp_idx)
  22182. {
  22183. int i, idx, be_idx;
  22184. int ret = 0;
  22185. unsigned long copp;
  22186. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  22187. ret = q6audio_validate_port(port_id);
  22188. if (ret < 0) {
  22189. pr_err("%s: port validation failed id 0x%x ret %d\n",
  22190. __func__, port_id, ret);
  22191. ret = -EINVAL;
  22192. goto done;
  22193. }
  22194. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22195. if (msm_bedais[be_idx].port_id == port_id)
  22196. break;
  22197. }
  22198. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22199. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  22200. ret = -EINVAL;
  22201. goto done;
  22202. }
  22203. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22204. MSM_FRONTEND_DAI_MAX) {
  22205. if (!(is_mm_lsm_fe_id(i) &&
  22206. route_check_fe_id_adm_support(i)))
  22207. continue;
  22208. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22209. copp = session_copp_map[i]
  22210. [session_type][be_idx];
  22211. if (test_bit(idx, &copp))
  22212. break;
  22213. }
  22214. if (idx >= MAX_COPPS_PER_PORT)
  22215. continue;
  22216. else
  22217. break;
  22218. }
  22219. if (i >= MSM_FRONTEND_DAI_MAX) {
  22220. pr_debug("%s: Invalid FE, exiting\n", __func__);
  22221. ret = -EINVAL;
  22222. goto done;
  22223. }
  22224. *copp_idx = idx;
  22225. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  22226. done:
  22227. return ret;
  22228. }
  22229. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  22230. const char *prefix, int *port_id)
  22231. {
  22232. int ret = 0;
  22233. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  22234. /*
  22235. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  22236. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  22237. * and compare the string with the backend name to derive the port id.
  22238. */
  22239. if (!strcmp(kcontrol->id.name + strlen(prefix),
  22240. "SLIMBUS_0")) {
  22241. *port_id = SLIMBUS_0_TX;
  22242. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22243. "TERT_MI2S")) {
  22244. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  22245. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22246. "INT3_MI2S")) {
  22247. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  22248. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22249. "VA_CDC_DMA_TX_0")) {
  22250. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  22251. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22252. "TX_CDC_DMA_TX_3")) {
  22253. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  22254. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22255. "QUIN_TDM_TX_0")) {
  22256. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  22257. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22258. "PRIMARY_TDM")) {
  22259. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  22260. } else {
  22261. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  22262. __func__, kcontrol->id.name);
  22263. ret = -EINVAL;
  22264. goto done;
  22265. }
  22266. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  22267. __func__, kcontrol->id.name, *port_id);
  22268. done:
  22269. return ret;
  22270. }
  22271. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  22272. struct snd_ctl_elem_value *ucontrol)
  22273. {
  22274. int ret = 0;
  22275. struct sound_focus_param soundFocusData;
  22276. int port_id, copp_idx;
  22277. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22278. "Sound Focus Audio Tx ", &port_id);
  22279. if (ret != 0) {
  22280. pr_err("%s: Error in deriving port id, err=%d\n",
  22281. __func__, ret);
  22282. ret = -EINVAL;
  22283. goto done;
  22284. }
  22285. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22286. &copp_idx);
  22287. if (ret) {
  22288. pr_err("%s: Could not get copp idx for port_id=%d\n",
  22289. __func__, port_id);
  22290. ret = -EINVAL;
  22291. goto done;
  22292. }
  22293. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22294. sizeof(struct sound_focus_param));
  22295. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  22296. if (ret) {
  22297. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22298. __func__, ret);
  22299. ret = -EINVAL;
  22300. goto done;
  22301. }
  22302. done:
  22303. return ret;
  22304. }
  22305. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  22306. struct snd_ctl_elem_value *ucontrol)
  22307. {
  22308. int ret = 0;
  22309. struct sound_focus_param soundFocusData;
  22310. int port_id, copp_idx;
  22311. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22312. "Sound Focus Audio Tx ", &port_id);
  22313. if (ret) {
  22314. pr_err("%s: Error in deriving port id, err=%d\n",
  22315. __func__, ret);
  22316. ret = -EINVAL;
  22317. goto done;
  22318. }
  22319. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22320. &copp_idx);
  22321. if (ret) {
  22322. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22323. __func__, port_id);
  22324. ret = -EINVAL;
  22325. goto done;
  22326. }
  22327. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  22328. if (ret) {
  22329. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  22330. __func__, ret);
  22331. ret = -EINVAL;
  22332. goto done;
  22333. }
  22334. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22335. sizeof(struct sound_focus_param));
  22336. done:
  22337. return ret;
  22338. }
  22339. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  22340. struct snd_ctl_elem_value *ucontrol)
  22341. {
  22342. int ret = 0;
  22343. struct source_tracking_param sourceTrackingData;
  22344. int port_id, copp_idx;
  22345. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22346. "Source Tracking Audio Tx ", &port_id);
  22347. if (ret) {
  22348. pr_err("%s: Error in deriving port id, err=%d\n",
  22349. __func__, ret);
  22350. ret = -EINVAL;
  22351. goto done;
  22352. }
  22353. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22354. &copp_idx);
  22355. if (ret) {
  22356. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22357. __func__, port_id);
  22358. ret = -EINVAL;
  22359. goto done;
  22360. }
  22361. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  22362. if (ret) {
  22363. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  22364. __func__, ret);
  22365. ret = -EINVAL;
  22366. goto done;
  22367. }
  22368. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22369. sizeof(struct source_tracking_param));
  22370. done:
  22371. return ret;
  22372. }
  22373. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  22374. struct snd_ctl_elem_info *uinfo)
  22375. {
  22376. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22377. uinfo->count = sizeof(struct doa_tracking_mon_param);
  22378. return 0;
  22379. }
  22380. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  22381. struct snd_ctl_elem_value *ucontrol)
  22382. {
  22383. int ret = 0;
  22384. struct doa_tracking_mon_param doa_tracking_data;
  22385. int port_id, copp_idx;
  22386. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  22387. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22388. "Doa Tracking Monitor Listen ", &port_id);
  22389. if (ret) {
  22390. pr_err("%s: Error in deriving port id, err=%d\n",
  22391. __func__, ret);
  22392. ret = -EINVAL;
  22393. goto done;
  22394. }
  22395. /*
  22396. * If copp id exists for given port id, query adm to get doa data.
  22397. * Else query afe for doa tracking params.
  22398. * This is to support in cases where LSM directly connects to
  22399. * AFE for FFNS.
  22400. */
  22401. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22402. &copp_idx);
  22403. if (!ret)
  22404. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  22405. &doa_tracking_data);
  22406. else
  22407. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  22408. if (ret) {
  22409. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  22410. __func__, ret);
  22411. ret = -EINVAL;
  22412. goto done;
  22413. }
  22414. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  22415. sizeof(struct doa_tracking_mon_param));
  22416. done:
  22417. return ret;
  22418. }
  22419. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  22420. {
  22421. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22422. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22423. .name = "Sound Focus Voice Tx SLIMBUS_0",
  22424. .info = msm_sound_focus_info,
  22425. .get = msm_voice_sound_focus_get,
  22426. .put = msm_voice_sound_focus_put,
  22427. },
  22428. {
  22429. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22430. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22431. .name = "Source Tracking Voice Tx SLIMBUS_0",
  22432. .info = msm_source_tracking_info,
  22433. .get = msm_voice_source_tracking_get,
  22434. },
  22435. {
  22436. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22437. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22438. .name = "Sound Focus Audio Tx SLIMBUS_0",
  22439. .info = msm_sound_focus_info,
  22440. .get = msm_audio_sound_focus_get,
  22441. .put = msm_audio_sound_focus_put,
  22442. },
  22443. {
  22444. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22445. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22446. .name = "Source Tracking Audio Tx SLIMBUS_0",
  22447. .info = msm_source_tracking_info,
  22448. .get = msm_audio_source_tracking_get,
  22449. },
  22450. {
  22451. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22452. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22453. .name = "Sound Focus Voice Tx TERT_MI2S",
  22454. .info = msm_sound_focus_info,
  22455. .get = msm_voice_sound_focus_get,
  22456. .put = msm_voice_sound_focus_put,
  22457. },
  22458. {
  22459. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22460. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22461. .name = "Source Tracking Voice Tx TERT_MI2S",
  22462. .info = msm_source_tracking_info,
  22463. .get = msm_voice_source_tracking_get,
  22464. },
  22465. {
  22466. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22467. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22468. .name = "Sound Focus Audio Tx TERT_MI2S",
  22469. .info = msm_sound_focus_info,
  22470. .get = msm_audio_sound_focus_get,
  22471. .put = msm_audio_sound_focus_put,
  22472. },
  22473. {
  22474. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22475. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22476. .name = "Source Tracking Audio Tx TERT_MI2S",
  22477. .info = msm_source_tracking_info,
  22478. .get = msm_audio_source_tracking_get,
  22479. },
  22480. {
  22481. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22482. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22483. .name = "Sound Focus Voice Tx INT3_MI2S",
  22484. .info = msm_sound_focus_info,
  22485. .get = msm_voice_sound_focus_get,
  22486. .put = msm_voice_sound_focus_put,
  22487. },
  22488. {
  22489. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22490. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22491. .name = "Source Tracking Voice Tx INT3_MI2S",
  22492. .info = msm_source_tracking_info,
  22493. .get = msm_voice_source_tracking_get,
  22494. },
  22495. {
  22496. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22497. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22498. .name = "Sound Focus Audio Tx INT3_MI2S",
  22499. .info = msm_sound_focus_info,
  22500. .get = msm_audio_sound_focus_get,
  22501. .put = msm_audio_sound_focus_put,
  22502. },
  22503. {
  22504. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22505. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22506. .name = "Source Tracking Audio Tx INT3_MI2S",
  22507. .info = msm_source_tracking_info,
  22508. .get = msm_audio_source_tracking_get,
  22509. },
  22510. {
  22511. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22512. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22513. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  22514. .info = msm_sound_focus_info,
  22515. .get = msm_voice_sound_focus_get,
  22516. .put = msm_voice_sound_focus_put,
  22517. },
  22518. {
  22519. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22520. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22521. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  22522. .info = msm_source_tracking_info,
  22523. .get = msm_voice_source_tracking_get,
  22524. },
  22525. {
  22526. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22527. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22528. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  22529. .info = msm_sound_focus_info,
  22530. .get = msm_audio_sound_focus_get,
  22531. .put = msm_audio_sound_focus_put,
  22532. },
  22533. {
  22534. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22535. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22536. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  22537. .info = msm_source_tracking_info,
  22538. .get = msm_audio_source_tracking_get,
  22539. },
  22540. {
  22541. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22542. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22543. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  22544. .info = msm_sound_focus_info,
  22545. .get = msm_voice_sound_focus_get,
  22546. .put = msm_voice_sound_focus_put,
  22547. },
  22548. {
  22549. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22550. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22551. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  22552. .info = msm_source_tracking_info,
  22553. .get = msm_voice_source_tracking_get,
  22554. },
  22555. {
  22556. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22557. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22558. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  22559. .info = msm_sound_focus_info,
  22560. .get = msm_audio_sound_focus_get,
  22561. .put = msm_audio_sound_focus_put,
  22562. },
  22563. {
  22564. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22565. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22566. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22567. .info = msm_source_tracking_info,
  22568. .get = msm_audio_source_tracking_get,
  22569. },
  22570. {
  22571. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22572. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22573. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22574. .info = msm_sound_focus_info,
  22575. .get = msm_voice_sound_focus_get,
  22576. .put = msm_voice_sound_focus_put,
  22577. },
  22578. {
  22579. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22580. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22581. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22582. .info = msm_source_tracking_info,
  22583. .get = msm_voice_source_tracking_get,
  22584. },
  22585. {
  22586. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22587. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22588. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22589. .info = msm_sound_focus_info,
  22590. .get = msm_audio_sound_focus_get,
  22591. .put = msm_audio_sound_focus_put,
  22592. },
  22593. {
  22594. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22595. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22596. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22597. .info = msm_source_tracking_info,
  22598. .get = msm_audio_source_tracking_get,
  22599. },
  22600. {
  22601. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22602. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22603. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22604. .info = msm_sound_focus_info,
  22605. .get = msm_audio_sound_focus_get,
  22606. .put = msm_audio_sound_focus_put,
  22607. },
  22608. {
  22609. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22610. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22611. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22612. .info = msm_source_tracking_info,
  22613. .get = msm_audio_source_tracking_get,
  22614. },
  22615. };
  22616. static const struct snd_kcontrol_new msm_source_doa_tracking_controls[] = {
  22617. {
  22618. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22620. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22621. .info = msm_doa_tracking_mon_info,
  22622. .get = msm_doa_tracking_mon_get,
  22623. },
  22624. };
  22625. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22626. struct snd_ctl_elem_value *ucontrol)
  22627. {
  22628. int ret = 0;
  22629. int item;
  22630. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22631. pr_debug("%s item is %d\n", __func__,
  22632. ucontrol->value.enumerated.item[0]);
  22633. mutex_lock(&routing_lock);
  22634. item = ucontrol->value.enumerated.item[0];
  22635. if (item < e->items) {
  22636. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22637. __func__, e->shift_l, e->values[item]);
  22638. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22639. e->values[item] < MSM_BACKEND_DAI_MAX)
  22640. /* Enable feedback TX path */
  22641. ret = afe_spk_prot_feed_back_cfg(
  22642. msm_bedais[e->values[item]].port_id,
  22643. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22644. else {
  22645. pr_debug("%s values are out of range item %d\n",
  22646. __func__, e->values[item]);
  22647. /* Disable feedback TX path */
  22648. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22649. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22650. else
  22651. ret = -EINVAL;
  22652. }
  22653. } else {
  22654. pr_err("%s item value is out of range item\n", __func__);
  22655. ret = -EINVAL;
  22656. }
  22657. mutex_unlock(&routing_lock);
  22658. return ret;
  22659. }
  22660. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22661. struct snd_ctl_elem_value *ucontrol)
  22662. {
  22663. int ret = 0;
  22664. int item;
  22665. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22666. pr_debug("%s item is %d\n", __func__,
  22667. ucontrol->value.enumerated.item[0]);
  22668. mutex_lock(&routing_lock);
  22669. item = ucontrol->value.enumerated.item[0];
  22670. if (item < e->items) {
  22671. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22672. __func__, e->shift_l, e->values[item]);
  22673. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22674. e->values[item] < MSM_BACKEND_DAI_MAX)
  22675. /* Enable feedback TX path */
  22676. ret = afe_spk_prot_feed_back_cfg(
  22677. msm_bedais[e->values[item]].port_id,
  22678. msm_bedais[e->shift_l].port_id,
  22679. 1, 1, 1);
  22680. else {
  22681. pr_debug("%s values are out of range item %d\n",
  22682. __func__, e->values[item]);
  22683. /* Disable feedback TX path */
  22684. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22685. ret = afe_spk_prot_feed_back_cfg(0,
  22686. 0, 0, 0, 0);
  22687. else
  22688. ret = -EINVAL;
  22689. }
  22690. } else {
  22691. pr_err("%s item value is out of range item\n", __func__);
  22692. ret = -EINVAL;
  22693. }
  22694. mutex_unlock(&routing_lock);
  22695. return ret;
  22696. }
  22697. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22698. struct snd_ctl_elem_value *ucontrol)
  22699. {
  22700. pr_debug("%s\n", __func__);
  22701. return 0;
  22702. }
  22703. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  22704. struct snd_ctl_elem_value *ucontrol)
  22705. {
  22706. pr_debug("%s\n", __func__);
  22707. ucontrol->value.enumerated.item[0] = 0;
  22708. return 0;
  22709. }
  22710. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  22711. "ZERO", "SLIM4_TX"
  22712. };
  22713. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  22714. "ZERO", "SLIM4_TX"
  22715. };
  22716. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  22717. "ZERO", "WSA_CDC_DMA_TX_0"
  22718. };
  22719. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  22720. "ZERO", "WSA_CDC_DMA_TX_0"
  22721. };
  22722. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  22723. "ZERO", "SENARY_TX"
  22724. };
  22725. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  22726. "ZERO", "INT5_MI2S_TX"
  22727. };
  22728. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  22729. "ZERO", "INT5_MI2S_TX"
  22730. };
  22731. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  22732. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22733. };
  22734. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  22735. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22736. };
  22737. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  22738. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22739. };
  22740. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  22741. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22742. };
  22743. static const int mi2s_rx_vi_fb_tx_value[] = {
  22744. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  22745. };
  22746. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  22747. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22748. };
  22749. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  22750. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22751. };
  22752. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  22753. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22754. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  22755. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  22756. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  22757. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22758. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  22759. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  22760. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  22761. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22762. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  22763. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  22764. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  22765. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22766. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  22767. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  22768. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  22769. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  22770. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  22771. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  22772. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  22773. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22774. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  22775. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  22776. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  22777. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  22778. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22779. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  22780. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  22781. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  22782. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  22783. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  22784. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22785. spkr_prot_put_vi_lch_port);
  22786. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  22787. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  22788. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22789. spkr_prot_put_vi_rch_port);
  22790. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  22791. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  22792. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22793. spkr_prot_put_vi_lch_port);
  22794. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  22795. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  22796. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22797. spkr_prot_put_vi_rch_port);
  22798. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  22799. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  22800. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  22801. spkr_prot_put_vi_lch_port);
  22802. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  22803. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  22804. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  22805. spkr_prot_put_vi_lch_port);
  22806. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  22807. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  22808. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  22809. spkr_prot_put_vi_rch_port);
  22810. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  22811. /* Frontend AIF */
  22812. /* Widget name equals to Front-End DAI name<Need confirmation>,
  22813. * Stream name must contains substring of front-end dai name
  22814. */
  22815. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  22816. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  22817. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  22818. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  22819. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  22820. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  22821. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  22822. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  22823. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  22824. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  22825. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  22826. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  22827. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  22828. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  22829. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  22830. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  22831. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  22832. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  22833. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  22834. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  22835. SND_SOC_DAPM_AIF_IN("MM_DL24", "MultiMedia24 Playback", 0, 0, 0, 0),
  22836. SND_SOC_DAPM_AIF_IN("MM_DL25", "MultiMedia25 Playback", 0, 0, 0, 0),
  22837. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  22838. SND_SOC_DAPM_AIF_IN("MM_DL31", "MultiMedia31 Playback", 0, 0, 0, 0),
  22839. SND_SOC_DAPM_AIF_IN("MM_DL32", "MultiMedia32 Playback", 0, 0, 0, 0),
  22840. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  22841. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  22842. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  22843. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  22844. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  22845. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  22846. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  22847. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  22848. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  22849. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  22850. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  22851. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  22852. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  22853. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  22854. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  22855. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  22856. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  22857. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  22858. SND_SOC_DAPM_AIF_OUT("MM_UL24", "MultiMedia24 Capture", 0, 0, 0, 0),
  22859. SND_SOC_DAPM_AIF_OUT("MM_UL25", "MultiMedia25 Capture", 0, 0, 0, 0),
  22860. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  22861. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  22862. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  22863. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  22864. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  22865. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  22866. "VoiceMMode1 Playback", 0, 0, 0, 0),
  22867. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  22868. "VoiceMMode1 Capture", 0, 0, 0, 0),
  22869. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  22870. "VoiceMMode2 Playback", 0, 0, 0, 0),
  22871. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  22872. "VoiceMMode2 Capture", 0, 0, 0, 0),
  22873. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  22874. 0, 0, 0, 0),
  22875. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  22876. 0, 0, 0, 0),
  22877. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  22878. 0, 0, 0, 0),
  22879. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  22880. 0, 0, 0, 0),
  22881. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  22882. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  22883. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  22884. 0, 0, 0, 0),
  22885. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  22886. 0, 0, 0, 0),
  22887. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  22888. 0, 0, 0, 0),
  22889. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  22890. 0, 0, 0, 0),
  22891. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  22892. 0, 0, 0, 0),
  22893. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  22894. 0, 0, 0, 0),
  22895. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  22896. 0, 0, 0, 0),
  22897. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  22898. 0, 0, 0, 0),
  22899. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  22900. 0, 0, 0, 0),
  22901. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  22902. 0, 0, 0, 0),
  22903. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  22904. 0, 0, 0, 0),
  22905. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  22906. 0, 0, 0, 0),
  22907. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  22908. 0, 0, 0, 0),
  22909. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  22910. 0, 0, 0, 0),
  22911. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  22912. 0, 0, 0, 0),
  22913. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  22914. 0, 0, 0, 0),
  22915. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  22916. 0, 0, 0, 0),
  22917. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  22918. 0, 0, 0, 0),
  22919. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  22920. 0, 0, 0, 0),
  22921. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  22922. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  22923. 0, 0, 0, 0),
  22924. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  22925. "INT0 MI2S_RX Hostless Playback",
  22926. 0, 0, 0, 0),
  22927. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  22928. "INT4 MI2S_RX Hostless Playback",
  22929. 0, 0, 0, 0),
  22930. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  22931. "Primary MI2S_RX Hostless Playback",
  22932. 0, 0, 0, 0),
  22933. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  22934. "Secondary MI2S_RX Hostless Playback",
  22935. 0, 0, 0, 0),
  22936. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  22937. "Tertiary MI2S_RX Hostless Playback",
  22938. 0, 0, 0, 0),
  22939. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  22940. "Quaternary MI2S_RX Hostless Playback",
  22941. 0, 0, 0, 0),
  22942. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  22943. "Quinary MI2S_RX Hostless Playback",
  22944. 0, 0, 0, 0),
  22945. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  22946. "Senary MI2S_RX Hostless Playback",
  22947. 0, 0, 0, 0),
  22948. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  22949. 0, 0, 0, 0),
  22950. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  22951. 0, 0, 0, 0),
  22952. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  22953. 0, 0, 0, 0),
  22954. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  22955. 0, 0, 0, 0),
  22956. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  22957. 0, 0, 0, 0),
  22958. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  22959. "INT3 MI2S_TX Hostless Capture",
  22960. 0, 0, 0, 0),
  22961. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  22962. "Tertiary MI2S_TX Hostless Capture",
  22963. 0, 0, 0, 0),
  22964. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  22965. "Secondary MI2S_TX Hostless Capture",
  22966. 0, 0, 0, 0),
  22967. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  22968. "Primary MI2S_TX Hostless Capture",
  22969. 0, 0, 0, 0),
  22970. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  22971. 0, 0, 0, 0),
  22972. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  22973. 0, 0, 0, 0),
  22974. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  22975. "Quaternary MI2S_TX Hostless Capture",
  22976. 0, 0, 0, 0),
  22977. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  22978. "Quinary MI2S_TX Hostless Capture",
  22979. 0, 0, 0, 0),
  22980. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  22981. "Senary MI2S_TX Hostless Capture",
  22982. 0, 0, 0, 0),
  22983. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  22984. "Primary TDM0 Hostless Playback",
  22985. 0, 0, 0, 0),
  22986. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  22987. "Primary TDM0 Hostless Capture",
  22988. 0, 0, 0, 0),
  22989. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  22990. "Primary TDM1 Hostless Playback",
  22991. 0, 0, 0, 0),
  22992. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  22993. "Primary TDM1 Hostless Capture",
  22994. 0, 0, 0, 0),
  22995. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  22996. "Primary TDM2 Hostless Playback",
  22997. 0, 0, 0, 0),
  22998. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  22999. "Primary TDM2 Hostless Capture",
  23000. 0, 0, 0, 0),
  23001. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  23002. "Primary TDM3 Hostless Playback",
  23003. 0, 0, 0, 0),
  23004. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  23005. "Primary TDM3 Hostless Capture",
  23006. 0, 0, 0, 0),
  23007. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  23008. "Primary TDM4 Hostless Playback",
  23009. 0, 0, 0, 0),
  23010. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  23011. "Primary TDM4 Hostless Capture",
  23012. 0, 0, 0, 0),
  23013. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  23014. "Primary TDM5 Hostless Playback",
  23015. 0, 0, 0, 0),
  23016. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  23017. "Primary TDM5 Hostless Capture",
  23018. 0, 0, 0, 0),
  23019. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  23020. "Primary TDM6 Hostless Playback",
  23021. 0, 0, 0, 0),
  23022. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  23023. "Primary TDM6 Hostless Capture",
  23024. 0, 0, 0, 0),
  23025. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  23026. "Primary TDM7 Hostless Playback",
  23027. 0, 0, 0, 0),
  23028. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  23029. "Primary TDM7 Hostless Capture",
  23030. 0, 0, 0, 0),
  23031. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  23032. "Secondary TDM0 Hostless Playback",
  23033. 0, 0, 0, 0),
  23034. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  23035. "Secondary TDM0 Hostless Capture",
  23036. 0, 0, 0, 0),
  23037. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  23038. "Secondary TDM1 Hostless Playback",
  23039. 0, 0, 0, 0),
  23040. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  23041. "Secondary TDM1 Hostless Capture",
  23042. 0, 0, 0, 0),
  23043. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  23044. "Secondary TDM2 Hostless Playback",
  23045. 0, 0, 0, 0),
  23046. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  23047. "Secondary TDM2 Hostless Capture",
  23048. 0, 0, 0, 0),
  23049. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  23050. "Secondary TDM3 Hostless Playback",
  23051. 0, 0, 0, 0),
  23052. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  23053. "Secondary TDM3 Hostless Capture",
  23054. 0, 0, 0, 0),
  23055. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  23056. "Secondary TDM4 Hostless Playback",
  23057. 0, 0, 0, 0),
  23058. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  23059. "Secondary TDM4 Hostless Capture",
  23060. 0, 0, 0, 0),
  23061. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  23062. "Secondary TDM5 Hostless Playback",
  23063. 0, 0, 0, 0),
  23064. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  23065. "Secondary TDM5 Hostless Capture",
  23066. 0, 0, 0, 0),
  23067. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  23068. "Secondary TDM6 Hostless Playback",
  23069. 0, 0, 0, 0),
  23070. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  23071. "Secondary TDM6 Hostless Capture",
  23072. 0, 0, 0, 0),
  23073. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  23074. "Secondary TDM7 Hostless Playback",
  23075. 0, 0, 0, 0),
  23076. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  23077. "Secondary TDM7 Hostless Capture",
  23078. 0, 0, 0, 0),
  23079. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  23080. "Tertiary TDM0 Hostless Playback",
  23081. 0, 0, 0, 0),
  23082. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  23083. "Tertiary TDM0 Hostless Capture",
  23084. 0, 0, 0, 0),
  23085. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  23086. "Tertiary TDM1 Hostless Playback",
  23087. 0, 0, 0, 0),
  23088. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  23089. "Tertiary TDM1 Hostless Capture",
  23090. 0, 0, 0, 0),
  23091. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  23092. "Tertiary TDM2 Hostless Playback",
  23093. 0, 0, 0, 0),
  23094. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  23095. "Tertiary TDM2 Hostless Capture",
  23096. 0, 0, 0, 0),
  23097. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  23098. "Tertiary TDM3 Hostless Playback",
  23099. 0, 0, 0, 0),
  23100. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  23101. "Tertiary TDM3 Hostless Capture",
  23102. 0, 0, 0, 0),
  23103. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  23104. "Tertiary TDM4 Hostless Playback",
  23105. 0, 0, 0, 0),
  23106. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  23107. "Tertiary TDM4 Hostless Capture",
  23108. 0, 0, 0, 0),
  23109. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  23110. "Tertiary TDM5 Hostless Playback",
  23111. 0, 0, 0, 0),
  23112. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  23113. "Tertiary TDM5 Hostless Capture",
  23114. 0, 0, 0, 0),
  23115. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  23116. "Tertiary TDM6 Hostless Playback",
  23117. 0, 0, 0, 0),
  23118. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  23119. "Tertiary TDM6 Hostless Capture",
  23120. 0, 0, 0, 0),
  23121. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  23122. "Tertiary TDM7 Hostless Playback",
  23123. 0, 0, 0, 0),
  23124. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  23125. "Tertiary TDM7 Hostless Capture",
  23126. 0, 0, 0, 0),
  23127. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  23128. "Quaternary TDM0 Hostless Playback",
  23129. 0, 0, 0, 0),
  23130. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  23131. "Quaternary TDM0 Hostless Capture",
  23132. 0, 0, 0, 0),
  23133. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  23134. "Quaternary TDM1 Hostless Playback",
  23135. 0, 0, 0, 0),
  23136. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  23137. "Quaternary TDM1 Hostless Capture",
  23138. 0, 0, 0, 0),
  23139. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  23140. "Quaternary TDM2 Hostless Playback",
  23141. 0, 0, 0, 0),
  23142. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  23143. "Quaternary TDM2 Hostless Capture",
  23144. 0, 0, 0, 0),
  23145. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  23146. "Quaternary TDM3 Hostless Playback",
  23147. 0, 0, 0, 0),
  23148. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  23149. "Quaternary TDM3 Hostless Capture",
  23150. 0, 0, 0, 0),
  23151. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  23152. "Quaternary TDM4 Hostless Playback",
  23153. 0, 0, 0, 0),
  23154. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  23155. "Quaternary TDM4 Hostless Capture",
  23156. 0, 0, 0, 0),
  23157. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  23158. "Quaternary TDM5 Hostless Playback",
  23159. 0, 0, 0, 0),
  23160. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  23161. "Quaternary TDM5 Hostless Capture",
  23162. 0, 0, 0, 0),
  23163. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  23164. "Quaternary TDM6 Hostless Playback",
  23165. 0, 0, 0, 0),
  23166. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  23167. "Quaternary TDM6 Hostless Capture",
  23168. 0, 0, 0, 0),
  23169. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  23170. "Quaternary TDM7 Hostless Playback",
  23171. 0, 0, 0, 0),
  23172. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  23173. "Quaternary TDM7 Hostless Capture",
  23174. 0, 0, 0, 0),
  23175. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  23176. "Quinary TDM0 Hostless Playback",
  23177. 0, 0, 0, 0),
  23178. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  23179. "Quinary TDM0 Hostless Capture",
  23180. 0, 0, 0, 0),
  23181. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  23182. "Quinary TDM1 Hostless Playback",
  23183. 0, 0, 0, 0),
  23184. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  23185. "Quinary TDM1 Hostless Capture",
  23186. 0, 0, 0, 0),
  23187. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  23188. "Quinary TDM2 Hostless Playback",
  23189. 0, 0, 0, 0),
  23190. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  23191. "Quinary TDM2 Hostless Capture",
  23192. 0, 0, 0, 0),
  23193. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  23194. "Quinary TDM3 Hostless Playback",
  23195. 0, 0, 0, 0),
  23196. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  23197. "Quinary TDM3 Hostless Capture",
  23198. 0, 0, 0, 0),
  23199. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  23200. "Quinary TDM4 Hostless Playback",
  23201. 0, 0, 0, 0),
  23202. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  23203. "Quinary TDM4 Hostless Capture",
  23204. 0, 0, 0, 0),
  23205. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  23206. "Quinary TDM5 Hostless Playback",
  23207. 0, 0, 0, 0),
  23208. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  23209. "Quinary TDM5 Hostless Capture",
  23210. 0, 0, 0, 0),
  23211. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  23212. "Quinary TDM6 Hostless Playback",
  23213. 0, 0, 0, 0),
  23214. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  23215. "Quinary TDM6 Hostless Capture",
  23216. 0, 0, 0, 0),
  23217. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  23218. "Quinary TDM7 Hostless Playback",
  23219. 0, 0, 0, 0),
  23220. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  23221. "Quinary TDM7 Hostless Capture",
  23222. 0, 0, 0, 0),
  23223. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  23224. "Senary TDM0 Hostless Playback",
  23225. 0, 0, 0, 0),
  23226. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  23227. "Senary TDM0 Hostless Capture",
  23228. 0, 0, 0, 0),
  23229. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  23230. "Senary TDM1 Hostless Playback",
  23231. 0, 0, 0, 0),
  23232. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  23233. "Senary TDM1 Hostless Capture",
  23234. 0, 0, 0, 0),
  23235. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  23236. "Senary TDM2 Hostless Playback",
  23237. 0, 0, 0, 0),
  23238. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  23239. "Senary TDM2 Hostless Capture",
  23240. 0, 0, 0, 0),
  23241. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  23242. "Senary TDM3 Hostless Playback",
  23243. 0, 0, 0, 0),
  23244. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  23245. "Senary TDM3 Hostless Capture",
  23246. 0, 0, 0, 0),
  23247. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  23248. "Senary TDM4 Hostless Playback",
  23249. 0, 0, 0, 0),
  23250. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  23251. "Senary TDM4 Hostless Capture",
  23252. 0, 0, 0, 0),
  23253. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  23254. "Senary TDM5 Hostless Playback",
  23255. 0, 0, 0, 0),
  23256. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  23257. "Senary TDM5 Hostless Capture",
  23258. 0, 0, 0, 0),
  23259. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  23260. "Senary TDM6 Hostless Playback",
  23261. 0, 0, 0, 0),
  23262. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  23263. "Senary TDM6 Hostless Capture",
  23264. 0, 0, 0, 0),
  23265. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  23266. "Senary TDM7 Hostless Playback",
  23267. 0, 0, 0, 0),
  23268. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  23269. "Senary TDM7 Hostless Capture",
  23270. 0, 0, 0, 0),
  23271. /* LSM */
  23272. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  23273. 0, 0, 0, 0),
  23274. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  23275. 0, 0, 0, 0),
  23276. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  23277. 0, 0, 0, 0),
  23278. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  23279. 0, 0, 0, 0),
  23280. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  23281. 0, 0, 0, 0),
  23282. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  23283. 0, 0, 0, 0),
  23284. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  23285. 0, 0, 0, 0),
  23286. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  23287. 0, 0, 0, 0),
  23288. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  23289. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  23290. /* Backend AIF */
  23291. /* Stream name equals to backend dai link stream name */
  23292. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  23293. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  23294. 0, 0, 0, 0),
  23295. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  23296. 0, 0, 0, 0),
  23297. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  23298. 0, 0, 0, 0),
  23299. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  23300. 0, 0, 0, 0),
  23301. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  23302. 0, 0, 0, 0),
  23303. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  23304. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  23305. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  23306. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  23307. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  23308. 0, 0, 0, 0),
  23309. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  23310. 0, 0, 0, 0),
  23311. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  23312. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  23313. 0, 0, 0, 0),
  23314. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  23315. 0, 0, 0, 0),
  23316. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  23317. 0, 0, 0, 0),
  23318. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  23319. "Secondary MI2S Playback SD1",
  23320. 0, 0, 0, 0),
  23321. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  23322. 0, 0, 0, 0),
  23323. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  23324. 0, 0, 0, 0),
  23325. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  23326. 0, 0, 0, 0),
  23327. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  23328. 0, 0, 0, 0),
  23329. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  23330. 0, 0, 0, 0),
  23331. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  23332. 0, 0, 0, 0),
  23333. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  23334. 0, 0, 0, 0),
  23335. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  23336. 0, 0, 0, 0),
  23337. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  23338. 0, 0, 0, 0),
  23339. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  23340. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  23341. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  23342. 0, 0, 0, 0),
  23343. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  23344. 0, 0, 0, 0),
  23345. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  23346. 0, 0, 0, 0),
  23347. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  23348. 0, 0, 0, 0),
  23349. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  23350. 0, 0, 0, 0),
  23351. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  23352. 0, 0, 0, 0),
  23353. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  23354. 0, 0, 0, 0),
  23355. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  23356. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  23357. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  23358. 0, 0, 0, 0),
  23359. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  23360. 0, 0, 0, 0),
  23361. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  23362. 0, 0, 0, 0),
  23363. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  23364. 0, 0, 0, 0),
  23365. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  23366. 0, 0, 0, 0),
  23367. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  23368. 0, 0, 0, 0),
  23369. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  23370. 0, 0, 0, 0),
  23371. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  23372. 0, 0, 0, 0),
  23373. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  23374. 0, 0, 0, 0),
  23375. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  23376. 0, 0, 0, 0),
  23377. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  23378. 0, 0, 0, 0),
  23379. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  23380. 0, 0, 0, 0),
  23381. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  23382. 0, 0, 0, 0),
  23383. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  23384. 0, 0, 0, 0),
  23385. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  23386. 0, 0, 0, 0),
  23387. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  23388. 0, 0, 0, 0),
  23389. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  23390. 0, 0, 0, 0),
  23391. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  23392. 0, 0, 0, 0),
  23393. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  23394. 0, 0, 0, 0),
  23395. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  23396. 0, 0, 0, 0),
  23397. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  23398. 0, 0, 0, 0),
  23399. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  23400. 0, 0, 0, 0),
  23401. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  23402. 0, 0, 0, 0),
  23403. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  23404. 0, 0, 0, 0),
  23405. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  23406. 0, 0, 0, 0),
  23407. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  23408. 0, 0, 0, 0),
  23409. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  23410. 0, 0, 0, 0),
  23411. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  23412. 0, 0, 0, 0),
  23413. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  23414. 0, 0, 0, 0),
  23415. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  23416. 0, 0, 0, 0),
  23417. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  23418. 0, 0, 0, 0),
  23419. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  23420. 0, 0, 0, 0),
  23421. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  23422. 0, 0, 0, 0),
  23423. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  23424. 0, 0, 0, 0),
  23425. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  23426. 0, 0, 0, 0),
  23427. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  23428. 0, 0, 0, 0),
  23429. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  23430. 0, 0, 0, 0),
  23431. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  23432. 0, 0, 0, 0),
  23433. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  23434. 0, 0, 0, 0),
  23435. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  23436. 0, 0, 0, 0),
  23437. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  23438. 0, 0, 0, 0),
  23439. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  23440. 0, 0, 0, 0),
  23441. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  23442. 0, 0, 0, 0),
  23443. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  23444. 0, 0, 0, 0),
  23445. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  23446. 0, 0, 0, 0),
  23447. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  23448. 0, 0, 0, 0),
  23449. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  23450. 0, 0, 0, 0),
  23451. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  23452. 0, 0, 0, 0),
  23453. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  23454. 0, 0, 0, 0),
  23455. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  23456. 0, 0, 0, 0),
  23457. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  23458. 0, 0, 0, 0),
  23459. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  23460. 0, 0, 0, 0),
  23461. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  23462. 0, 0, 0, 0),
  23463. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  23464. 0, 0, 0, 0),
  23465. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  23466. 0, 0, 0, 0),
  23467. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  23468. 0, 0, 0, 0),
  23469. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  23470. 0, 0, 0, 0),
  23471. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  23472. 0, 0, 0, 0),
  23473. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  23474. 0, 0, 0, 0),
  23475. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  23476. 0, 0, 0, 0),
  23477. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  23478. 0, 0, 0, 0),
  23479. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  23480. 0, 0, 0, 0),
  23481. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  23482. 0, 0, 0, 0),
  23483. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  23484. 0, 0, 0, 0),
  23485. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  23486. 0, 0, 0, 0),
  23487. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  23488. 0, 0, 0, 0),
  23489. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  23490. 0, 0, 0, 0),
  23491. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  23492. 0, 0, 0, 0),
  23493. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  23494. 0, 0, 0, 0),
  23495. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  23496. 0, 0, 0, 0),
  23497. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  23498. 0, 0, 0, 0),
  23499. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  23500. 0, 0, 0, 0),
  23501. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  23502. 0, 0, 0, 0),
  23503. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  23504. 0, 0, 0, 0),
  23505. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  23506. 0, 0, 0, 0),
  23507. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  23508. 0, 0, 0, 0),
  23509. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  23510. 0, 0, 0, 0),
  23511. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  23512. 0, 0, 0, 0),
  23513. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  23514. 0, 0, 0, 0),
  23515. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  23516. 0, 0, 0, 0),
  23517. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  23518. 0, 0, 0, 0),
  23519. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  23520. 0, 0, 0, 0),
  23521. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  23522. 0, 0, 0, 0),
  23523. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  23524. 0, 0, 0, 0),
  23525. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  23526. 0, 0, 0, 0),
  23527. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  23528. 0, 0, 0, 0),
  23529. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  23530. 0, 0, 0, 0),
  23531. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  23532. 0, 0, 0, 0),
  23533. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  23534. 0, 0, 0, 0),
  23535. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  23536. 0, 0, 0, 0),
  23537. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  23538. 0, 0, 0, 0),
  23539. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  23540. 0, 0, 0, 0),
  23541. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  23542. 0, 0, 0, 0),
  23543. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  23544. 0, 0, 0, 0),
  23545. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  23546. 0, 0, 0, 0),
  23547. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  23548. 0, 0, 0, 0),
  23549. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  23550. 0, 0, 0, 0),
  23551. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  23552. 0, 0, 0, 0),
  23553. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  23554. 0, 0, 0, 0),
  23555. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  23556. 0, 0, 0, 0),
  23557. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  23558. 0, 0, 0, 0),
  23559. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  23560. 0, 0, 0, 0),
  23561. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  23562. 0, 0, 0, 0),
  23563. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  23564. 0, 0, 0, 0),
  23565. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  23566. 0, 0, 0, 0),
  23567. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  23568. 0, 0, 0, 0),
  23569. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  23570. 0, 0, 0, 0),
  23571. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23572. 0, 0, 0, 0),
  23573. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23574. 0, 0, 0, 0),
  23575. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23576. 0, 0, 0, 0),
  23577. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23578. 0, 0, 0, 0),
  23579. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23580. 0, 0, 0, 0),
  23581. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23582. 0, 0, 0, 0),
  23583. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23584. 0, 0, 0, 0),
  23585. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23586. 0, 0, 0, 0),
  23587. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23588. 0, 0, 0, 0),
  23589. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23590. 0, 0, 0, 0),
  23591. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23592. 0, 0, 0, 0),
  23593. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23594. 0, 0, 0, 0),
  23595. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23596. 0, 0, 0, 0),
  23597. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23598. 0, 0, 0, 0),
  23599. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23600. 0, 0, 0, 0),
  23601. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23602. 0, 0, 0, 0),
  23603. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23604. 0, 0, 0, 0),
  23605. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23606. 0, 0, 0, 0),
  23607. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23608. 0, 0, 0, 0),
  23609. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23610. 0, 0, 0, 0),
  23611. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23612. 0, 0, 0, 0),
  23613. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23614. 0, 0, 0, 0),
  23615. /* incall */
  23616. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23617. 0, 0, 0, 0),
  23618. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23619. 0, 0, 0, 0),
  23620. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23621. 0, 0, 0, 0),
  23622. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23623. 0, 0, 0, 0),
  23624. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23625. 0, 0, 0, 0),
  23626. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23627. 0, 0, 0, 0),
  23628. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23629. 0, 0, 0, 0),
  23630. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23631. 0, 0, 0, 0),
  23632. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23633. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23634. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23635. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23636. 0, 0, 0, 0),
  23637. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23638. 0, 0, 0, 0),
  23639. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23640. 0, 0, 0, 0),
  23641. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23642. 0, 0, 0, 0),
  23643. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23644. 0, 0, 0, 0),
  23645. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23646. 0, 0, 0, 0),
  23647. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23648. 0, 0, 0, 0),
  23649. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23650. 0, 0, 0, 0),
  23651. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23652. 0, 0, 0, 0),
  23653. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23654. 0, 0, 0, 0),
  23655. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23656. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23657. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23658. 0, 0, 0, 0),
  23659. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23660. 0, 0, 0, 0),
  23661. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23662. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23663. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23664. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23665. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23666. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23667. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23668. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23669. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23670. /* In- call recording */
  23671. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23672. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23673. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23674. 0, 0, 0, 0),
  23675. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23676. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23677. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23678. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23679. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23680. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23681. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23682. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23683. SND_SOC_DAPM_AIF_OUT("PROXY_RX", "Proxy Playback", 0, 0, 0, 0),
  23684. SND_SOC_DAPM_AIF_IN("PROXY_TX", "Proxy Capture", 0, 0, 0, 0),
  23685. /* Switch Definitions */
  23686. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23687. &slim_fm_switch_mixer_controls),
  23688. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23689. &slim1_fm_switch_mixer_controls),
  23690. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23691. &slim3_fm_switch_mixer_controls),
  23692. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23693. &slim4_fm_switch_mixer_controls),
  23694. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23695. &slim6_fm_switch_mixer_controls),
  23696. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23697. &pcm_rx_switch_mixer_controls),
  23698. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23699. &int0_mi2s_rx_switch_mixer_controls),
  23700. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23701. &int4_mi2s_rx_switch_mixer_controls),
  23702. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23703. &pri_mi2s_rx_switch_mixer_controls),
  23704. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23705. &sec_mi2s_rx_switch_mixer_controls),
  23706. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23707. &tert_mi2s_rx_switch_mixer_controls),
  23708. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23709. &quat_mi2s_rx_switch_mixer_controls),
  23710. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23711. &quin_mi2s_rx_switch_mixer_controls),
  23712. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23713. &sco_slim7_switch_mixer_controls),
  23714. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23715. &sen_mi2s_rx_switch_mixer_controls),
  23716. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23717. &hfp_pri_aux_switch_mixer_controls),
  23718. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23719. &hfp_aux_switch_mixer_controls),
  23720. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  23721. &hfp_int_switch_mixer_controls),
  23722. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23723. &hfp_slim7_switch_mixer_controls),
  23724. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  23725. &usb_switch_mixer_controls),
  23726. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23727. &a2dp_slim7_switch_mixer_controls),
  23728. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23729. &cdc_dma_wsa_switch_mixer_controls),
  23730. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23731. &cdc_dma_rx_switch_mixer_controls),
  23732. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  23733. &cdc_dma_rx_1_switch_mixer_controls),
  23734. /* Mixer definitions */
  23735. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23736. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  23737. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23738. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  23739. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23740. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  23741. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23742. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  23743. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23744. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  23745. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23746. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  23747. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23748. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  23749. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  23750. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  23751. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  23752. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  23753. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  23754. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  23755. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23756. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  23757. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23758. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  23759. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23760. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  23761. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23762. quaternary_mi2s_rx_mixer_controls,
  23763. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  23764. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23765. tertiary_mi2s_rx_mixer_controls,
  23766. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  23767. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23768. secondary_mi2s_rx_mixer_controls,
  23769. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  23770. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23771. secondary_mi2s_rx2_mixer_controls,
  23772. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  23773. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23774. primary_mi2s_rx_mixer_controls,
  23775. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  23776. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23777. int0_mi2s_rx_mixer_controls,
  23778. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  23779. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23780. int4_mi2s_rx_mixer_controls,
  23781. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  23782. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23783. quinary_mi2s_rx_mixer_controls,
  23784. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  23785. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23786. senary_mi2s_rx_mixer_controls,
  23787. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  23788. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23789. pri_tdm_rx_0_mixer_controls,
  23790. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  23791. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23792. pri_tdm_rx_1_mixer_controls,
  23793. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  23794. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23795. pri_tdm_rx_2_mixer_controls,
  23796. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  23797. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23798. pri_tdm_rx_3_mixer_controls,
  23799. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  23800. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23801. pri_tdm_tx_0_mixer_controls,
  23802. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  23803. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23804. sec_tdm_rx_0_mixer_controls,
  23805. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  23806. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23807. sec_tdm_rx_1_mixer_controls,
  23808. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  23809. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23810. sec_tdm_rx_2_mixer_controls,
  23811. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  23812. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23813. sec_tdm_rx_3_mixer_controls,
  23814. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  23815. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23816. sec_tdm_tx_0_mixer_controls,
  23817. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  23818. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23819. tert_tdm_rx_0_mixer_controls,
  23820. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  23821. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23822. tert_tdm_tx_0_mixer_controls,
  23823. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  23824. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23825. tert_tdm_rx_1_mixer_controls,
  23826. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  23827. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23828. tert_tdm_rx_2_mixer_controls,
  23829. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  23830. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23831. tert_tdm_rx_3_mixer_controls,
  23832. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  23833. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23834. tert_tdm_rx_4_mixer_controls,
  23835. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  23836. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23837. quat_tdm_rx_0_mixer_controls,
  23838. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  23839. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23840. quat_tdm_tx_0_mixer_controls,
  23841. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  23842. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23843. quat_tdm_rx_1_mixer_controls,
  23844. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  23845. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23846. quat_tdm_rx_2_mixer_controls,
  23847. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  23848. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23849. quat_tdm_rx_3_mixer_controls,
  23850. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  23851. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23852. quin_tdm_rx_0_mixer_controls,
  23853. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  23854. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23855. quin_tdm_tx_0_mixer_controls,
  23856. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  23857. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23858. quin_tdm_rx_1_mixer_controls,
  23859. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  23860. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23861. quin_tdm_tx_1_mixer_controls,
  23862. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  23863. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23864. quin_tdm_rx_2_mixer_controls,
  23865. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  23866. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23867. quin_tdm_tx_2_mixer_controls,
  23868. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  23869. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23870. quin_tdm_rx_3_mixer_controls,
  23871. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  23872. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23873. quin_tdm_tx_3_mixer_controls,
  23874. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  23875. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23876. sen_tdm_tx_0_mixer_controls,
  23877. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  23878. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23879. sen_tdm_rx_0_mixer_controls,
  23880. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  23881. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23882. sen_tdm_rx_1_mixer_controls,
  23883. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  23884. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23885. sen_tdm_rx_2_mixer_controls,
  23886. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  23887. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23888. sen_tdm_rx_3_mixer_controls,
  23889. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  23890. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23891. pri_meta_mi2s_rx_mixer_controls,
  23892. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  23893. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23894. sec_meta_mi2s_rx_mixer_controls,
  23895. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  23896. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23897. wsa_cdc_dma_rx_0_mixer_controls,
  23898. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  23899. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23900. wsa_cdc_dma_rx_1_mixer_controls,
  23901. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  23902. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23903. rx_cdc_dma_rx_0_mixer_controls,
  23904. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  23905. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23906. rx_cdc_dma_rx_1_mixer_controls,
  23907. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  23908. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23909. rx_cdc_dma_rx_2_mixer_controls,
  23910. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  23911. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23912. rx_cdc_dma_rx_3_mixer_controls,
  23913. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  23914. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23915. rx_cdc_dma_rx_4_mixer_controls,
  23916. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  23917. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23918. rx_cdc_dma_rx_5_mixer_controls,
  23919. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  23920. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23921. rx_cdc_dma_rx_6_mixer_controls,
  23922. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  23923. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23924. rx_cdc_dma_rx_7_mixer_controls,
  23925. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  23926. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  23927. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  23928. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  23929. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  23930. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  23931. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  23932. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  23933. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  23934. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  23935. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  23936. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  23937. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  23938. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  23939. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  23940. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  23941. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  23942. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  23943. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  23944. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  23945. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  23946. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  23947. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  23948. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  23949. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  23950. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  23951. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  23952. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  23953. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  23954. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  23955. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  23956. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  23957. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  23958. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  23959. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  23960. SND_SOC_DAPM_MIXER("MultiMedia24 Mixer", SND_SOC_NOPM, 0, 0,
  23961. mmul24_mixer_controls, ARRAY_SIZE(mmul24_mixer_controls)),
  23962. SND_SOC_DAPM_MIXER("MultiMedia25 Mixer", SND_SOC_NOPM, 0, 0,
  23963. mmul25_mixer_controls, ARRAY_SIZE(mmul25_mixer_controls)),
  23964. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  23965. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  23966. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  23967. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  23968. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  23969. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  23970. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  23971. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  23972. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23973. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  23974. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23975. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  23976. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23977. tert_auxpcm_rx_mixer_controls,
  23978. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  23979. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23980. quat_auxpcm_rx_mixer_controls,
  23981. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  23982. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23983. quin_auxpcm_rx_mixer_controls,
  23984. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  23985. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23986. sen_auxpcm_rx_mixer_controls,
  23987. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  23988. /* incall */
  23989. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  23990. incall_music_delivery_mixer_controls,
  23991. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  23992. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23993. incall_music2_delivery_mixer_controls,
  23994. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  23995. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23996. slimbus_4_rx_mixer_controls,
  23997. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  23998. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23999. slimbus_6_rx_mixer_controls,
  24000. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  24001. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24002. usb_audio_rx_mixer_controls,
  24003. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  24004. /* Voice Mixer */
  24005. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  24006. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  24007. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  24008. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  24009. SND_SOC_NOPM, 0, 0,
  24010. sec_i2s_rx_voice_mixer_controls,
  24011. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  24012. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  24013. SND_SOC_NOPM, 0, 0,
  24014. sec_mi2s_rx_voice_mixer_controls,
  24015. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  24016. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  24017. SND_SOC_NOPM, 0, 0,
  24018. slimbus_rx_voice_mixer_controls,
  24019. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  24020. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  24021. SND_SOC_NOPM, 0, 0,
  24022. bt_sco_rx_voice_mixer_controls,
  24023. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  24024. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  24025. SND_SOC_NOPM, 0, 0,
  24026. afe_pcm_rx_voice_mixer_controls,
  24027. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  24028. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  24029. SND_SOC_NOPM, 0, 0,
  24030. aux_pcm_rx_voice_mixer_controls,
  24031. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  24032. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  24033. SND_SOC_NOPM, 0, 0,
  24034. sec_aux_pcm_rx_voice_mixer_controls,
  24035. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  24036. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  24037. SND_SOC_NOPM, 0, 0,
  24038. tert_aux_pcm_rx_voice_mixer_controls,
  24039. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  24040. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  24041. SND_SOC_NOPM, 0, 0,
  24042. quat_aux_pcm_rx_voice_mixer_controls,
  24043. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  24044. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  24045. SND_SOC_NOPM, 0, 0,
  24046. quin_aux_pcm_rx_voice_mixer_controls,
  24047. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  24048. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  24049. SND_SOC_NOPM, 0, 0,
  24050. sen_aux_pcm_rx_voice_mixer_controls,
  24051. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  24052. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  24053. SND_SOC_NOPM, 0, 0,
  24054. hdmi_rx_voice_mixer_controls,
  24055. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  24056. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  24057. SND_SOC_NOPM, 0, 0,
  24058. mi2s_rx_voice_mixer_controls,
  24059. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  24060. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  24061. SND_SOC_NOPM, 0, 0,
  24062. pri_mi2s_rx_voice_mixer_controls,
  24063. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  24064. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  24065. SND_SOC_NOPM, 0, 0,
  24066. int0_mi2s_rx_voice_mixer_controls,
  24067. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  24068. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  24069. SND_SOC_NOPM, 0, 0,
  24070. int4_mi2s_rx_voice_mixer_controls,
  24071. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  24072. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  24073. SND_SOC_NOPM, 0, 0,
  24074. tert_mi2s_rx_voice_mixer_controls,
  24075. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  24076. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  24077. SND_SOC_NOPM, 0, 0,
  24078. quat_mi2s_rx_voice_mixer_controls,
  24079. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  24080. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  24081. SND_SOC_NOPM, 0, 0,
  24082. quin_mi2s_rx_voice_mixer_controls,
  24083. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  24084. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  24085. SND_SOC_NOPM, 0, 0,
  24086. pri_tdm_rx_0_voice_mixer_controls,
  24087. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  24088. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  24089. SND_SOC_NOPM, 0, 0,
  24090. pri_tdm_rx_1_voice_mixer_controls,
  24091. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  24092. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  24093. SND_SOC_NOPM, 0, 0,
  24094. pri_tdm_rx_2_voice_mixer_controls,
  24095. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  24096. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  24097. SND_SOC_NOPM, 0, 0,
  24098. pri_tdm_rx_3_voice_mixer_controls,
  24099. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  24100. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  24101. SND_SOC_NOPM, 0, 0,
  24102. sen_mi2s_rx_voice_mixer_controls,
  24103. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  24104. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  24105. SND_SOC_NOPM, 0, 0,
  24106. quat_tdm_rx_2_voice_mixer_controls,
  24107. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  24108. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  24109. SND_SOC_NOPM, 0, 0,
  24110. quin_tdm_rx_2_voice_mixer_controls,
  24111. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  24112. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  24113. SND_SOC_NOPM, 0, 0,
  24114. wsa_cdc_dma_rx_0_voice_mixer_controls,
  24115. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  24116. SND_SOC_DAPM_MIXER("PROXY_RX_Voice Mixer",
  24117. SND_SOC_NOPM, 0, 0,
  24118. proxy_rx_voice_mixer_controls,
  24119. ARRAY_SIZE(proxy_rx_voice_mixer_controls)),
  24120. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  24121. SND_SOC_NOPM, 0, 0,
  24122. rx_cdc_dma_rx_0_voice_mixer_controls,
  24123. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  24124. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  24125. SND_SOC_NOPM, 0, 0,
  24126. rx_cdc_dma_rx_1_voice_mixer_controls,
  24127. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  24128. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  24129. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  24130. ARRAY_SIZE(tx_voip_mixer_controls)),
  24131. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  24132. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  24133. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  24134. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  24135. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  24136. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  24137. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24138. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  24139. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24140. int_bt_a2dp_rx_mixer_controls,
  24141. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  24142. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24143. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  24144. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24145. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  24146. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24147. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  24148. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24149. tx_voice2_stub_mixer_controls,
  24150. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  24151. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24152. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  24153. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  24154. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  24155. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  24156. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  24157. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24158. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  24159. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  24160. SND_SOC_NOPM, 0, 0,
  24161. slimbus_6_rx_voice_mixer_controls,
  24162. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  24163. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24164. slimbus_7_rx_voice_mixer_controls,
  24165. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  24166. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24167. slimbus_8_rx_voice_mixer_controls,
  24168. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  24169. /* port mixer */
  24170. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  24171. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  24172. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  24173. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  24174. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  24175. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  24176. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  24177. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  24178. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  24179. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  24180. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  24181. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  24182. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  24183. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  24184. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  24185. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  24186. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  24187. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  24188. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  24189. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  24190. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  24191. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24192. sbus_1_rx_port_mixer_controls,
  24193. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  24194. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24195. bt_sco_rx_port_mixer_controls,
  24196. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  24197. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  24198. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  24199. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  24200. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  24201. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  24202. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  24203. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  24204. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  24205. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  24206. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  24207. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  24208. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  24209. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  24210. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  24211. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  24212. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  24213. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  24214. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  24215. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  24216. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  24217. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  24218. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24219. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  24220. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24221. primary_mi2s_rx_port_mixer_controls,
  24222. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  24223. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24224. sec_mi2s_rx_port_mixer_controls,
  24225. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  24226. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24227. tert_mi2s_rx_port_mixer_controls,
  24228. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  24229. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24230. quat_mi2s_rx_port_mixer_controls,
  24231. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  24232. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24233. quin_mi2s_rx_port_mixer_controls,
  24234. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  24235. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24236. sen_mi2s_rx_port_mixer_controls,
  24237. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  24238. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24239. pri_tdm_rx_0_port_mixer_controls,
  24240. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  24241. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24242. pri_tdm_rx_1_port_mixer_controls,
  24243. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  24244. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24245. pri_tdm_rx_2_port_mixer_controls,
  24246. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  24247. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24248. pri_tdm_rx_3_port_mixer_controls,
  24249. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  24250. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24251. sec_tdm_rx_0_port_mixer_controls,
  24252. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  24253. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24254. sec_tdm_rx_1_port_mixer_controls,
  24255. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  24256. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24257. sec_tdm_rx_2_port_mixer_controls,
  24258. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  24259. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24260. sec_tdm_rx_3_port_mixer_controls,
  24261. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  24262. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24263. sec_tdm_rx_7_port_mixer_controls,
  24264. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  24265. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24266. tert_tdm_rx_0_port_mixer_controls,
  24267. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  24268. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24269. tert_tdm_rx_1_port_mixer_controls,
  24270. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  24271. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24272. tert_tdm_rx_2_port_mixer_controls,
  24273. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  24274. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24275. tert_tdm_rx_3_port_mixer_controls,
  24276. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  24277. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24278. quat_tdm_rx_0_port_mixer_controls,
  24279. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  24280. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24281. quat_tdm_rx_1_port_mixer_controls,
  24282. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  24283. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24284. quat_tdm_rx_2_port_mixer_controls,
  24285. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  24286. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24287. quat_tdm_rx_3_port_mixer_controls,
  24288. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  24289. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24290. quat_tdm_rx_7_port_mixer_controls,
  24291. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  24292. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24293. quin_tdm_rx_0_port_mixer_controls,
  24294. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  24295. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24296. quin_tdm_rx_1_port_mixer_controls,
  24297. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  24298. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24299. quin_tdm_rx_2_port_mixer_controls,
  24300. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  24301. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24302. quin_tdm_rx_3_port_mixer_controls,
  24303. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  24304. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24305. quin_tdm_rx_7_port_mixer_controls,
  24306. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  24307. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24308. sen_tdm_rx_0_port_mixer_controls,
  24309. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  24310. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24311. sen_tdm_rx_1_port_mixer_controls,
  24312. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  24313. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24314. sen_tdm_rx_2_port_mixer_controls,
  24315. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  24316. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24317. sen_tdm_rx_3_port_mixer_controls,
  24318. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  24319. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24320. int0_mi2s_rx_port_mixer_controls,
  24321. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  24322. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24323. int4_mi2s_rx_port_mixer_controls,
  24324. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  24325. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24326. wsa_cdc_dma_rx_0_port_mixer_controls,
  24327. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  24328. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24329. rx_cdc_dma_rx_0_port_mixer_controls,
  24330. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  24331. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24332. rx_cdc_dma_rx_1_port_mixer_controls,
  24333. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  24334. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  24335. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  24336. ARRAY_SIZE(tx_qchat_mixer_controls)),
  24337. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  24338. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  24339. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  24340. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  24341. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  24342. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  24343. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  24344. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  24345. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  24346. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  24347. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  24348. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  24349. /* lsm mixer definitions */
  24350. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  24351. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  24352. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  24353. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  24354. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  24355. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  24356. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  24357. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  24358. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  24359. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  24360. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  24361. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  24362. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  24363. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  24364. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  24365. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  24366. /* Virtual Pins to force backends ON atm */
  24367. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  24368. SND_SOC_DAPM_INPUT("BE_IN"),
  24369. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24370. &slim0_rx_vi_fb_lch_mux),
  24371. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24372. &slim0_rx_vi_fb_rch_mux),
  24373. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24374. &wsa_rx_0_vi_fb_lch_mux),
  24375. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24376. &wsa_rx_0_vi_fb_rch_mux),
  24377. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  24378. &mi2s_rx_vi_fb_mux),
  24379. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24380. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  24381. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24382. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  24383. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  24384. &voc_ext_ec_mux),
  24385. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  24386. &ext_ec_ref_mux_ul1),
  24387. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  24388. &ext_ec_ref_mux_ul2),
  24389. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  24390. &ext_ec_ref_mux_ul3),
  24391. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  24392. &ext_ec_ref_mux_ul4),
  24393. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  24394. &ext_ec_ref_mux_ul5),
  24395. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  24396. &ext_ec_ref_mux_ul6),
  24397. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  24398. &ext_ec_ref_mux_ul8),
  24399. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  24400. &ext_ec_ref_mux_ul9),
  24401. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  24402. &ext_ec_ref_mux_ul10),
  24403. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  24404. &ext_ec_ref_mux_ul16),
  24405. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  24406. &ext_ec_ref_mux_ul17),
  24407. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  24408. &ext_ec_ref_mux_ul18),
  24409. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  24410. &ext_ec_ref_mux_ul19),
  24411. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  24412. &ext_ec_ref_mux_ul28),
  24413. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  24414. &ext_ec_ref_mux_ul29),
  24415. };
  24416. static const struct snd_soc_dapm_route intercon[] = {
  24417. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24418. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24419. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24420. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24421. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24422. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24423. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24424. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24425. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24426. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24427. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24428. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24429. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24430. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24431. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24432. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24433. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24434. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  24435. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24436. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24437. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24438. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24439. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24440. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24441. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24442. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24443. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24444. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24445. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24446. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24447. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24448. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24449. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24450. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24451. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24452. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  24453. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24454. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24455. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24456. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24457. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24458. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24459. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24460. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24461. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24462. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24463. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24464. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24465. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24466. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24467. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24468. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24469. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24470. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  24471. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24472. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24473. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24474. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24475. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24476. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24477. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24478. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24479. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24480. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24481. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24482. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24483. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24484. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24485. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24486. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24487. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24488. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  24489. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24490. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24491. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24492. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24493. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24494. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24495. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24496. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24497. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24498. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24499. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24500. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24501. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24502. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24503. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24504. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24505. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24506. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  24507. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24508. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24509. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24510. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24511. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24512. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24513. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24514. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24515. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24516. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24517. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24518. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24519. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24520. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24521. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24522. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24523. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24524. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24525. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24526. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  24527. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24528. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24529. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24530. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24531. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24532. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24533. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24534. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24535. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24536. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24537. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24538. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24539. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24540. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24541. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24542. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24543. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24544. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24545. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24546. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  24547. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24548. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24549. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24550. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24551. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24552. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24553. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24554. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24555. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24556. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24557. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24558. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24559. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24560. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24561. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24562. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24563. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24564. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24565. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24566. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  24567. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24568. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24569. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24570. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24571. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24572. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24573. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24574. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24575. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24576. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24577. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24578. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24579. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24580. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24581. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24582. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24583. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24584. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24585. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24586. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  24587. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24588. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24589. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24590. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24591. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24592. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24593. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24594. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24595. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24596. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24597. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24598. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24599. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24600. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24601. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24602. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24603. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24604. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24605. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24606. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24607. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24608. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24609. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24610. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24611. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24612. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24613. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24614. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24615. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24616. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24617. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24618. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24619. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24620. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24621. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24622. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24623. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24624. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24625. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24626. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24627. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24628. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24629. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24630. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24631. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24632. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24633. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24634. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24635. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24636. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24637. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24638. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24639. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24640. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24641. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24642. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24643. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24644. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24645. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24646. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24647. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24648. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24649. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24650. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24651. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24652. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24653. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24654. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24655. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24656. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24657. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24658. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24659. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24660. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24661. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24662. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24663. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24664. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24665. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24666. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24667. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24668. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24669. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24670. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24671. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24672. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24673. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24674. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24675. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24676. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24677. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24678. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24679. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24680. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24681. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24682. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24683. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24684. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24685. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24686. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24687. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24688. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24689. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24690. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24691. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24692. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24693. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24694. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24695. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24696. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24697. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24698. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24699. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24700. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24701. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24702. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24703. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24704. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24705. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24706. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  24707. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  24708. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  24709. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  24710. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  24711. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  24712. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  24713. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  24714. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  24715. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  24716. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  24717. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  24718. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  24719. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  24720. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  24721. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  24722. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  24723. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  24724. {"HDMI", NULL, "HDMI Mixer"},
  24725. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  24726. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  24727. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  24728. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  24729. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  24730. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  24731. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  24732. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  24733. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  24734. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  24735. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  24736. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  24737. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  24738. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  24739. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  24740. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  24741. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  24742. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  24743. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  24744. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  24745. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  24746. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  24747. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  24748. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  24749. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  24750. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  24751. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  24752. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  24753. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  24754. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  24755. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  24756. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  24757. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  24758. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  24759. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  24760. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  24761. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24762. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24763. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24764. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24765. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24766. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24767. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24768. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24769. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24770. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24771. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24772. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24773. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24774. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24775. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24776. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24777. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24778. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  24779. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24780. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24781. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24782. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24783. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24784. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24785. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24786. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24787. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24788. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24789. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24790. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24791. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24792. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24793. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24794. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24795. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24796. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  24797. /* incall */
  24798. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  24799. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  24800. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  24801. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  24802. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  24803. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  24804. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24805. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24806. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24807. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24808. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  24809. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24810. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24811. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24812. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24813. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  24814. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24815. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24816. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24817. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24818. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24819. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24820. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24821. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24822. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24823. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24824. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24825. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24826. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24827. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24828. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24829. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24830. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24831. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  24832. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24833. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24834. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24835. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24836. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24837. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24838. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24839. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24840. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24841. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24842. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24843. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24844. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24845. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24846. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24847. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24848. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24849. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  24850. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24851. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24852. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24853. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24854. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24855. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24856. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24857. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24858. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24859. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24860. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24861. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24862. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24863. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24864. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24865. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24866. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24867. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  24868. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24869. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24870. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24871. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24872. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24873. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24874. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24875. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24876. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24877. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24878. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24879. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24880. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24881. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24882. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24883. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24884. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24885. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  24886. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24887. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24888. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24889. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24890. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24891. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24892. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24893. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24894. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  24895. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24896. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24897. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24898. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24899. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24900. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24901. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24902. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24903. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24904. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24905. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24906. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24907. {"MultiMedia17 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  24908. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24909. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24910. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24911. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24912. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24913. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24914. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24915. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24916. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24917. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24918. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24919. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24920. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24921. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24922. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24923. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24924. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24925. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24926. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24927. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24928. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24929. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24930. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24931. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24932. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24933. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24934. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24935. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24936. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24937. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24938. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24939. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24940. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24941. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24942. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24943. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24944. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24945. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24946. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24947. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24948. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24949. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24950. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24951. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24952. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24953. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24954. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24955. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24956. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24957. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24958. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24959. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24960. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24961. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24962. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24963. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24964. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24965. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24966. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24967. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24968. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24969. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24970. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24971. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24972. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24973. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24974. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24975. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24976. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24977. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24978. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24979. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24980. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24981. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24982. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24983. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24984. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24985. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24986. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24987. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  24988. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24989. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24990. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24991. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24992. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24993. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24994. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24995. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24996. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24997. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24998. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24999. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25000. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25001. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25002. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25003. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25004. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25005. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  25006. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25007. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25008. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25009. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25010. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25011. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25012. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25013. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25014. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25015. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25016. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25017. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25018. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25019. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25020. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25021. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  25022. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25023. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25024. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25025. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25026. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25027. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25028. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25029. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25030. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25031. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25032. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25033. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25034. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25035. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25036. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25037. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  25038. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25039. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  25040. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25041. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25042. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25043. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25044. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25045. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25046. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25047. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25048. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25049. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25050. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25051. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25052. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25053. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25054. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25055. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25056. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25057. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25058. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25059. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  25060. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  25061. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25062. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25063. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25064. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25065. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25066. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25067. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25068. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25069. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25070. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25071. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25072. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25073. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25074. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25075. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25076. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  25077. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25078. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25079. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25080. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25081. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25082. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25083. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25084. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25085. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25086. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25087. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25088. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25089. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25090. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25091. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25092. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  25093. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25094. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25095. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25096. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25097. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25098. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25099. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25100. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25101. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25102. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25103. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25104. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25105. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25106. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25107. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25108. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25109. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25110. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  25111. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25112. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25113. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25114. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25115. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25116. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25117. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25118. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25119. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25120. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25121. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25122. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25123. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25124. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25125. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25126. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  25127. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25128. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25129. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25130. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25131. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25132. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25133. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25134. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25135. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25136. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25137. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25138. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25139. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25140. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25141. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25142. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25143. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25144. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  25145. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25146. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25147. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25148. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25149. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25150. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25151. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25152. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25153. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25154. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25155. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25156. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25157. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25158. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25159. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25160. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25161. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25162. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  25163. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25164. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25165. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25166. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25167. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25168. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25169. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25170. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25171. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25172. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25173. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25174. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25175. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25176. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25177. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25178. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25179. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25180. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25181. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25182. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25183. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25184. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  25185. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25186. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25187. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25188. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25189. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25190. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25191. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25192. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25193. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25194. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25195. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25196. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25197. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25198. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25199. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25200. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25201. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25202. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25203. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25204. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25205. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25206. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  25207. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25208. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25209. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25210. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25211. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25212. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25213. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25214. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25215. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25216. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25217. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25218. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25219. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25220. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25221. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25222. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25223. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25224. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25225. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25226. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25227. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25228. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  25229. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25230. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25231. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25232. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25233. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25234. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25235. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25236. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25237. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25238. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25239. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25240. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25241. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25242. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25243. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25244. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25245. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25246. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25247. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25248. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25249. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25250. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  25251. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25252. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25253. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25254. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25255. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25256. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25257. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25258. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25259. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25260. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25261. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25262. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25263. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25264. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25265. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25266. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25267. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25268. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25269. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25270. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  25271. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25272. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25273. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25274. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25275. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25276. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25277. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25278. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25279. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25280. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25281. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25282. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25283. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25284. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25285. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25286. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25287. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25288. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25289. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25290. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25291. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25292. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  25293. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25294. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25295. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25296. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25297. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25298. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25299. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25300. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25301. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25302. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25303. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25304. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25305. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25306. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25307. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25308. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25309. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25310. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25311. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25312. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25313. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25314. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  25315. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25316. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25317. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25318. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25319. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25320. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25321. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25322. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25323. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25324. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25325. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25326. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25327. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25328. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25329. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25330. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25331. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25332. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25333. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25334. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25335. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25336. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  25337. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25338. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25339. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25340. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25341. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25342. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25343. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25344. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25345. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25346. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25347. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25348. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25349. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25350. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25351. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25352. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25353. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25354. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25355. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25356. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25357. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25358. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  25359. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25360. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25361. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25362. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25363. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25364. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25365. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25366. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25367. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25368. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25369. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25370. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25371. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25372. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25373. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25374. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25375. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25376. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25377. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25378. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  25379. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25380. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25381. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25382. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25383. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25384. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25385. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25386. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25387. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25388. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25389. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25390. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25391. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25392. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25393. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25394. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25395. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25396. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25397. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25398. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25399. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25400. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  25401. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25402. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25403. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25404. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25405. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25406. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25407. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25408. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25409. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25410. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25411. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25412. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25413. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25414. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25415. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25416. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25417. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25418. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25419. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25420. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  25421. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25422. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25423. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25424. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25425. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25426. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25427. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25428. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25429. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25430. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25431. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25432. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25433. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25434. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25435. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25436. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25437. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25438. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25439. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25440. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25441. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25442. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  25443. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25444. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25445. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25446. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25447. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25448. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25449. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25450. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25451. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25452. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25453. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25454. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25455. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25456. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25457. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25458. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25459. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25460. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25461. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25462. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25463. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25464. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  25465. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25466. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25467. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25468. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25469. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25470. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25471. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25472. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25473. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25474. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25475. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25476. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25477. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25478. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25479. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25480. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25481. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25482. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25483. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25484. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25485. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25486. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  25487. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25488. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25489. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25490. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25491. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25492. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25493. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25494. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25495. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25496. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25497. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25498. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25499. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25500. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25501. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25502. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25503. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25504. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25505. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25506. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25507. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25508. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  25509. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25510. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25511. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25512. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25513. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25514. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25515. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25516. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25517. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25518. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25519. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25520. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25521. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25522. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25523. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25524. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25525. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25526. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25527. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25528. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25529. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25530. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25531. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  25532. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25533. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25534. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25535. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25536. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25537. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25538. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25539. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25540. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25541. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25542. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25543. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25544. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25545. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25546. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25547. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25548. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25549. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25550. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25551. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  25552. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25553. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25554. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25555. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25556. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25557. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25558. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25559. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25560. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25561. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25562. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25563. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25564. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25565. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25566. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25567. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25568. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25569. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25570. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25571. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25572. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25573. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25574. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  25575. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25576. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25577. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25578. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25579. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25580. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25581. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25582. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25583. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25584. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25585. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25586. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25587. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25588. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25589. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25590. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25591. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25592. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25593. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25594. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25595. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25596. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25597. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  25598. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25599. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25600. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25601. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25602. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25603. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25604. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25605. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25606. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25607. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25608. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25609. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25610. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25611. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25612. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25613. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25614. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25615. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25616. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25617. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25618. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25619. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25620. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  25621. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25622. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25623. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25624. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25625. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25626. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25627. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25628. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25629. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25630. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25631. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25632. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25633. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25634. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25635. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25636. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25637. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25638. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25639. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25640. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25641. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25642. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25643. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  25644. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25645. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25646. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25647. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25648. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25649. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25650. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25651. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25652. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25653. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25654. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25655. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25656. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25657. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25658. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25659. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25660. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25661. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25662. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25663. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25664. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25665. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25666. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25667. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25668. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25669. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25670. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25671. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25672. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25673. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25674. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25675. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25676. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25677. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25678. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25679. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25680. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25681. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25682. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25683. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25684. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25685. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25686. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  25687. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25688. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25689. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25690. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25691. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25692. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25693. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25694. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25695. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25696. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25697. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25698. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25699. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25700. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25701. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25702. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25703. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25704. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25705. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25706. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25707. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25708. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25709. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  25710. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25711. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25712. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25713. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25714. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25715. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25716. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25717. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25718. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25719. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25720. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25721. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25722. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25723. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25724. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25725. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25726. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25727. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25728. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25729. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25730. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25731. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25732. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  25733. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25734. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25735. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25736. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25737. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25738. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25739. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25740. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25741. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25742. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25743. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25744. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25745. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25746. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25747. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25748. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25749. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25750. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25751. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  25752. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25753. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25754. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25755. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25756. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25757. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25758. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25759. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25760. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25761. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25762. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25763. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25764. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25765. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25766. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25767. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25768. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  25769. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25770. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25771. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25772. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25773. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25774. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25775. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25776. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25777. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25778. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25779. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25780. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25781. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25782. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25783. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25784. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25785. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25786. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25787. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  25788. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25789. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25790. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25791. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25792. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25793. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25794. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25795. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25796. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25797. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25798. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25799. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25800. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25801. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25802. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25803. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25804. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25805. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25806. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  25807. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25808. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25809. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25810. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25811. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25812. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25813. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25814. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25815. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25816. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25817. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25818. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25819. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25820. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25821. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25822. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25823. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25824. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25825. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  25826. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  25827. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  25828. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  25829. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  25830. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  25831. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  25832. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  25833. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25834. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25835. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25836. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25837. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25838. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25839. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25840. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25841. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25842. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25843. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25844. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25845. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25846. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25847. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25848. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25849. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25850. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25851. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25852. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25853. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25854. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25855. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25856. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25857. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25858. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25859. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25860. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25861. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25862. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25863. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25864. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25865. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25866. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25867. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25868. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25869. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25870. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25871. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25872. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25873. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25874. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25875. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25876. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25877. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25878. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25879. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25880. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25881. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25882. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25883. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25884. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25885. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25886. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25887. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25888. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25889. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25890. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25891. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25892. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25893. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25894. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25895. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25896. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25897. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25898. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25899. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25900. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25901. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25902. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25903. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25904. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25905. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25906. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25907. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25908. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25909. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25910. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25911. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25912. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25913. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25914. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25915. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25916. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25917. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25918. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25919. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25920. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25921. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25922. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25923. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25924. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25925. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25926. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25927. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25928. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25929. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25930. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25931. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25932. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25933. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25934. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25935. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25936. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25937. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25938. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25939. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25940. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25941. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25942. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25943. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25944. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25945. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25946. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25947. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25948. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25949. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25950. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25951. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25952. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25953. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25954. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25955. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25956. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25957. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25958. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25959. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25960. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25961. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25962. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25963. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25964. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25965. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25966. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25967. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25968. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25969. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25970. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25971. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25972. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25973. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25974. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25975. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25976. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25977. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25978. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25979. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25980. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25981. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25982. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25983. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25984. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25985. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25986. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25987. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25988. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25989. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25990. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25991. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25992. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25993. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25994. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25995. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25996. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25997. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25998. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25999. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26000. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26001. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26002. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26003. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26004. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26005. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26006. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26007. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26008. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26009. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26010. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26011. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26012. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26013. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26014. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26015. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26016. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26017. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26018. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26019. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26020. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26021. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26022. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26023. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26024. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26025. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26026. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26027. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26028. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26029. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26030. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26031. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26032. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26033. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26034. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26035. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26036. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26037. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26038. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26039. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26040. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26041. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26042. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26043. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26044. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26045. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26046. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26047. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26048. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26049. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26050. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26051. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26052. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26053. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26054. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26055. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26056. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26057. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26058. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26059. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26060. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26061. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26062. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26063. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26064. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26065. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26066. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26067. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26068. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26069. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26070. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26071. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26072. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26073. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26074. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26075. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26076. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26077. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26078. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26079. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26080. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26081. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26082. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26083. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26084. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26085. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26086. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26087. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26088. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26089. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26090. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26091. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26092. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26093. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26094. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26095. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26096. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26097. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26098. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26099. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26100. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26101. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26102. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26103. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26104. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26105. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26106. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26107. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26108. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26109. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26110. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26111. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26112. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26113. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26114. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26115. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26116. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26117. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26118. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26119. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26120. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26121. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26122. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26123. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26124. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26125. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26126. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26127. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26128. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26129. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26130. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26131. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26132. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26133. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26134. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26135. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26136. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26137. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26138. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26139. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26140. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26141. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26142. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26143. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26144. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26145. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26146. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26147. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26148. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26149. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26150. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26151. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26152. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26153. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26154. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26155. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26156. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26157. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26158. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26159. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26160. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26161. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26162. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26163. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26164. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26165. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26166. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26167. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26168. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26169. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26170. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26171. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26172. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26173. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26174. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26175. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26176. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26177. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26178. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26179. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26180. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26181. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26182. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26183. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26184. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26185. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26186. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26187. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26188. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26189. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26190. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26191. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26192. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26193. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26194. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26195. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26196. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26197. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26198. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26199. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26200. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26201. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26202. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26203. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26204. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26205. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26206. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26207. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26208. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26209. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26210. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26211. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26212. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26213. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26214. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26215. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26216. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26217. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26218. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26219. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26220. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26221. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26222. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26223. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26224. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26225. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26226. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26227. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26228. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26229. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26230. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26231. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26232. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26233. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26234. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26235. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26236. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26237. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26238. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26239. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26240. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26241. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26242. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26243. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26244. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26245. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26246. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26247. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26248. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26249. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26250. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26251. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26252. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26253. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26254. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26255. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26256. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26257. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26258. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26259. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26260. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26261. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26262. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26263. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26264. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26265. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26266. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26267. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26268. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26269. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26270. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26271. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26272. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26273. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26274. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26275. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26276. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26277. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26278. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26279. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26280. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26281. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26282. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26283. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26284. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26285. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26286. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26287. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26288. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26289. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26290. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26291. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26292. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26293. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26294. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26295. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26296. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26297. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26298. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26299. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26300. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26301. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26302. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26303. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26304. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26305. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26306. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26307. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26308. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26309. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26310. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26311. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26312. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26313. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26314. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26315. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26316. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26317. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26318. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26319. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26320. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26321. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26322. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26323. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26324. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26325. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26326. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26327. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26328. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26329. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26330. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26331. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26332. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26333. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26334. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26335. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26336. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26337. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26338. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26339. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26340. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26341. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26342. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26343. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26344. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26345. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26346. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26347. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26348. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26349. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26350. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26351. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26352. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26353. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26354. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26355. {"MultiMedia24 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26356. {"MultiMedia24 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26357. {"MultiMedia24 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26358. {"MultiMedia24 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26359. {"MultiMedia24 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26360. {"MultiMedia24 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26361. {"MultiMedia24 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26362. {"MultiMedia24 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26363. {"MultiMedia24 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26364. {"MultiMedia24 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26365. {"MultiMedia24 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26366. {"MultiMedia24 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26367. {"MultiMedia24 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26368. {"MultiMedia24 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26369. {"MultiMedia24 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26370. {"MultiMedia24 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26371. {"MultiMedia24 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26372. {"MultiMedia24 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26373. {"MultiMedia24 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26374. {"MultiMedia24 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26375. {"MultiMedia25 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26376. {"MultiMedia25 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26377. {"MultiMedia25 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26378. {"MultiMedia25 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26379. {"MultiMedia25 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26380. {"MultiMedia25 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26381. {"MultiMedia25 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26382. {"MultiMedia25 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26383. {"MultiMedia25 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26384. {"MultiMedia25 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26385. {"MultiMedia25 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26386. {"MultiMedia25 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26387. {"MultiMedia25 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26388. {"MultiMedia25 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26389. {"MultiMedia25 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26390. {"MultiMedia25 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26391. {"MultiMedia25 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26392. {"MultiMedia25 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26393. {"MultiMedia25 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26394. {"MultiMedia25 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26395. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26396. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26397. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26398. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26399. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26400. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26401. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26402. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26403. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26404. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26405. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26406. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26407. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26408. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26409. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26410. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26411. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26412. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26413. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26414. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26415. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26416. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26417. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26418. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26419. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26420. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26421. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26422. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26423. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26424. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26425. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26426. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26427. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26428. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26429. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26430. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26431. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26432. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26433. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26434. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26435. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26436. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26437. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26438. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26439. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26440. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26441. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26442. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26443. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26444. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26445. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26446. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26447. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26448. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26449. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26450. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26451. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26452. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26453. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26454. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26455. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26456. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26457. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26458. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26459. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26460. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26461. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26462. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26463. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26464. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26465. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26466. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26467. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26468. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26469. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26470. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26471. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26472. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26473. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26474. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26475. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26476. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26477. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26478. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26479. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26480. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26481. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26482. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26483. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26484. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26485. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26486. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26487. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26488. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26489. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26490. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26491. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26492. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26493. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26494. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26495. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26496. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26497. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26498. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26499. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26500. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26501. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26502. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26503. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26504. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26505. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26506. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26507. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26508. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26509. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26510. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26511. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26512. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26513. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26514. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26515. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26516. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26517. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  26518. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26519. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26520. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26521. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26522. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26523. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26524. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26525. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26526. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26527. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26528. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26529. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26530. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26531. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26532. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26533. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26534. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26535. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  26536. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26537. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26538. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26539. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26540. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26541. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26542. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26543. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26544. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26545. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26546. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26547. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26548. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26549. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26550. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26551. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26552. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  26553. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26554. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26555. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26556. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26557. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26558. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26559. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26560. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26561. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26562. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26563. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26564. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26565. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26566. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26567. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26568. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26569. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  26570. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26571. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26572. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26573. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26574. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26575. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26576. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26577. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26578. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26579. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26580. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26581. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26582. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26583. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26584. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26585. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26586. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26587. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26588. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26589. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26590. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26591. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26592. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26593. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26594. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26595. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26596. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26597. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26598. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26599. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26600. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26601. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26602. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26603. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26604. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26605. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26606. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26607. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26608. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  26609. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26610. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  26611. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  26612. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  26613. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  26614. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  26615. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  26616. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  26617. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  26618. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  26619. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  26620. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  26621. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  26622. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  26623. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  26624. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  26625. {"MM_UL23", NULL, "MultiMedia23 Mixer"},
  26626. {"MM_UL24", NULL, "MultiMedia24 Mixer"},
  26627. {"MM_UL25", NULL, "MultiMedia25 Mixer"},
  26628. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  26629. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  26630. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  26631. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  26632. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26633. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26634. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26635. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26636. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26637. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26638. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26639. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26640. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26641. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26642. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26643. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26644. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26645. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26646. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26647. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26648. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26649. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  26650. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26651. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26652. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26653. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26654. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26655. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26656. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26657. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26658. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26659. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26660. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26661. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26662. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26663. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26664. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26665. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26666. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26667. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  26668. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26669. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26670. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26671. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26672. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26673. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26674. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26675. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26676. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26677. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26678. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26679. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26680. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26681. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26682. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26683. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26684. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  26685. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26686. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26687. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26688. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26689. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26690. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26691. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26692. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26693. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26694. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26695. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26696. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26697. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26698. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26699. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26700. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26701. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  26702. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26703. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26704. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26705. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26706. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26707. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26708. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26709. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26710. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26711. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26712. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26713. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26714. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26715. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26716. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26717. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26718. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  26719. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26720. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26721. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26722. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26723. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26724. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26725. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26726. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26727. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26728. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26729. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26730. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26731. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26732. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26733. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26734. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26735. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  26736. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26737. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26738. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26739. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26740. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26741. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  26742. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26743. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26744. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26745. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  26746. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26747. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26748. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26749. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26750. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26751. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26752. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26753. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  26754. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26755. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26756. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26757. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26758. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26759. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  26760. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26761. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26762. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26763. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26764. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26765. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  26766. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26767. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26768. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26769. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26770. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26771. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  26772. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26773. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26774. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26775. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26776. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26777. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  26778. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  26779. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26780. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26781. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26782. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26783. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  26784. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26785. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26786. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26787. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26788. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26789. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  26790. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26791. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26792. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26793. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26794. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26795. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  26796. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26797. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26798. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26799. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26800. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26801. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  26802. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26803. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26804. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26805. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26806. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26807. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  26808. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26809. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26810. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26811. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26812. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26813. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  26814. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26815. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26816. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26817. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26818. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26819. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  26820. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26821. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26822. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26823. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26824. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26825. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  26826. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26827. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26828. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26829. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26830. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26831. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  26832. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26833. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26834. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26835. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26836. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26837. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  26838. {"HDMI", NULL, "HDMI_DL_HL"},
  26839. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26840. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26841. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26842. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26843. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26844. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26845. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26846. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  26847. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26848. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26849. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26850. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26851. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26852. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26853. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26854. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  26855. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26856. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26857. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26858. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26859. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26860. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  26861. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26862. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26863. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26864. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26865. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26866. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  26867. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26868. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26869. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26870. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26871. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26872. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26873. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26874. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  26875. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26876. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26877. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26878. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26879. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26880. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26881. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  26882. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26883. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26884. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26885. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26886. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26887. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26888. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  26889. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26890. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26891. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26892. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26893. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26894. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26895. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26896. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26897. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  26898. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26899. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26900. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26901. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26902. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26903. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26904. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26905. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26906. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  26907. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  26908. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26909. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26910. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26911. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26912. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26913. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26914. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26915. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  26916. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  26917. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26918. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26919. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26920. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26921. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26922. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26923. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26924. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  26925. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26926. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26927. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26928. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26929. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  26930. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26931. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  26932. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26933. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  26934. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26935. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26936. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26937. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  26938. {"PROXY_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26939. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  26940. {"PROXY_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26941. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  26942. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26943. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26944. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26945. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  26946. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26947. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26948. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26949. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  26950. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26951. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26952. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26953. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26954. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26955. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26956. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  26957. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  26958. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  26959. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  26960. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  26961. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26962. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26963. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26964. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26965. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26966. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26967. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26968. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26969. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26970. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26971. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26972. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26973. {"AUDIO_REF_EC_UL1 MUX", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26974. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26975. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26976. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26977. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26978. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26979. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26980. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26981. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26982. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26983. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26984. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26985. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26986. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26987. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26988. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26989. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26990. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26991. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26992. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26993. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26994. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26995. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26996. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26997. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26998. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26999. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27000. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27001. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27002. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27003. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27004. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27005. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27006. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27007. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27008. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  27009. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  27010. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  27011. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27012. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  27013. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27014. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27015. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27016. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27017. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27018. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27019. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27020. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27021. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27022. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27023. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27024. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27025. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27026. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27027. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27028. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27029. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27030. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27031. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27032. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27033. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27034. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27035. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27036. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27037. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27038. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27039. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27040. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27041. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27042. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27043. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27044. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27045. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27046. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27047. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  27048. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  27049. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  27050. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  27051. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  27052. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  27053. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  27054. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  27055. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  27056. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  27057. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  27058. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  27059. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  27060. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  27061. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  27062. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  27063. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  27064. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  27065. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  27066. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  27067. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  27068. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  27069. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  27070. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  27071. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  27072. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  27073. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  27074. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  27075. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  27076. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  27077. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  27078. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  27079. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  27080. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  27081. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  27082. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  27083. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  27084. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  27085. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  27086. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  27087. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  27088. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  27089. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  27090. {"VoiceMMode1_Tx Mixer", "PROXY_TX_MMode1", "PROXY_TX"},
  27091. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  27092. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  27093. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  27094. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  27095. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  27096. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  27097. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  27098. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  27099. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  27100. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  27101. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  27102. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  27103. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  27104. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  27105. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  27106. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  27107. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  27108. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  27109. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  27110. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  27111. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  27112. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  27113. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  27114. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  27115. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  27116. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  27117. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  27118. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  27119. {"VoiceMMode2_Tx Mixer", "PROXY_TX_MMode2", "PROXY_TX"},
  27120. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  27121. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  27122. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  27123. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  27124. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  27125. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  27126. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  27127. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  27128. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  27129. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  27130. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  27131. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  27132. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  27133. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  27134. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  27135. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  27136. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  27137. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  27138. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  27139. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  27140. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  27141. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  27142. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  27143. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  27144. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  27145. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  27146. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  27147. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  27148. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  27149. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  27150. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  27151. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  27152. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  27153. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  27154. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  27155. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  27156. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  27157. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  27158. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  27159. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  27160. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  27161. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  27162. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  27163. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  27164. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27165. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  27166. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  27167. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27168. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  27169. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27170. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  27171. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  27172. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27173. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27174. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27175. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27176. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27177. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27178. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27179. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27180. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27181. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27182. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27183. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27184. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27185. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27186. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  27187. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27188. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27189. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27190. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27191. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27192. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27193. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27194. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27195. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27196. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27197. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27198. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27199. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27200. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27201. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  27202. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27203. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27204. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27205. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27206. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27207. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27208. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27209. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27210. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27211. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27212. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27213. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27214. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27215. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27216. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  27217. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27218. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27219. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27220. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27221. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27222. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27223. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27224. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27225. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27226. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27227. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27228. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27229. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27230. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27231. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  27232. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27233. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27234. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27235. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27236. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27237. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27238. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27239. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27240. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27241. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27242. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27243. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27244. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27245. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27246. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  27247. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27248. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27249. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27250. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27251. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27252. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27253. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27254. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27255. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27256. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27257. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27258. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27259. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  27260. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27261. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27262. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27263. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27264. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27265. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27266. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27267. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27268. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27269. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27270. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27271. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27272. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  27273. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27274. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27275. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27276. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27277. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27278. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27279. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27280. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27281. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27282. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27283. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27284. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27285. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  27286. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  27287. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  27288. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  27289. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  27290. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  27291. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  27292. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  27293. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  27294. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  27295. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  27296. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  27297. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  27298. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  27299. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  27300. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  27301. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  27302. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  27303. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  27304. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  27305. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  27306. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  27307. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  27308. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  27309. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  27310. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  27311. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  27312. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  27313. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  27314. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27315. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  27316. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  27317. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  27318. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27319. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  27320. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  27321. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  27322. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  27323. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  27324. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  27325. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  27326. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  27327. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27328. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  27329. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27330. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  27331. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  27332. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  27333. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  27334. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  27335. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  27336. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  27337. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  27338. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  27339. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  27340. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  27341. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  27342. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  27343. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27344. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  27345. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27346. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  27347. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  27348. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  27349. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  27350. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  27351. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  27352. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  27353. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  27354. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  27355. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  27356. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  27357. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  27358. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  27359. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  27360. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  27361. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  27362. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  27363. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  27364. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  27365. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  27366. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  27367. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  27368. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  27369. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  27370. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  27371. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  27372. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  27373. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  27374. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  27375. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  27376. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  27377. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  27378. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  27379. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  27380. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  27381. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  27382. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  27383. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  27384. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  27385. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  27386. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  27387. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  27388. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  27389. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  27390. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  27391. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  27392. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  27393. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  27394. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  27395. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  27396. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  27397. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  27398. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  27399. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  27400. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  27401. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  27402. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  27403. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  27404. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  27405. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  27406. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  27407. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27408. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27409. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27410. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27411. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27412. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27413. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27414. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27415. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27416. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27417. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27418. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27419. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27420. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27421. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27422. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27423. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27424. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27425. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27426. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27427. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27428. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27429. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27430. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27431. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  27432. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27433. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27434. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27435. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27436. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27437. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27438. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27439. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27440. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27441. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27442. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27443. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27444. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27445. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27446. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27447. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27448. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27449. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27450. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27451. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27452. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27453. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27454. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27455. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27456. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  27457. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27458. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27459. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27460. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27461. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27462. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27463. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27464. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27465. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27466. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27467. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27468. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27469. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27470. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27471. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27472. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27473. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27474. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27475. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27476. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27477. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27478. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27479. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27480. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27481. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  27482. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27483. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27484. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27485. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27486. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27487. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27488. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27489. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27490. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27491. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27492. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27493. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27494. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27495. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27496. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27497. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27498. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27499. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27500. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27501. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27502. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27503. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27504. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27505. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27506. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  27507. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27508. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27509. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27510. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27511. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27512. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27513. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27514. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27515. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27516. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27517. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27518. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27519. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27520. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27521. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27522. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27523. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27524. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27525. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27526. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27527. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27528. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27529. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27530. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27531. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  27532. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27533. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27534. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27535. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27536. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27537. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27538. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27539. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27540. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27541. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27542. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27543. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27544. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27545. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27546. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27547. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27548. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27549. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27550. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27551. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27552. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27553. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27554. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27555. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27556. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  27557. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27558. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27559. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27560. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27561. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27562. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27563. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27564. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27565. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27566. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27567. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27568. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27569. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27570. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27571. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27572. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27573. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27574. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27575. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27576. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27577. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27578. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27579. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27580. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27581. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  27582. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27583. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27584. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27585. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27586. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27587. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27588. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27589. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27590. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27591. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27592. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27593. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27594. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27595. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27596. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27597. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27598. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27599. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27600. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27601. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27602. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27603. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27604. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27605. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27606. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  27607. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27608. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  27609. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27610. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27611. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27612. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27613. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27614. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27615. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27616. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27617. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27618. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27619. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27620. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27621. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27622. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27623. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27624. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27625. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27626. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27627. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27628. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27629. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27630. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27631. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27632. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27633. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  27634. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27635. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27636. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27637. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27638. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27639. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27640. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27641. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27642. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27643. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27644. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27645. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27646. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27647. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27648. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27649. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27650. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27651. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27652. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27653. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27654. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27655. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27656. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27657. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27658. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  27659. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27660. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27661. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27662. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27663. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27664. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27665. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27666. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27667. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27668. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27669. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27670. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27671. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27672. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27673. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27674. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27675. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27676. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27677. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27678. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27679. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27680. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27681. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27682. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27683. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  27684. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27685. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27686. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27687. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27688. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27689. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27690. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27691. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27692. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27693. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27694. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27695. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27696. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27697. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27698. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27699. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27700. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27701. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27702. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27703. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27704. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27705. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27706. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27707. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27708. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  27709. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27710. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27711. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27712. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27713. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27714. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27715. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27716. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27717. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27718. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27719. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27720. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27721. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27722. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27723. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27724. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27725. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27726. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27727. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27728. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27729. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27730. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27731. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27732. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27733. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  27734. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27735. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27736. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27737. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27738. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27739. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27740. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27741. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27742. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27743. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27744. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27745. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27746. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27747. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27748. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27749. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27750. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27751. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27752. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27753. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27754. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27755. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27756. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27757. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27758. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  27759. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27760. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27761. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27762. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27763. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27764. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27765. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27766. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27767. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27768. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27769. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27770. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27771. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27772. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27773. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27774. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27775. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27776. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27777. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27778. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27779. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27780. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27781. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27782. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27783. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  27784. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27785. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27786. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27787. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27788. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27789. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27790. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27791. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27792. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27793. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27794. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27795. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27796. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27797. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27798. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27799. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27800. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27801. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27802. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27803. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27804. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27805. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27806. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27807. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27808. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  27809. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27810. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27811. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  27812. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27813. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27814. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27815. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27816. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27817. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27818. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27819. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27820. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27821. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27822. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27823. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27824. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27825. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27826. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27827. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27828. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27829. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27830. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27831. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27832. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27833. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27834. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27835. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27836. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  27837. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27838. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27839. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27840. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27841. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27842. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27843. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27844. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27845. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27846. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27847. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27848. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27849. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27850. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27851. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27852. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27853. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27854. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27855. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27856. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27857. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27858. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27859. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27860. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27861. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  27862. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27863. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27864. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27865. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27866. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27867. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27868. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27869. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27870. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27871. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27872. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27873. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27874. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27875. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27876. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27877. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27878. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27879. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27880. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27881. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27882. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27883. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27884. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27885. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27886. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  27887. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27888. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27889. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27890. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27891. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27892. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27893. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27894. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27895. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27896. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27897. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27898. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27899. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27900. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27901. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27902. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27903. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27904. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27905. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27906. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27907. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27908. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27909. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27910. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27911. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  27912. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27913. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27914. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27915. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  27916. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27917. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27918. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27919. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27920. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27921. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27922. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27923. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27924. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27925. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27926. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27927. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27928. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27929. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27930. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27931. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27932. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27933. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27934. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27935. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27936. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  27937. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27938. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27939. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27940. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27941. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27942. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27943. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27944. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27945. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27946. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27947. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27948. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27949. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27950. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27951. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27952. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27953. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27954. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27955. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27956. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27957. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  27958. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27959. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27960. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27961. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27962. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27963. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27964. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27965. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27966. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27967. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27968. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27969. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27970. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27971. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27972. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27973. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27974. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27975. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27976. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27977. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27978. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  27979. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27980. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27981. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27982. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27983. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27984. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27985. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27986. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27987. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27988. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27989. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27990. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27991. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27992. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27993. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27994. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27995. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27996. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27997. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27998. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27999. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  28000. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28001. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28002. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28003. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28004. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28005. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28006. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28007. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28008. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28009. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28010. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28011. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28012. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  28013. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28014. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28015. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28016. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28017. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28018. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28019. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28020. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28021. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28022. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28023. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28024. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28025. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  28026. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28027. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28028. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28029. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28030. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  28031. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28032. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28033. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28034. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  28035. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28036. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28037. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28038. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28039. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  28040. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28041. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28042. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28043. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28044. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28045. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28046. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28047. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28048. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28049. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28050. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28051. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28052. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28053. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28054. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28055. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28056. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28057. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28058. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28059. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28060. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  28061. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28062. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28063. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  28064. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  28065. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  28066. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  28067. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  28068. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  28069. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28070. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28071. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28072. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28073. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28074. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28075. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28076. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  28077. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28078. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28079. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28080. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28081. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  28082. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28083. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28084. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28085. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  28086. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28087. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28088. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28089. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  28090. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28091. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28092. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28093. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  28094. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28095. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28096. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28097. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28098. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28099. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28100. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28101. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28102. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28103. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28104. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  28105. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28106. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28107. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28108. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28109. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28110. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28111. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28112. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28113. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28114. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  28115. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28116. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28117. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28118. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28119. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28120. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28121. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28122. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28123. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28124. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28125. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28126. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  28127. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28128. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28129. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28130. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28131. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28132. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28133. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28134. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28135. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28136. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28137. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28138. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28139. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  28140. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28141. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28142. {"STUB_RX", NULL, "STUB_RX Mixer"},
  28143. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28144. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28145. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  28146. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28147. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28148. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  28149. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28150. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28151. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28152. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28153. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28154. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  28155. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28156. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28157. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28158. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28159. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28160. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  28161. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28162. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28163. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28164. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  28165. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28166. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28167. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  28168. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  28169. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28170. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  28171. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  28172. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  28173. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  28174. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28175. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28176. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28177. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28178. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28179. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28180. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28181. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28182. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28183. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28184. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28185. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28186. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28187. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  28188. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28189. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  28190. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28191. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  28192. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  28193. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  28194. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28195. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  28196. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28197. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28198. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  28199. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28200. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28201. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28202. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28203. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28204. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28205. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28206. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28207. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28208. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28209. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28210. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  28211. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28212. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28213. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28214. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28215. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28216. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28217. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28218. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28219. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28220. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28221. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  28222. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28223. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28224. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28225. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28226. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28227. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28228. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28229. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28230. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  28231. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28232. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28233. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28234. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28235. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28236. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28237. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28238. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28239. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28240. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28241. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  28242. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28243. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28244. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28245. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28246. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28247. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28248. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28249. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28250. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  28251. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28252. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28253. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28254. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28255. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28256. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28257. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28258. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  28259. /* Backend Enablement */
  28260. {"BE_OUT", NULL, "PRI_I2S_RX"},
  28261. {"BE_OUT", NULL, "SEC_I2S_RX"},
  28262. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  28263. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  28264. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  28265. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28266. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  28267. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  28268. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  28269. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  28270. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  28271. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  28272. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  28273. {"BE_OUT", NULL, "HDMI"},
  28274. {"BE_OUT", NULL, "DISPLAY_PORT"},
  28275. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  28276. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  28277. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  28278. {"BE_OUT", NULL, "MI2S_RX"},
  28279. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  28280. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  28281. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  28282. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  28283. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  28284. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  28285. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  28286. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  28287. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  28288. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  28289. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  28290. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  28291. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28292. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  28293. {"BE_OUT", NULL, "INT_FM_RX"},
  28294. {"BE_OUT", NULL, "PCM_RX"},
  28295. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28296. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28297. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  28298. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  28299. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  28300. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  28301. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  28302. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28303. {"BE_OUT", NULL, "INT_FM_RX"},
  28304. {"BE_OUT", NULL, "PCM_RX"},
  28305. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28306. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  28307. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  28308. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  28309. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  28310. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  28311. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  28312. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  28313. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  28314. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  28315. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  28316. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  28317. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  28318. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  28319. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  28320. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  28321. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  28322. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  28323. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  28324. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  28325. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  28326. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  28327. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  28328. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  28329. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  28330. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  28331. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  28332. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  28333. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  28334. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  28335. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  28336. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  28337. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  28338. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  28339. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  28340. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  28341. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  28342. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  28343. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  28344. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  28345. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  28346. {"BE_OUT", NULL, "PROXY_RX"},
  28347. {"PRI_I2S_TX", NULL, "BE_IN"},
  28348. {"MI2S_TX", NULL, "BE_IN"},
  28349. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  28350. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  28351. {"PRI_MI2S_TX", NULL, "BE_IN"},
  28352. {"TERT_MI2S_TX", NULL, "BE_IN"},
  28353. {"INT0_MI2S_TX", NULL, "BE_IN"},
  28354. {"INT2_MI2S_TX", NULL, "BE_IN"},
  28355. {"INT3_MI2S_TX", NULL, "BE_IN"},
  28356. {"INT4_MI2S_TX", NULL, "BE_IN"},
  28357. {"INT5_MI2S_TX", NULL, "BE_IN"},
  28358. {"SEC_MI2S_TX", NULL, "BE_IN"},
  28359. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  28360. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  28361. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  28362. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  28363. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  28364. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  28365. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  28366. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  28367. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  28368. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  28369. {"USB_AUDIO_TX", NULL, "BE_IN" },
  28370. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  28371. {"INT_FM_TX", NULL, "BE_IN"},
  28372. {"PCM_TX", NULL, "BE_IN"},
  28373. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28374. {"BE_OUT", NULL, "STUB_RX"},
  28375. {"STUB_TX", NULL, "BE_IN"},
  28376. {"STUB_1_TX", NULL, "BE_IN"},
  28377. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28378. {"AUX_PCM_TX", NULL, "BE_IN"},
  28379. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  28380. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  28381. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  28382. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  28383. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  28384. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  28385. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  28386. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28387. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28388. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28389. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28390. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  28391. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28392. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28393. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  28394. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  28395. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  28396. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  28397. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  28398. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  28399. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  28400. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  28401. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  28402. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  28403. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  28404. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  28405. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  28406. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  28407. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  28408. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  28409. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  28410. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  28411. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  28412. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  28413. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  28414. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  28415. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  28416. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  28417. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  28418. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  28419. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  28420. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  28421. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  28422. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  28423. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  28424. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  28425. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  28426. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  28427. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  28428. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28429. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28430. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28431. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28432. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28433. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28434. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  28435. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  28436. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  28437. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  28438. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  28439. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  28440. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  28441. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  28442. {"PROXY_TX", NULL, "BE_IN"},
  28443. };
  28444. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  28445. struct snd_pcm_hw_params *params)
  28446. {
  28447. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28448. unsigned int be_id = rtd->dai_link->id;
  28449. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28450. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28451. return -EINVAL;
  28452. }
  28453. mutex_lock(&routing_lock);
  28454. msm_bedais[be_id].sample_rate = params_rate(params);
  28455. msm_bedais[be_id].channel = params_channels(params);
  28456. msm_bedais[be_id].format = params_format(params);
  28457. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  28458. __func__, msm_bedais[be_id].sample_rate,
  28459. msm_bedais[be_id].format, be_id);
  28460. mutex_unlock(&routing_lock);
  28461. return 0;
  28462. }
  28463. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  28464. {
  28465. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28466. unsigned int be_id = rtd->dai_link->id;
  28467. int i, session_type, path_type, topology;
  28468. struct msm_pcm_routing_bdai_data *bedai;
  28469. struct msm_pcm_routing_fdai_data *fdai;
  28470. pr_debug("%s: substream->pcm->id:%s\n",
  28471. __func__, substream->pcm->id);
  28472. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28473. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28474. return -EINVAL;
  28475. }
  28476. bedai = &msm_bedais[be_id];
  28477. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  28478. 0 : 1);
  28479. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28480. path_type = ADM_PATH_PLAYBACK;
  28481. else
  28482. path_type = ADM_PATH_LIVE_REC;
  28483. mutex_lock(&routing_lock);
  28484. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28485. if (!is_mm_lsm_fe_id(i))
  28486. continue;
  28487. fdai = &fe_dai_map[i][session_type];
  28488. if (fdai->strm_id != INVALID_SESSION) {
  28489. int idx;
  28490. int port_id;
  28491. unsigned long copp =
  28492. session_copp_map[i][session_type][be_id];
  28493. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  28494. if (test_bit(idx, &copp))
  28495. break;
  28496. if (idx >= MAX_COPPS_PER_PORT) {
  28497. pr_debug("%s: copp idx is invalid, exiting\n",
  28498. __func__);
  28499. continue;
  28500. }
  28501. fdai->be_srate = bedai->sample_rate;
  28502. port_id = get_port_id(bedai->port_id);
  28503. topology = adm_get_topology_for_port_copp_idx(port_id,
  28504. idx);
  28505. msm_routing_unload_topology(topology);
  28506. adm_close(port_id, fdai->perf_mode, idx);
  28507. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  28508. __func__, copp, i, session_type, be_id,
  28509. topology);
  28510. clear_bit(idx,
  28511. &session_copp_map[i][session_type][be_id]);
  28512. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28513. (fdai->passthr_mode == LEGACY_PCM))
  28514. msm_pcm_routing_deinit_pp(port_id,
  28515. topology);
  28516. }
  28517. }
  28518. bedai->active = 0;
  28519. bedai->sample_rate = 0;
  28520. bedai->channel = 0;
  28521. mutex_unlock(&routing_lock);
  28522. return 0;
  28523. }
  28524. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  28525. {
  28526. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28527. unsigned int be_id = rtd->dai_link->id;
  28528. int i, path_type, topology;
  28529. int session_type = INVALID_SESSION;
  28530. struct msm_pcm_routing_bdai_data *bedai;
  28531. u32 channels, sample_rate;
  28532. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  28533. struct msm_pcm_routing_fdai_data *fdai;
  28534. u32 session_id;
  28535. struct media_format_info voc_be_media_format;
  28536. bool is_lsm;
  28537. pr_debug("%s: substream->pcm->id:%s\n",
  28538. __func__, substream->pcm->id);
  28539. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28540. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28541. return -EINVAL;
  28542. }
  28543. bedai = &msm_bedais[be_id];
  28544. mutex_lock(&routing_lock);
  28545. if (bedai->active == 1)
  28546. goto done; /* Ignore prepare if back-end already active */
  28547. /* AFE port is not active at this point. However, still
  28548. * go ahead setting active flag under the notion that
  28549. * QDSP6 is able to handle ADM starting before AFE port
  28550. * is started.
  28551. */
  28552. bedai->active = 1;
  28553. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28554. if (!(is_mm_lsm_fe_id(i) &&
  28555. route_check_fe_id_adm_support(i)))
  28556. continue;
  28557. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  28558. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28559. fdai = &fe_dai_map[i][session_type];
  28560. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  28561. if (fdai->passthr_mode != LEGACY_PCM)
  28562. path_type = ADM_PATH_COMPRESSED_RX;
  28563. else
  28564. path_type = ADM_PATH_PLAYBACK;
  28565. } else {
  28566. if ((fdai->passthr_mode != LEGACY_PCM) &&
  28567. (fdai->passthr_mode != LISTEN))
  28568. path_type = ADM_PATH_COMPRESSED_TX;
  28569. else
  28570. path_type = ADM_PATH_LIVE_REC;
  28571. }
  28572. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  28573. (i <= MSM_FRONTEND_DAI_LSM8);
  28574. if (fdai->strm_id != INVALID_SESSION) {
  28575. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  28576. int port_id = get_port_id(bedai->port_id);
  28577. if (session_type == SESSION_TYPE_TX &&
  28578. fdai->be_srate &&
  28579. (fdai->be_srate != bedai->sample_rate)) {
  28580. pr_debug("%s: flush strm %d diff BE rates\n",
  28581. __func__,
  28582. fdai->strm_id);
  28583. if (fdai->event_info.event_func)
  28584. fdai->event_info.event_func(
  28585. MSM_PCM_RT_EVT_BUF_RECFG,
  28586. fdai->event_info.priv_data);
  28587. fdai->be_srate = 0; /* might not need it */
  28588. }
  28589. bits_per_sample = msm_routing_get_bit_width(
  28590. bedai->format);
  28591. app_type =
  28592. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  28593. if (app_type && is_lsm) {
  28594. app_type_idx =
  28595. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  28596. sample_rate =
  28597. fe_dai_app_type_cfg[i][session_type][be_id]
  28598. .sample_rate;
  28599. bits_per_sample =
  28600. lsm_app_type_cfg[app_type_idx].bit_width;
  28601. } else if (app_type) {
  28602. app_type_idx =
  28603. msm_pcm_routing_get_app_type_idx(app_type);
  28604. sample_rate =
  28605. fe_dai_app_type_cfg[i][session_type]
  28606. [be_id].sample_rate;
  28607. bits_per_sample =
  28608. app_type_cfg[app_type_idx].bit_width;
  28609. } else
  28610. sample_rate = bedai->sample_rate;
  28611. /*
  28612. * check if ADM needs to be configured with different
  28613. * channel mapping than backend
  28614. */
  28615. if (!bedai->adm_override_ch)
  28616. channels = bedai->channel;
  28617. else
  28618. channels = bedai->adm_override_ch;
  28619. acdb_dev_id =
  28620. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  28621. topology = msm_routing_get_adm_topology(i, session_type,
  28622. be_id);
  28623. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  28624. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  28625. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  28626. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  28627. be_bit_width = msm_routing_get_bit_width(
  28628. bedai->format);
  28629. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  28630. || bedai->sample_rate == 352800) &&
  28631. be_bit_width == 32)
  28632. bits_per_sample = msm_routing_get_bit_width(
  28633. SNDRV_PCM_FORMAT_S32_LE);
  28634. copp_idx = adm_open(port_id, path_type,
  28635. sample_rate, channels, topology,
  28636. fdai->perf_mode, bits_per_sample,
  28637. app_type, acdb_dev_id,
  28638. session_type);
  28639. if ((copp_idx < 0) ||
  28640. (copp_idx >= MAX_COPPS_PER_PORT)) {
  28641. pr_err("%s: adm open failed\n", __func__);
  28642. mutex_unlock(&routing_lock);
  28643. return -EINVAL;
  28644. }
  28645. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  28646. __func__, i, session_type, be_id);
  28647. set_bit(copp_idx,
  28648. &session_copp_map[i][session_type][be_id]);
  28649. if (msm_is_resample_needed(
  28650. sample_rate,
  28651. bedai->sample_rate))
  28652. adm_copp_mfc_cfg(port_id, copp_idx,
  28653. bedai->sample_rate);
  28654. msm_pcm_routing_build_matrix(i, session_type, path_type,
  28655. fdai->perf_mode, fdai->passthr_mode);
  28656. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28657. (fdai->passthr_mode == LEGACY_PCM))
  28658. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  28659. topology, channels);
  28660. }
  28661. }
  28662. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28663. session_id = msm_pcm_routing_get_voc_sessionid(i);
  28664. if (session_id) {
  28665. pr_debug("%s voice session_id: 0x%x\n", __func__,
  28666. session_id);
  28667. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28668. voc_path_type = RX_PATH;
  28669. else
  28670. voc_path_type = TX_PATH;
  28671. voc_set_route_flag(session_id, voc_path_type, 1);
  28672. memset(&voc_be_media_format, 0,
  28673. sizeof(struct media_format_info));
  28674. voc_be_media_format.port_id = bedai->port_id;
  28675. voc_be_media_format.num_channels = bedai->channel;
  28676. voc_be_media_format.sample_rate = bedai->sample_rate;
  28677. voc_be_media_format.bits_per_sample = bedai->format;
  28678. /* Defaulting this to 1 for voice call usecases */
  28679. voc_be_media_format.channel_mapping[0] = 1;
  28680. voc_set_device_config(session_id, voc_path_type,
  28681. &voc_be_media_format);
  28682. if (voc_get_route_flag(session_id, RX_PATH) &&
  28683. voc_get_route_flag(session_id, TX_PATH))
  28684. voc_enable_device(session_id);
  28685. }
  28686. }
  28687. /* Check if backend is an external ec ref port and set as needed */
  28688. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  28689. memset(&voc_be_media_format, 0,
  28690. sizeof(struct media_format_info));
  28691. /* Get format info for ec ref port from msm_bedais[] */
  28692. voc_be_media_format.port_id = bedai->port_id;
  28693. voc_be_media_format.num_channels = bedai->channel;
  28694. voc_be_media_format.bits_per_sample = bedai->format;
  28695. voc_be_media_format.sample_rate = bedai->sample_rate;
  28696. /* Defaulting this to 1 for voice call usecases */
  28697. voc_be_media_format.channel_mapping[0] = 1;
  28698. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  28699. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  28700. __func__, voc_be_media_format.port_id,
  28701. voc_be_media_format.num_channels,
  28702. voc_be_media_format.bits_per_sample,
  28703. voc_be_media_format.sample_rate);
  28704. }
  28705. done:
  28706. mutex_unlock(&routing_lock);
  28707. return 0;
  28708. }
  28709. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  28710. int fe_id)
  28711. {
  28712. int index, topo_id, be_idx;
  28713. unsigned long pp_config = 0;
  28714. bool mute_on;
  28715. int latency, session_type;
  28716. bool compr_passthr_mode = true;
  28717. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  28718. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  28719. pr_err("%s: Device pp params on invalid port %d, copp_idx %d, fe_id %d\n",
  28720. __func__, port_id, copp_idx, fe_id);
  28721. return -EINVAL;
  28722. }
  28723. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28724. if (port_id == msm_bedais[be_idx].port_id)
  28725. break;
  28726. }
  28727. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28728. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28729. return -EINVAL;
  28730. }
  28731. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28732. if (msm_bedais_pp_params[index].port_id == port_id)
  28733. break;
  28734. }
  28735. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28736. pr_err("%s: Invalid backend pp params index %d\n",
  28737. __func__, index);
  28738. return -EINVAL;
  28739. }
  28740. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  28741. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  28742. pr_err("%s: Invalid passthrough topology 0x%x\n",
  28743. __func__, topo_id);
  28744. return -EINVAL;
  28745. }
  28746. session_type =
  28747. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28748. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28749. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  28750. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  28751. compr_passthr_mode = false;
  28752. pp_config = msm_bedais_pp_params[index].pp_params_config;
  28753. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  28754. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28755. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  28756. mute_on = msm_bedais_pp_params[index].mute_on;
  28757. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28758. adm_send_compressed_device_mute(port_id,
  28759. copp_idx,
  28760. mute_on);
  28761. }
  28762. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  28763. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28764. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  28765. &pp_config);
  28766. latency = msm_bedais_pp_params[index].latency;
  28767. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28768. adm_send_compressed_device_latency(port_id,
  28769. copp_idx,
  28770. latency);
  28771. }
  28772. return 0;
  28773. }
  28774. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  28775. {
  28776. uint32_t topology = NULL_COPP_TOPOLOGY;
  28777. void *cal_info = NULL;
  28778. uint32_t size = 0;
  28779. /* Retrieve cal_info size from cal data*/
  28780. if (data_size < sizeof(struct audio_cal_type_basic) +
  28781. sizeof(struct audio_cal_info_adm_top)) {
  28782. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  28783. goto done;
  28784. }
  28785. size = data_size - sizeof(struct audio_cal_type_basic);
  28786. cal_info = kzalloc(size, GFP_KERNEL);
  28787. if (!cal_info)
  28788. goto done;
  28789. memcpy(cal_info,
  28790. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  28791. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  28792. kfree(cal_info);
  28793. cal_info = NULL;
  28794. done:
  28795. pr_debug("%s: Using topology %d\n", __func__, topology);
  28796. return topology;
  28797. }
  28798. static void msm_routing_load_topology(size_t data_size, void *data)
  28799. {
  28800. uint32_t topology_id;
  28801. int ret = -EINVAL;
  28802. topology_id = msm_routing_get_topology(data_size, data);
  28803. if (topology_id != NULL_COPP_TOPOLOGY)
  28804. ret = q6core_load_unload_topo_modules(topology_id,
  28805. CORE_LOAD_TOPOLOGY);
  28806. if (ret < 0)
  28807. pr_debug("%s %d load topology failed\n",
  28808. __func__, topology_id);
  28809. }
  28810. static void msm_routing_unload_topology(uint32_t topology_id)
  28811. {
  28812. int ret = -EINVAL;
  28813. if (topology_id != NULL_COPP_TOPOLOGY)
  28814. ret = q6core_load_unload_topo_modules(topology_id,
  28815. CORE_UNLOAD_TOPOLOGY);
  28816. if (ret < 0)
  28817. pr_debug("%s %d unload topology failed\n",
  28818. __func__, topology_id);
  28819. }
  28820. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28821. struct snd_ctl_elem_value *ucontrol)
  28822. {
  28823. int pp_id = ucontrol->value.integer.value[0];
  28824. int port_id = 0;
  28825. int index, be_idx, i, topo_id, idx;
  28826. bool mute;
  28827. int latency, session_type;
  28828. bool compr_passthr_mode = true;
  28829. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  28830. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28831. port_id = msm_bedais[be_idx].port_id;
  28832. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  28833. break;
  28834. }
  28835. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28836. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28837. return -EINVAL;
  28838. }
  28839. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28840. if (msm_bedais_pp_params[index].port_id == port_id)
  28841. break;
  28842. }
  28843. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28844. pr_err("%s: Invalid pp params backend index %d\n",
  28845. __func__, index);
  28846. return -EINVAL;
  28847. }
  28848. session_type =
  28849. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28850. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28851. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  28852. MSM_FRONTEND_DAI_MM_SIZE) {
  28853. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  28854. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  28855. compr_passthr_mode = false;
  28856. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28857. unsigned long copp =
  28858. session_copp_map[i]
  28859. [SESSION_TYPE_RX][be_idx];
  28860. if (!test_bit(idx, &copp))
  28861. continue;
  28862. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  28863. idx);
  28864. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  28865. continue;
  28866. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  28867. __func__, port_id, copp, msm_bedais[be_idx].active,
  28868. fe_dai_map[i][session_type].passthr_mode);
  28869. switch (pp_id) {
  28870. case ADM_PP_PARAM_MUTE_ID:
  28871. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28872. mute = ucontrol->value.integer.value[1] ? true : false;
  28873. msm_bedais_pp_params[index].mute_on = mute;
  28874. set_bit(ADM_PP_PARAM_MUTE_BIT,
  28875. &msm_bedais_pp_params[index].pp_params_config);
  28876. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28877. adm_send_compressed_device_mute(port_id,
  28878. idx, mute);
  28879. break;
  28880. case ADM_PP_PARAM_LATENCY_ID:
  28881. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28882. msm_bedais_pp_params[index].latency =
  28883. ucontrol->value.integer.value[1];
  28884. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  28885. &msm_bedais_pp_params[index].pp_params_config);
  28886. latency = msm_bedais_pp_params[index].latency =
  28887. ucontrol->value.integer.value[1];
  28888. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28889. adm_send_compressed_device_latency(port_id,
  28890. idx, latency);
  28891. break;
  28892. default:
  28893. pr_info("%s, device pp param %d not supported\n",
  28894. __func__, pp_id);
  28895. break;
  28896. }
  28897. }
  28898. }
  28899. return 0;
  28900. }
  28901. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28902. struct snd_ctl_elem_value *ucontrol)
  28903. {
  28904. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  28905. return 0;
  28906. }
  28907. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  28908. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  28909. 0, 3, msm_routing_get_device_pp_params_mixer,
  28910. msm_routing_put_device_pp_params_mixer),
  28911. };
  28912. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  28913. struct snd_ctl_elem_value *ucontrol)
  28914. {
  28915. ucontrol->value.integer.value[0] =
  28916. core_get_license_status(ASM_MEDIA_FMT_APTX);
  28917. pr_debug("%s: status %ld\n", __func__,
  28918. ucontrol->value.integer.value[0]);
  28919. return 0;
  28920. }
  28921. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  28922. struct snd_ctl_elem_value *ucontrol)
  28923. {
  28924. int32_t status = 0;
  28925. status = core_set_license(ucontrol->value.integer.value[0],
  28926. APTX_CLASSIC_DEC_LICENSE_ID);
  28927. pr_debug("%s: status %d\n", __func__, status);
  28928. return status;
  28929. }
  28930. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  28931. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  28932. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  28933. msm_aptx_dec_license_control_put),
  28934. };
  28935. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  28936. struct snd_ctl_elem_value *ucontrol)
  28937. {
  28938. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  28939. uint32_t be_idx = ucontrol->value.integer.value[0];
  28940. int i;
  28941. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28942. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  28943. return -EINVAL;
  28944. }
  28945. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  28946. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  28947. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  28948. pr_err("%s: Invalid channel map %d\n",
  28949. __func__, channel_map[i]);
  28950. return -EINVAL;
  28951. }
  28952. }
  28953. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  28954. return 0;
  28955. }
  28956. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  28957. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  28958. MSM_BACKEND_DAI_MAX, 0,
  28959. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  28960. msm_routing_put_port_chmap_mixer),
  28961. };
  28962. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  28963. struct snd_ctl_elem_info *uinfo)
  28964. {
  28965. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  28966. uinfo->count = sizeof(be_dai_name_table);
  28967. return 0;
  28968. }
  28969. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  28970. unsigned int __user *bytes,
  28971. unsigned int size)
  28972. {
  28973. int i;
  28974. int ret = 0;
  28975. if (size < sizeof(be_dai_name_table)) {
  28976. pr_err("%s: invalid size %d requested, returning\n",
  28977. __func__, size);
  28978. ret = -EINVAL;
  28979. goto done;
  28980. }
  28981. /*
  28982. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  28983. * needed when adding new backends
  28984. */
  28985. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  28986. be_dai_name_table[i].be_id = i;
  28987. strlcpy(be_dai_name_table[i].be_name,
  28988. msm_bedais[i].name,
  28989. LPASS_BE_NAME_MAX_LENGTH);
  28990. }
  28991. ret = copy_to_user(bytes, &be_dai_name_table,
  28992. sizeof(be_dai_name_table));
  28993. if (ret) {
  28994. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  28995. ret = -EFAULT;
  28996. }
  28997. done:
  28998. return ret;
  28999. }
  29000. static const struct snd_kcontrol_new
  29001. msm_routing_be_dai_name_table_mixer_controls[] = {
  29002. {
  29003. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  29004. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  29005. .info = msm_routing_be_dai_name_table_info,
  29006. .name = "Backend DAI Name Table",
  29007. .tlv.c = snd_soc_bytes_tlv_callback,
  29008. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  29009. .max = sizeof(be_dai_name_table),
  29010. .get = msm_routing_be_dai_name_table_tlv_get,
  29011. }
  29012. },
  29013. };
  29014. static int msm_routing_stereo_channel_reverse_control_get(
  29015. struct snd_kcontrol *kcontrol,
  29016. struct snd_ctl_elem_value *ucontrol)
  29017. {
  29018. ucontrol->value.integer.value[0] = swap_ch;
  29019. pr_debug("%s: Swap channel value: %ld\n", __func__,
  29020. ucontrol->value.integer.value[0]);
  29021. return 0;
  29022. }
  29023. static int msm_routing_stereo_channel_reverse_control_put(
  29024. struct snd_kcontrol *kcontrol,
  29025. struct snd_ctl_elem_value *ucontrol)
  29026. {
  29027. int i, idx, be_index, port_id;
  29028. int ret = 0;
  29029. unsigned long copp;
  29030. pr_debug("%s Swap channel value:%ld\n", __func__,
  29031. ucontrol->value.integer.value[0]);
  29032. swap_ch = ucontrol->value.integer.value[0];
  29033. mutex_lock(&routing_lock);
  29034. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  29035. port_id = msm_bedais[be_index].port_id;
  29036. if (!msm_bedais[be_index].active)
  29037. continue;
  29038. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  29039. MSM_FRONTEND_DAI_MM_SIZE) {
  29040. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  29041. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29042. if (!test_bit(idx, &copp))
  29043. continue;
  29044. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  29045. __func__, port_id, idx);
  29046. ret = adm_swap_speaker_channels(
  29047. port_id, idx,
  29048. msm_bedais[be_index].sample_rate,
  29049. swap_ch);
  29050. if (ret) {
  29051. pr_err("%s:Swap_channel failed, err=%d\n",
  29052. __func__, ret);
  29053. goto done;
  29054. }
  29055. }
  29056. }
  29057. }
  29058. done:
  29059. mutex_unlock(&routing_lock);
  29060. return ret;
  29061. }
  29062. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  29063. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  29064. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  29065. msm_routing_stereo_channel_reverse_control_put),
  29066. };
  29067. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  29068. struct snd_ctl_elem_info *uinfo)
  29069. {
  29070. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  29071. uinfo->count = 1;
  29072. return 0;
  29073. }
  29074. static int msm_routing_instance_id_support_put(
  29075. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29076. {
  29077. bool supported = ucontrol->value.integer.value[0] ? true : false;
  29078. q6common_update_instance_id_support(supported);
  29079. return 0;
  29080. }
  29081. static int msm_routing_instance_id_support_get(
  29082. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29083. {
  29084. bool supported = false;
  29085. supported = q6common_is_instance_id_supported();
  29086. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  29087. return 0;
  29088. }
  29089. static const struct snd_kcontrol_new
  29090. msm_routing_feature_support_mixer_controls[] = {
  29091. {
  29092. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  29093. SNDRV_CTL_ELEM_ACCESS_WRITE,
  29094. .info = msm_routing_instance_id_support_info,
  29095. .name = "Instance ID Support",
  29096. .put = msm_routing_instance_id_support_put,
  29097. .get = msm_routing_instance_id_support_get,
  29098. },
  29099. };
  29100. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  29101. .hw_params = msm_pcm_routing_hw_params,
  29102. .close = msm_pcm_routing_close,
  29103. .prepare = msm_pcm_routing_prepare,
  29104. };
  29105. #ifdef CONFIG_DOA_PARAMS_ENABLED
  29106. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29107. {
  29108. snd_soc_add_component_controls(component,
  29109. msm_source_doa_tracking_controls,
  29110. ARRAY_SIZE(msm_source_doa_tracking_controls));
  29111. }
  29112. #else
  29113. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29114. {
  29115. return;
  29116. }
  29117. #endif
  29118. /* Not used but frame seems to require it */
  29119. static int msm_routing_probe(struct snd_soc_component *component)
  29120. {
  29121. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  29122. ARRAY_SIZE(msm_qdsp6_widgets));
  29123. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  29124. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  29125. snd_soc_dapm_add_routes(&component->dapm, intercon,
  29126. ARRAY_SIZE(intercon));
  29127. snd_soc_dapm_new_widgets(component->dapm.card);
  29128. snd_soc_add_component_controls(component, lsm_controls,
  29129. ARRAY_SIZE(lsm_controls));
  29130. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  29131. ARRAY_SIZE(aanc_slim_0_rx_mux));
  29132. snd_soc_add_component_controls(component, aanc_noise_level,
  29133. ARRAY_SIZE(aanc_noise_level));
  29134. snd_soc_add_component_controls(component, msm_voc_session_controls,
  29135. ARRAY_SIZE(msm_voc_session_controls));
  29136. snd_soc_add_component_controls(component, app_type_cfg_controls,
  29137. ARRAY_SIZE(app_type_cfg_controls));
  29138. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  29139. ARRAY_SIZE(lsm_app_type_cfg_controls));
  29140. snd_soc_add_component_controls(component, module_cfg_controls,
  29141. ARRAY_SIZE(module_cfg_controls));
  29142. snd_soc_add_component_controls(component,
  29143. stereo_to_custom_stereo_controls,
  29144. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  29145. snd_soc_add_component_controls(component, ec_ref_param_controls,
  29146. ARRAY_SIZE(ec_ref_param_controls));
  29147. snd_soc_add_component_controls(component, channel_mixer_controls,
  29148. ARRAY_SIZE(channel_mixer_controls));
  29149. msm_qti_pp_add_controls(component);
  29150. msm_dts_srs_tm_add_controls(component);
  29151. msm_dolby_dap_add_controls(component);
  29152. snd_soc_add_component_controls(component,
  29153. use_ds1_or_ds2_controls,
  29154. ARRAY_SIZE(use_ds1_or_ds2_controls));
  29155. snd_soc_add_component_controls(component,
  29156. hifi_filter_controls,
  29157. ARRAY_SIZE(hifi_filter_controls));
  29158. snd_soc_add_component_controls(component,
  29159. use_ffecns_freeze_event_controls,
  29160. ARRAY_SIZE(use_ffecns_freeze_event_controls));
  29161. snd_soc_add_component_controls(component,
  29162. device_pp_params_mixer_controls,
  29163. ARRAY_SIZE(device_pp_params_mixer_controls));
  29164. snd_soc_add_component_controls(component,
  29165. msm_routing_be_dai_name_table_mixer_controls,
  29166. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  29167. /* Add doa control based on config */
  29168. msm_routing_add_doa_control(component);
  29169. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  29170. ARRAY_SIZE(msm_source_tracking_controls));
  29171. snd_soc_add_component_controls(component, adm_channel_config_controls,
  29172. ARRAY_SIZE(adm_channel_config_controls));
  29173. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  29174. ARRAY_SIZE(aptx_dec_license_controls));
  29175. snd_soc_add_component_controls(component,
  29176. stereo_channel_reverse_control,
  29177. ARRAY_SIZE(stereo_channel_reverse_control));
  29178. snd_soc_add_component_controls(
  29179. component, msm_routing_feature_support_mixer_controls,
  29180. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  29181. snd_soc_add_component_controls(component,
  29182. port_multi_channel_map_mixer_controls,
  29183. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  29184. return 0;
  29185. }
  29186. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  29187. {
  29188. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  29189. }
  29190. void msm_routing_pcm_free(struct snd_pcm *pcm)
  29191. {
  29192. msm_pcm_routing_hwdep_free(pcm);
  29193. }
  29194. static struct snd_soc_component_driver msm_soc_routing_component = {
  29195. .name = DRV_NAME,
  29196. .ops = &msm_routing_pcm_ops,
  29197. .probe = msm_routing_probe,
  29198. .pcm_new = msm_routing_pcm_new,
  29199. .pcm_free = msm_routing_pcm_free,
  29200. };
  29201. static int msm_routing_pcm_probe(struct platform_device *pdev)
  29202. {
  29203. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  29204. return snd_soc_register_component(&pdev->dev,
  29205. &msm_soc_routing_component,
  29206. NULL, 0);
  29207. }
  29208. static int msm_routing_pcm_remove(struct platform_device *pdev)
  29209. {
  29210. snd_soc_unregister_component(&pdev->dev);
  29211. return 0;
  29212. }
  29213. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  29214. {.compatible = "qcom,msm-pcm-routing"},
  29215. {}
  29216. };
  29217. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  29218. static struct platform_driver msm_routing_pcm_driver = {
  29219. .driver = {
  29220. .name = "msm-pcm-routing",
  29221. .owner = THIS_MODULE,
  29222. .of_match_table = msm_pcm_routing_dt_match,
  29223. .suppress_bind_attrs = true,
  29224. },
  29225. .probe = msm_routing_pcm_probe,
  29226. .remove = msm_routing_pcm_remove,
  29227. };
  29228. int msm_routing_check_backend_enabled(int fedai_id)
  29229. {
  29230. int i;
  29231. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  29232. /* bad ID assigned in machine driver */
  29233. pr_err("%s: bad MM ID\n", __func__);
  29234. return 0;
  29235. }
  29236. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29237. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  29238. return msm_bedais[i].active;
  29239. }
  29240. return 0;
  29241. }
  29242. static int get_cal_type_index(int32_t cal_type)
  29243. {
  29244. int ret = -EINVAL;
  29245. switch (cal_type) {
  29246. case ADM_TOPOLOGY_CAL_TYPE:
  29247. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  29248. break;
  29249. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  29250. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  29251. break;
  29252. default:
  29253. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  29254. }
  29255. return ret;
  29256. }
  29257. static int msm_routing_set_cal(int32_t cal_type,
  29258. size_t data_size, void *data)
  29259. {
  29260. int ret = 0;
  29261. int cal_index;
  29262. pr_debug("%s\n", __func__);
  29263. cal_index = get_cal_type_index(cal_type);
  29264. if (cal_index < 0) {
  29265. pr_err("%s: Could not get cal index %d\n",
  29266. __func__, cal_index);
  29267. ret = -EINVAL;
  29268. goto done;
  29269. }
  29270. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  29271. if (ret < 0) {
  29272. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  29273. __func__, ret, cal_type);
  29274. ret = -EINVAL;
  29275. goto done;
  29276. }
  29277. /* Pre-load if it is ADM topology */
  29278. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  29279. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  29280. msm_routing_load_topology(data_size, data);
  29281. }
  29282. done:
  29283. return ret;
  29284. }
  29285. static void msm_routing_delete_cal_data(void)
  29286. {
  29287. pr_debug("%s\n", __func__);
  29288. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  29289. }
  29290. static int msm_routing_init_cal_data(void)
  29291. {
  29292. int ret = 0;
  29293. struct cal_type_info cal_type_info[] = {
  29294. {{ADM_TOPOLOGY_CAL_TYPE,
  29295. {NULL, NULL, NULL,
  29296. msm_routing_set_cal, NULL, NULL} },
  29297. {NULL, NULL, cal_utils_match_buf_num} },
  29298. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  29299. {NULL, NULL, NULL,
  29300. msm_routing_set_cal, NULL, NULL} },
  29301. {NULL, NULL, cal_utils_match_buf_num} },
  29302. };
  29303. pr_debug("%s\n", __func__);
  29304. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  29305. &cal_type_info[0]);
  29306. if (ret < 0) {
  29307. pr_err("%s: could not create cal type!\n",
  29308. __func__);
  29309. ret = -EINVAL;
  29310. goto err;
  29311. }
  29312. return ret;
  29313. err:
  29314. msm_routing_delete_cal_data();
  29315. return ret;
  29316. }
  29317. int __init msm_soc_routing_platform_init(void)
  29318. {
  29319. mutex_init(&routing_lock);
  29320. if (msm_routing_init_cal_data())
  29321. pr_err("%s: could not init cal data!\n", __func__);
  29322. afe_set_routing_callback(
  29323. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  29324. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29325. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  29326. return platform_driver_register(&msm_routing_pcm_driver);
  29327. }
  29328. void msm_soc_routing_platform_exit(void)
  29329. {
  29330. msm_routing_delete_cal_data();
  29331. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29332. mutex_destroy(&routing_lock);
  29333. platform_driver_unregister(&msm_routing_pcm_driver);
  29334. }
  29335. MODULE_DESCRIPTION("MSM routing platform driver");
  29336. MODULE_LICENSE("GPL v2");