msm-pcm-routing-v2.c 1.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static bool hifi_filter_enabled;
  76. static int aanc_level;
  77. static int num_app_cfg_types;
  78. static int msm_ec_ref_port_id;
  79. static int afe_loopback_tx_port_index;
  80. static int afe_loopback_tx_port_id = -1;
  81. #define WEIGHT_0_DB 0x4000
  82. /* all the FEs which can support channel mixer */
  83. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  84. /* all the FES which can support channel mixer for bidirection */
  85. static struct msm_pcm_channel_mixer
  86. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  87. /* input BE for each FE */
  88. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  89. enum {
  90. MADNONE,
  91. MADAUDIO,
  92. MADBEACON,
  93. MADULTRASOUND,
  94. MADSWAUDIO,
  95. };
  96. #define ADM_LSM_PORT_INDEX 9
  97. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  98. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  99. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  100. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  101. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  102. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  103. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  104. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  105. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  106. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  107. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  108. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  109. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  110. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  111. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  112. #define TERT_TDM_TX_TEXT "TERT_TDM_TX_0"
  113. #define LSM_FUNCTION_TEXT "LSM Function"
  114. static const char * const lsm_port_text[] = {
  115. "None",
  116. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  117. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  118. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  119. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  120. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT,
  121. TERT_TDM_TX_TEXT
  122. };
  123. struct msm_pcm_route_bdai_pp_params {
  124. u16 port_id; /* AFE port ID */
  125. unsigned long pp_params_config;
  126. bool mute_on;
  127. int latency;
  128. };
  129. static struct msm_pcm_route_bdai_pp_params
  130. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  131. {HDMI_RX, 0, 0, 0},
  132. {DISPLAY_PORT_RX, 0, 0, 0},
  133. };
  134. /*
  135. * The be_dai_name_table is passed to HAL so that it can specify the
  136. * BE ID for the BE it wants to enable based on the name. Thus there
  137. * is a matching table and structure in HAL that need to be updated
  138. * if any changes to these are made.
  139. */
  140. struct msm_pcm_route_bdai_name {
  141. unsigned int be_id;
  142. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  143. };
  144. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  145. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  146. int fe_id);
  147. static void msm_routing_load_topology(size_t data_size, void *data);
  148. static void msm_routing_unload_topology(uint32_t topology_id);
  149. static int msm_routing_get_bit_width(unsigned int format)
  150. {
  151. int bit_width;
  152. switch (format) {
  153. case SNDRV_PCM_FORMAT_S32_LE:
  154. bit_width = 32;
  155. break;
  156. case SNDRV_PCM_FORMAT_S24_LE:
  157. case SNDRV_PCM_FORMAT_S24_3LE:
  158. bit_width = 24;
  159. break;
  160. case SNDRV_PCM_FORMAT_S16_LE:
  161. default:
  162. bit_width = 16;
  163. }
  164. return bit_width;
  165. }
  166. static bool msm_is_resample_needed(int input_sr, int output_sr)
  167. {
  168. bool rc = false;
  169. if (input_sr != output_sr)
  170. rc = true;
  171. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  172. (rc ? "oh yes" : "not really"),
  173. input_sr, output_sr);
  174. return rc;
  175. }
  176. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  177. int channels)
  178. {
  179. int rc = 0;
  180. switch (topology) {
  181. case SRS_TRUMEDIA_TOPOLOGY_ID:
  182. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  183. msm_dts_srs_tm_init(port_id, copp_idx);
  184. break;
  185. case DS2_ADM_COPP_TOPOLOGY_ID:
  186. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  187. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  188. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  189. is_custom_stereo_on);
  190. if (rc < 0)
  191. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  192. __func__, topology, port_id,
  193. is_custom_stereo_on, rc);
  194. break;
  195. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  196. if (is_ds2_on) {
  197. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  198. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  199. is_custom_stereo_on);
  200. if (rc < 0)
  201. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  202. __func__, topology, port_id, rc);
  203. } else {
  204. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  205. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  206. is_custom_stereo_on);
  207. if (rc < 0)
  208. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  209. __func__, topology, port_id, rc);
  210. }
  211. break;
  212. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  213. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  214. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  215. if (rc < 0)
  216. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  217. __func__, topology, port_id, copp_idx, rc);
  218. break;
  219. default:
  220. /* custom topology specific feature param handlers */
  221. break;
  222. }
  223. }
  224. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  225. {
  226. switch (topology) {
  227. case SRS_TRUMEDIA_TOPOLOGY_ID:
  228. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  229. msm_dts_srs_tm_deinit(port_id);
  230. break;
  231. case DS2_ADM_COPP_TOPOLOGY_ID:
  232. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  233. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  234. msm_ds2_dap_deinit(port_id);
  235. break;
  236. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  237. if (is_ds2_on) {
  238. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  239. msm_ds2_dap_deinit(port_id);
  240. } else {
  241. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  242. msm_dolby_dap_deinit(port_id);
  243. }
  244. break;
  245. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  246. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  247. msm_qti_pp_asphere_deinit(port_id);
  248. break;
  249. default:
  250. /* custom topology specific feature deinit handlers */
  251. break;
  252. }
  253. }
  254. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  255. int path_type, int perf_mode)
  256. {
  257. int itr = 0, rc = 0;
  258. if ((path_type == ADM_PATH_PLAYBACK) &&
  259. (perf_mode == LEGACY_PCM_MODE) &&
  260. is_custom_stereo_on) {
  261. for (itr = 0; itr < payload.num_copps; itr++) {
  262. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  263. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  264. continue;
  265. }
  266. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  267. payload.port_id[itr],
  268. payload.copp_idx[itr],
  269. payload.session_id,
  270. Q14_GAIN_ZERO_POINT_FIVE,
  271. Q14_GAIN_ZERO_POINT_FIVE,
  272. Q14_GAIN_ZERO_POINT_FIVE,
  273. Q14_GAIN_ZERO_POINT_FIVE);
  274. if (rc < 0)
  275. pr_err("%s: err setting custom stereo\n",
  276. __func__);
  277. }
  278. }
  279. }
  280. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  281. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  282. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  283. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  284. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  285. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  286. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  287. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  288. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  289. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  290. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  291. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AFE_PCM_RX},
  293. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_AFE_PCM_TX},
  295. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_AUXPCM_RX},
  297. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_AUXPCM_TX},
  299. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_VOICE_PLAYBACK_TX},
  301. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  302. LPASS_BE_VOICE2_PLAYBACK_TX},
  303. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  304. LPASS_BE_INCALL_RECORD_RX},
  305. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  306. LPASS_BE_INCALL_RECORD_TX},
  307. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  308. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  309. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  310. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  311. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  312. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  313. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  314. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  315. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  316. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  317. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  318. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  319. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  320. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  321. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  322. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  323. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  324. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  325. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  326. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  327. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  328. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  329. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_QUAT_MI2S_RX},
  331. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_QUAT_MI2S_TX},
  333. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_SEC_MI2S_RX},
  335. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_SEC_MI2S_TX},
  337. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_PRI_MI2S_RX},
  339. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_PRI_MI2S_TX},
  341. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_TERT_MI2S_RX},
  343. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_TERT_MI2S_TX},
  345. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_AUDIO_I2S_RX},
  347. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_AUXPCM_RX},
  349. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_SEC_AUXPCM_TX},
  351. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_PRI_SPDIF_RX},
  353. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_SEC_MI2S_RX_SD1},
  355. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_QUIN_MI2S_RX},
  357. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_QUIN_MI2S_TX},
  359. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_SENARY_MI2S_TX},
  361. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_RX_0},
  363. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_TX_0},
  365. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_RX_1},
  367. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_TX_1},
  369. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_RX_2},
  371. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_TX_2},
  373. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_RX_3},
  375. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_TX_3},
  377. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_RX_4},
  379. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_TX_4},
  381. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_RX_5},
  383. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_TX_5},
  385. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_RX_6},
  387. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_PRI_TDM_TX_6},
  389. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_PRI_TDM_RX_7},
  391. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_PRI_TDM_TX_7},
  393. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_RX_0},
  395. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_TX_0},
  397. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_RX_1},
  399. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_TX_1},
  401. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_RX_2},
  403. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_TX_2},
  405. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_RX_3},
  407. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_TX_3},
  409. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_RX_4},
  411. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_TX_4},
  413. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_RX_5},
  415. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_TX_5},
  417. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_RX_6},
  419. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_SEC_TDM_TX_6},
  421. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_SEC_TDM_RX_7},
  423. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_SEC_TDM_TX_7},
  425. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_RX_0},
  427. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_TX_0},
  429. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_RX_1},
  431. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_TX_1},
  433. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_RX_2},
  435. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_TX_2},
  437. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_RX_3},
  439. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_TX_3},
  441. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_RX_4},
  443. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_TX_4},
  445. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_RX_5},
  447. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_TX_5},
  449. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_RX_6},
  451. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_TERT_TDM_TX_6},
  453. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_TERT_TDM_RX_7},
  455. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_TERT_TDM_TX_7},
  457. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_RX_0},
  459. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_TX_0},
  461. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_RX_1},
  463. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_TX_1},
  465. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_RX_2},
  467. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_TX_2},
  469. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_RX_3},
  471. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_TX_3},
  473. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_RX_4},
  475. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_TX_4},
  477. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_RX_5},
  479. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_TX_5},
  481. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_RX_6},
  483. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUAT_TDM_TX_6},
  485. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUAT_TDM_RX_7},
  487. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUAT_TDM_TX_7},
  489. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_RX_0},
  491. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_TX_0},
  493. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_RX_1},
  495. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_TX_1},
  497. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_RX_2},
  499. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_TX_2},
  501. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_RX_3},
  503. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_TX_3},
  505. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_RX_4},
  507. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_TX_4},
  509. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_RX_5},
  511. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_TX_5},
  513. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_RX_6},
  515. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_QUIN_TDM_TX_6},
  517. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_QUIN_TDM_RX_7},
  519. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_QUIN_TDM_TX_7},
  521. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_SEN_TDM_RX_0},
  523. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_SEN_TDM_TX_0},
  525. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_SEN_TDM_RX_1},
  527. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_SEN_TDM_TX_1},
  529. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_SEN_TDM_RX_2},
  531. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_SEN_TDM_TX_2},
  533. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_SEN_TDM_RX_3},
  535. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_SEN_TDM_TX_3},
  537. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_SEN_TDM_RX_4},
  539. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_SEN_TDM_TX_4},
  541. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_SEN_TDM_RX_5},
  543. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_SEN_TDM_TX_5},
  545. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_SEN_TDM_RX_6},
  547. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_SEN_TDM_TX_6},
  549. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_SEN_TDM_RX_7},
  551. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_SEN_TDM_TX_7},
  553. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_INT_BT_A2DP_RX},
  555. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_USB_AUDIO_RX},
  557. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_USB_AUDIO_TX},
  559. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_DISPLAY_PORT},
  561. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_DISPLAY_PORT1},
  563. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_TERT_AUXPCM_RX},
  565. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_TERT_AUXPCM_TX},
  567. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_QUAT_AUXPCM_RX},
  569. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_QUAT_AUXPCM_TX},
  571. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_QUIN_AUXPCM_RX},
  573. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_QUIN_AUXPCM_TX},
  575. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_INT0_MI2S_RX},
  577. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_INT0_MI2S_TX},
  579. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_INT1_MI2S_RX},
  581. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_INT1_MI2S_TX},
  583. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_INT2_MI2S_RX},
  585. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_INT2_MI2S_TX},
  587. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_INT3_MI2S_RX},
  589. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_INT3_MI2S_TX},
  591. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_INT4_MI2S_RX},
  593. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_INT4_MI2S_TX},
  595. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_INT5_MI2S_RX},
  597. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_INT5_MI2S_TX},
  599. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_INT6_MI2S_RX},
  601. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_INT6_MI2S_TX},
  603. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_SEN_AUXPCM_RX},
  605. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_SEN_AUXPCM_TX},
  607. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_SENARY_MI2S_RX},
  609. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_WSA_CDC_DMA_RX_0},
  611. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_WSA_CDC_DMA_TX_0},
  613. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_WSA_CDC_DMA_RX_1},
  615. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_WSA_CDC_DMA_TX_1},
  617. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_WSA_CDC_DMA_TX_2},
  619. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  620. LPASS_BE_VA_CDC_DMA_TX_0},
  621. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  622. LPASS_BE_VA_CDC_DMA_TX_1},
  623. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  624. LPASS_BE_VA_CDC_DMA_TX_2},
  625. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  626. LPASS_BE_RX_CDC_DMA_RX_0},
  627. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  628. LPASS_BE_TX_CDC_DMA_TX_0},
  629. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  630. LPASS_BE_RX_CDC_DMA_RX_1},
  631. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  632. LPASS_BE_TX_CDC_DMA_TX_1},
  633. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  634. LPASS_BE_RX_CDC_DMA_RX_2},
  635. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  636. LPASS_BE_TX_CDC_DMA_TX_2},
  637. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  638. LPASS_BE_RX_CDC_DMA_RX_3},
  639. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  640. LPASS_BE_TX_CDC_DMA_TX_3},
  641. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  642. LPASS_BE_RX_CDC_DMA_RX_4},
  643. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  644. LPASS_BE_TX_CDC_DMA_TX_4},
  645. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  646. LPASS_BE_RX_CDC_DMA_RX_5},
  647. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  648. LPASS_BE_TX_CDC_DMA_TX_5},
  649. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  650. LPASS_BE_RX_CDC_DMA_RX_6},
  651. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  652. LPASS_BE_RX_CDC_DMA_RX_7},
  653. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  654. LPASS_BE_PRI_SPDIF_TX},
  655. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  656. LPASS_BE_SEC_SPDIF_RX},
  657. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  658. LPASS_BE_SEC_SPDIF_TX},
  659. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  660. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  661. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  662. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_PRI_META_MI2S_RX},
  664. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  665. LPASS_BE_SEC_META_MI2S_RX},
  666. };
  667. /* Track ASM playback & capture sessions of DAI
  668. * Track LSM listen sessions
  669. */
  670. static struct msm_pcm_routing_fdai_data
  671. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  672. /* MULTIMEDIA1 */
  673. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  674. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  675. /* MULTIMEDIA2 */
  676. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  677. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  678. /* MULTIMEDIA3 */
  679. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  680. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  681. /* MULTIMEDIA4 */
  682. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  683. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  684. /* MULTIMEDIA5 */
  685. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  686. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  687. /* MULTIMEDIA6 */
  688. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  689. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  690. /* MULTIMEDIA7*/
  691. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  692. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  693. /* MULTIMEDIA8 */
  694. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  695. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  696. /* MULTIMEDIA9 */
  697. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  698. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  699. /* MULTIMEDIA10 */
  700. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  701. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  702. /* MULTIMEDIA11 */
  703. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  704. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  705. /* MULTIMEDIA12 */
  706. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  707. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  708. /* MULTIMEDIA13 */
  709. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  710. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  711. /* MULTIMEDIA14 */
  712. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  713. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  714. /* MULTIMEDIA15 */
  715. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  716. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  717. /* MULTIMEDIA16 */
  718. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  719. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  720. /* MULTIMEDIA17 */
  721. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  722. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  723. /* MULTIMEDIA18 */
  724. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  725. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  726. /* MULTIMEDIA19 */
  727. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  728. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  729. /* MULTIMEDIA20 */
  730. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  731. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  732. /* MULTIMEDIA21 */
  733. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  734. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  735. /* MULTIMEDIA22 */
  736. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  737. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  738. /* MULTIMEDIA23 */
  739. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  740. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  741. /* MULTIMEDIA26 */
  742. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  743. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  744. /* MULTIMEDIA27 */
  745. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  746. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  747. /* MULTIMEDIA28 */
  748. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  749. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  750. /* MULTIMEDIA29 */
  751. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  752. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  753. /* MULTIMEDIA30 */
  754. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  755. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  756. /* VOIP */
  757. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  758. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  759. /* AFE_RX */
  760. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  761. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  762. /* AFE_TX */
  763. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  764. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  765. /* VOICE_STUB */
  766. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  767. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  768. /* DTMF_RX */
  769. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  770. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  771. /* QCHAT */
  772. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  773. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  774. /* VOLTE_STUB */
  775. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  776. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  777. /* LSM1 */
  778. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  779. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  780. /* LSM2 */
  781. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  782. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  783. /* LSM3 */
  784. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  785. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  786. /* LSM4 */
  787. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  788. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  789. /* LSM5 */
  790. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  791. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  792. /* LSM6 */
  793. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  794. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  795. /* LSM7 */
  796. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  797. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  798. /* LSM8 */
  799. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  800. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  801. /* VOICE2_STUB */
  802. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  803. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  804. /* VOICEMMODE1 */
  805. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  806. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  807. /* VOICEMMODE2 */
  808. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  809. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  810. };
  811. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  812. [MSM_BACKEND_DAI_MAX];
  813. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  814. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  815. static struct msm_pcm_stream_app_type_cfg
  816. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  817. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  818. /* The caller of this should acquire routing lock */
  819. void msm_pcm_routing_get_bedai_info(int be_idx,
  820. struct msm_pcm_routing_bdai_data *be_dai)
  821. {
  822. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  823. memcpy(be_dai, &msm_bedais[be_idx],
  824. sizeof(struct msm_pcm_routing_bdai_data));
  825. }
  826. /* The caller of this should acquire routing lock */
  827. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  828. struct msm_pcm_routing_fdai_data *fe_dai)
  829. {
  830. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  831. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  832. sizeof(struct msm_pcm_routing_fdai_data));
  833. }
  834. void msm_pcm_routing_acquire_lock(void)
  835. {
  836. mutex_lock(&routing_lock);
  837. }
  838. void msm_pcm_routing_release_lock(void)
  839. {
  840. mutex_unlock(&routing_lock);
  841. }
  842. static int msm_pcm_routing_get_app_type_idx(int app_type)
  843. {
  844. int idx;
  845. pr_debug("%s: app_type: %d\n", __func__, app_type);
  846. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  847. if (app_type_cfg[idx].app_type == app_type)
  848. return idx;
  849. }
  850. pr_info("%s: App type not available, fallback to default\n", __func__);
  851. return 0;
  852. }
  853. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  854. {
  855. int idx;
  856. pr_debug("%s: app_type: %d\n", __func__, app_type);
  857. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  858. if (lsm_app_type_cfg[idx].app_type == app_type)
  859. return idx;
  860. }
  861. pr_debug("%s: App type not available, fallback to default\n", __func__);
  862. return 0;
  863. }
  864. static int get_port_id(int port_id)
  865. {
  866. int ret = port_id;
  867. if (port_id == AFE_LOOPBACK_TX) {
  868. /*
  869. * Return afe_loopback_tx_port_id if set. Else return
  870. * msm_ec_ref_port_id to maintain backward compatibility.
  871. */
  872. if (afe_loopback_tx_port_id != -1)
  873. ret = afe_loopback_tx_port_id;
  874. else
  875. ret = msm_ec_ref_port_id;
  876. }
  877. return ret;
  878. }
  879. static bool is_mm_lsm_fe_id(int fe_id)
  880. {
  881. bool rc = true;
  882. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  883. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  884. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  885. rc = false;
  886. }
  887. return rc;
  888. }
  889. /*
  890. * msm_pcm_routing_send_chmix_cfg:
  891. * send the channel mixer command to mix the input channels
  892. * into output channels.
  893. *
  894. * @fe_id: front end id
  895. * @ip_channel_cnt: input channel count
  896. * @op_channel_cnt: output channel count
  897. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  898. * @session_type: indicates session is of type TX or RX
  899. * @stream_type: indicates either Audio or Listen stream type
  900. */
  901. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  902. int op_channel_cnt, int *ch_wght_coeff,
  903. int session_type, int stream_type)
  904. {
  905. int rc = 0, idx = 0;
  906. int be_index = 0, port_id;
  907. unsigned int session_id = 0;
  908. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  909. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  910. stream_type);
  911. if (!is_mm_lsm_fe_id(fe_id)) {
  912. /* bad ID assigned in machine driver */
  913. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  914. return -EINVAL;
  915. }
  916. if (ch_wght_coeff == NULL) {
  917. pr_err("%s: Null channel weightage coefficients passed\n",
  918. __func__);
  919. return -EINVAL;
  920. }
  921. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  922. port_id = msm_bedais[be_index].port_id;
  923. if (!msm_bedais[be_index].active ||
  924. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  925. continue;
  926. session_id = fe_dai_map[fe_id][session_type].strm_id;
  927. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  928. unsigned long copp =
  929. session_copp_map[fe_id][session_type][be_index];
  930. if (!test_bit(idx, &copp))
  931. continue;
  932. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  933. session_id, ip_channel_cnt,
  934. op_channel_cnt, ch_wght_coeff,
  935. session_type, stream_type);
  936. if (rc < 0)
  937. pr_err("%s: err setting channel mix config\n",
  938. __func__);
  939. }
  940. }
  941. return 0;
  942. }
  943. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  944. /**
  945. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  946. * setting before use case start.
  947. *
  948. * @fe_id: frontend idx
  949. * @type: stream direction type
  950. * @params: parameters of channel mixer setting
  951. *
  952. * Return 0 for success
  953. */
  954. int msm_pcm_routing_set_channel_mixer_cfg(
  955. int fe_id, int type,
  956. struct msm_pcm_channel_mixer *params)
  957. {
  958. int i, j = 0;
  959. channel_mixer_v2[fe_id][type].enable = params->enable;
  960. channel_mixer_v2[fe_id][type].rule = params->rule;
  961. channel_mixer_v2[fe_id][type].input_channel =
  962. params->input_channel;
  963. channel_mixer_v2[fe_id][type].output_channel =
  964. params->output_channel;
  965. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  966. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  967. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  968. params->in_ch_map[i];
  969. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  970. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  971. params->out_ch_map[i];
  972. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  973. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  974. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  975. params->channel_weight[i][j];
  976. channel_mixer_v2[fe_id][type].override_in_ch_map =
  977. params->override_in_ch_map;
  978. channel_mixer_v2[fe_id][type].override_out_ch_map =
  979. params->override_out_ch_map;
  980. return 0;
  981. }
  982. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  983. int msm_pcm_routing_reg_stream_app_type_cfg(
  984. int fedai_id, int session_type, int be_id,
  985. struct msm_pcm_stream_app_type_cfg *cfg_data)
  986. {
  987. int ret = 0;
  988. if (cfg_data == NULL) {
  989. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  990. ret = -EINVAL;
  991. goto done;
  992. }
  993. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  994. __func__, fedai_id, session_type, be_id,
  995. cfg_data->app_type, cfg_data->acdb_dev_id,
  996. cfg_data->sample_rate);
  997. if (!is_mm_lsm_fe_id(fedai_id)) {
  998. pr_err("%s: Invalid machine driver ID %d\n",
  999. __func__, fedai_id);
  1000. ret = -EINVAL;
  1001. goto done;
  1002. }
  1003. if (session_type != SESSION_TYPE_RX &&
  1004. session_type != SESSION_TYPE_TX) {
  1005. pr_err("%s: Invalid session type %d\n",
  1006. __func__, session_type);
  1007. ret = -EINVAL;
  1008. goto done;
  1009. }
  1010. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1011. pr_err("%s: Received out of bounds be_id %d\n",
  1012. __func__, be_id);
  1013. ret = -EINVAL;
  1014. goto done;
  1015. }
  1016. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1017. /*
  1018. * Store the BE ID of the configuration information set as the latest so
  1019. * the get mixer control knows what to return.
  1020. */
  1021. last_be_id_configured[fedai_id][session_type] = be_id;
  1022. done:
  1023. return ret;
  1024. }
  1025. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1026. /**
  1027. * msm_pcm_routing_get_stream_app_type_cfg
  1028. *
  1029. * Receives fedai_id, session_type, be_id, and populates app_type,
  1030. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1031. * -EINVAL and does not alter passed values.
  1032. *
  1033. * fedai_id - Passed value, front end ID for which app type config is wanted
  1034. * session_type - Passed value, session type for which app type config
  1035. * is wanted
  1036. * be_id - Returned value, back end device id the app type config data is for
  1037. * cfg_data - Returned value, configuration data used by app type config
  1038. */
  1039. int msm_pcm_routing_get_stream_app_type_cfg(
  1040. int fedai_id, int session_type, int *bedai_id,
  1041. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1042. {
  1043. int be_id;
  1044. int ret = 0;
  1045. if (bedai_id == NULL) {
  1046. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1047. ret = -EINVAL;
  1048. goto done;
  1049. } else if (cfg_data == NULL) {
  1050. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1051. ret = -EINVAL;
  1052. goto done;
  1053. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1054. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1055. ret = -EINVAL;
  1056. goto done;
  1057. } else if (session_type != SESSION_TYPE_RX &&
  1058. session_type != SESSION_TYPE_TX) {
  1059. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1060. ret = -EINVAL;
  1061. goto done;
  1062. }
  1063. be_id = last_be_id_configured[fedai_id][session_type];
  1064. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1065. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1066. ret = -EINVAL;
  1067. goto done;
  1068. }
  1069. *bedai_id = be_id;
  1070. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1071. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1072. __func__, fedai_id, session_type, *bedai_id,
  1073. cfg_data->app_type, cfg_data->acdb_dev_id,
  1074. cfg_data->sample_rate);
  1075. done:
  1076. return ret;
  1077. }
  1078. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1079. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1080. int cal_index)
  1081. {
  1082. struct list_head *ptr, *next;
  1083. struct cal_block_data *cal_block = NULL;
  1084. pr_debug("%s\n", __func__);
  1085. list_for_each_safe(ptr, next,
  1086. &cal_data[cal_index]->cal_blocks) {
  1087. cal_block = list_entry(ptr,
  1088. struct cal_block_data, list);
  1089. if (cal_utils_is_cal_stale(cal_block))
  1090. continue;
  1091. if (((struct audio_cal_info_adm_top *)cal_block
  1092. ->cal_info)->path == path) {
  1093. return cal_block;
  1094. }
  1095. }
  1096. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1097. return NULL;
  1098. }
  1099. static struct cal_block_data *msm_routing_find_topology(int path,
  1100. int app_type,
  1101. int acdb_id,
  1102. int cal_index,
  1103. bool exact)
  1104. {
  1105. struct list_head *ptr, *next;
  1106. struct cal_block_data *cal_block = NULL;
  1107. struct audio_cal_info_adm_top *cal_info;
  1108. pr_debug("%s\n", __func__);
  1109. list_for_each_safe(ptr, next,
  1110. &cal_data[cal_index]->cal_blocks) {
  1111. cal_block = list_entry(ptr,
  1112. struct cal_block_data, list);
  1113. if (cal_utils_is_cal_stale(cal_block))
  1114. continue;
  1115. cal_info = (struct audio_cal_info_adm_top *)
  1116. cal_block->cal_info;
  1117. if ((cal_info->path == path) &&
  1118. (cal_info->app_type == app_type) &&
  1119. (cal_info->acdb_id == acdb_id)) {
  1120. return cal_block;
  1121. }
  1122. }
  1123. pr_debug("%s: Can't find topology for path %d, app %d, "
  1124. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1125. exact ? "fail" : "defaulting to search by path");
  1126. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1127. cal_index);
  1128. }
  1129. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1130. int acdb_dev_id, int idx,
  1131. bool exact)
  1132. {
  1133. int topology = -EINVAL;
  1134. struct cal_block_data *cal_block = NULL;
  1135. mutex_lock(&cal_data[idx]->lock);
  1136. cal_block = msm_routing_find_topology(session_type, app_type,
  1137. acdb_dev_id, idx, exact);
  1138. if (cal_block != NULL) {
  1139. topology = ((struct audio_cal_info_adm_top *)
  1140. cal_block->cal_info)->topology;
  1141. }
  1142. mutex_unlock(&cal_data[idx]->lock);
  1143. return topology;
  1144. }
  1145. /*
  1146. * Retrieving cal_block will mark cal_block as stale.
  1147. * Hence it cannot be reused or resent unless the flag
  1148. * is reset.
  1149. */
  1150. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1151. int be_id)
  1152. {
  1153. int topology = NULL_COPP_TOPOLOGY;
  1154. int app_type = 0, acdb_dev_id = 0;
  1155. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1156. __func__, fedai_id, session_type, be_id);
  1157. if (cal_data == NULL)
  1158. goto done;
  1159. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1160. acdb_dev_id =
  1161. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1162. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1163. topology = msm_routing_find_topology_on_index(session_type,
  1164. app_type,
  1165. acdb_dev_id,
  1166. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1167. true /*exact*/);
  1168. if (topology < 0) {
  1169. pr_debug("%s: Check for compatible topology\n", __func__);
  1170. topology = msm_routing_find_topology_on_index(session_type,
  1171. app_type,
  1172. acdb_dev_id,
  1173. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1174. false /*exact*/);
  1175. if (topology < 0)
  1176. topology = NULL_COPP_TOPOLOGY;
  1177. }
  1178. done:
  1179. pr_debug("%s: Using topology %d\n", __func__, topology);
  1180. return topology;
  1181. }
  1182. static uint8_t is_be_dai_extproc(int be_dai)
  1183. {
  1184. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1185. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1186. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1187. return 1;
  1188. else
  1189. return 0;
  1190. }
  1191. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1192. int path_type, int perf_mode,
  1193. uint32_t passthr_mode)
  1194. {
  1195. int i, port_type, j, num_copps = 0;
  1196. struct route_payload payload;
  1197. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1198. path_type == ADM_PATH_COMPRESSED_RX) ?
  1199. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1200. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1201. if (!is_be_dai_extproc(i) &&
  1202. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1203. (msm_bedais[i].active) &&
  1204. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1205. int port_id = get_port_id(msm_bedais[i].port_id);
  1206. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1207. unsigned long copp =
  1208. session_copp_map[fedai_id][sess_type][i];
  1209. if (test_bit(j, &copp)) {
  1210. payload.port_id[num_copps] = port_id;
  1211. payload.copp_idx[num_copps] = j;
  1212. payload.app_type[num_copps] =
  1213. fe_dai_app_type_cfg
  1214. [fedai_id][sess_type][i]
  1215. .app_type;
  1216. payload.acdb_dev_id[num_copps] =
  1217. fe_dai_app_type_cfg
  1218. [fedai_id][sess_type][i]
  1219. .acdb_dev_id;
  1220. payload.sample_rate[num_copps] =
  1221. fe_dai_app_type_cfg
  1222. [fedai_id][sess_type][i]
  1223. .sample_rate;
  1224. num_copps++;
  1225. }
  1226. }
  1227. }
  1228. }
  1229. if (num_copps) {
  1230. payload.num_copps = num_copps;
  1231. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1232. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1233. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1234. }
  1235. }
  1236. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1237. int stream_type)
  1238. {
  1239. int i, session_type, path_type, port_type;
  1240. u32 mode = 0;
  1241. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1242. /* bad ID assigned in machine driver */
  1243. pr_err("%s: bad MM ID\n", __func__);
  1244. return;
  1245. }
  1246. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1247. session_type = SESSION_TYPE_RX;
  1248. path_type = ADM_PATH_PLAYBACK;
  1249. port_type = MSM_AFE_PORT_TYPE_RX;
  1250. } else {
  1251. session_type = SESSION_TYPE_TX;
  1252. path_type = ADM_PATH_LIVE_REC;
  1253. port_type = MSM_AFE_PORT_TYPE_TX;
  1254. }
  1255. mutex_lock(&routing_lock);
  1256. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1257. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1258. if (!is_be_dai_extproc(i) &&
  1259. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1260. (msm_bedais[i].active) &&
  1261. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1262. mode = afe_get_port_type(msm_bedais[i].port_id);
  1263. adm_connect_afe_port(mode, dspst_id,
  1264. msm_bedais[i].port_id);
  1265. break;
  1266. }
  1267. }
  1268. mutex_unlock(&routing_lock);
  1269. }
  1270. static bool route_check_fe_id_adm_support(int fe_id)
  1271. {
  1272. bool rc = true;
  1273. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1274. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1275. /* fe id is listen while port is set to afe */
  1276. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1277. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1278. __func__, fe_id, lsm_port_index);
  1279. rc = false;
  1280. }
  1281. }
  1282. return rc;
  1283. }
  1284. /*
  1285. * msm_pcm_routing_get_pp_ch_cnt:
  1286. * Read the processed channel count
  1287. *
  1288. * @fe_id: Front end ID
  1289. * @session_type: Inidicates RX or TX session type
  1290. */
  1291. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1292. {
  1293. struct msm_pcm_stream_app_type_cfg cfg_data;
  1294. int be_id = 0, app_type_idx = 0, app_type = 0;
  1295. int ret = -EINVAL;
  1296. memset(&cfg_data, 0, sizeof(cfg_data));
  1297. if (!is_mm_lsm_fe_id(fe_id)) {
  1298. pr_err("%s: bad MM ID\n", __func__);
  1299. return -EINVAL;
  1300. }
  1301. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1302. &be_id, &cfg_data);
  1303. if (ret) {
  1304. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1305. return ret;
  1306. }
  1307. app_type = cfg_data.app_type;
  1308. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1309. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1310. }
  1311. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1312. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1313. int dspst_id, int stream_type,
  1314. uint32_t passthr_mode)
  1315. {
  1316. int i, j, session_type, path_type, port_type, topology;
  1317. int num_copps = 0;
  1318. struct route_payload payload;
  1319. u32 channels, sample_rate;
  1320. u16 bit_width = 16, be_bit_width;
  1321. bool is_lsm;
  1322. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1323. __func__, fe_id, perf_mode, dspst_id,
  1324. stream_type, passthr_mode);
  1325. if (!is_mm_lsm_fe_id(fe_id)) {
  1326. /* bad ID assigned in machine driver */
  1327. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1328. return -EINVAL;
  1329. }
  1330. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1331. session_type = SESSION_TYPE_RX;
  1332. if (passthr_mode != LEGACY_PCM)
  1333. path_type = ADM_PATH_COMPRESSED_RX;
  1334. else
  1335. path_type = ADM_PATH_PLAYBACK;
  1336. port_type = MSM_AFE_PORT_TYPE_RX;
  1337. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1338. session_type = SESSION_TYPE_TX;
  1339. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1340. path_type = ADM_PATH_COMPRESSED_TX;
  1341. else
  1342. path_type = ADM_PATH_LIVE_REC;
  1343. port_type = MSM_AFE_PORT_TYPE_TX;
  1344. } else {
  1345. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1346. return -EINVAL;
  1347. }
  1348. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1349. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1350. mutex_lock(&routing_lock);
  1351. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1352. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1353. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1354. if (!route_check_fe_id_adm_support(fe_id)) {
  1355. /* ignore adm open if not supported for fe_id */
  1356. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1357. mutex_unlock(&routing_lock);
  1358. return 0;
  1359. }
  1360. payload.num_copps = 0; /* only RX needs to use payload */
  1361. /* re-enable EQ if active */
  1362. msm_qti_pp_send_eq_values(fe_id);
  1363. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1364. if (!is_be_dai_extproc(i) &&
  1365. (afe_get_port_type(msm_bedais[i].port_id) ==
  1366. port_type) &&
  1367. (msm_bedais[i].active) &&
  1368. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1369. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1370. int port_id = get_port_id(msm_bedais[i].port_id);
  1371. /*
  1372. * check if ADM needs to be configured with different
  1373. * channel mapping than backend
  1374. */
  1375. if (!msm_bedais[i].adm_override_ch)
  1376. channels = msm_bedais[i].channel;
  1377. else
  1378. channels = msm_bedais[i].adm_override_ch;
  1379. bit_width = msm_routing_get_bit_width(
  1380. msm_bedais[i].format);
  1381. app_type =
  1382. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1383. if (app_type && is_lsm) {
  1384. app_type_idx =
  1385. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1386. sample_rate =
  1387. fe_dai_app_type_cfg[fe_id][session_type][i]
  1388. .sample_rate;
  1389. bit_width =
  1390. lsm_app_type_cfg[app_type_idx].bit_width;
  1391. } else if (app_type) {
  1392. app_type_idx =
  1393. msm_pcm_routing_get_app_type_idx(
  1394. app_type);
  1395. sample_rate =
  1396. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1397. bit_width =
  1398. app_type_cfg[app_type_idx].bit_width;
  1399. } else {
  1400. sample_rate = msm_bedais[i].sample_rate;
  1401. }
  1402. acdb_dev_id =
  1403. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1404. topology = msm_routing_get_adm_topology(fe_id,
  1405. session_type,
  1406. i);
  1407. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1408. || (passthr_mode ==
  1409. COMPRESSED_PASSTHROUGH_GEN)
  1410. || (passthr_mode ==
  1411. COMPRESSED_PASSTHROUGH_IEC61937))
  1412. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1413. pr_debug("%s: Before adm open topology %d\n", __func__,
  1414. topology);
  1415. be_bit_width = msm_routing_get_bit_width(
  1416. msm_bedais[i].format);
  1417. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1418. == 384000 || msm_bedais[i].sample_rate ==
  1419. 352800) && be_bit_width == 32)
  1420. bit_width = msm_routing_get_bit_width(
  1421. SNDRV_PCM_FORMAT_S32_LE);
  1422. copp_idx =
  1423. adm_open(port_id, path_type, sample_rate,
  1424. channels, topology, perf_mode,
  1425. bit_width, app_type, acdb_dev_id,
  1426. session_type);
  1427. if ((copp_idx < 0) ||
  1428. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1429. pr_err("%s:adm open failed coppid:%d\n",
  1430. __func__, copp_idx);
  1431. mutex_unlock(&routing_lock);
  1432. return -EINVAL;
  1433. }
  1434. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1435. __func__, fe_id, session_type, i);
  1436. set_bit(copp_idx,
  1437. &session_copp_map[fe_id][session_type][i]);
  1438. if (msm_is_resample_needed(
  1439. sample_rate,
  1440. msm_bedais[i].sample_rate))
  1441. adm_copp_mfc_cfg(port_id, copp_idx,
  1442. msm_bedais[i].sample_rate);
  1443. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1444. unsigned long copp =
  1445. session_copp_map[fe_id][session_type][i];
  1446. if (test_bit(j, &copp)) {
  1447. payload.port_id[num_copps] = port_id;
  1448. payload.copp_idx[num_copps] = j;
  1449. payload.app_type[num_copps] =
  1450. fe_dai_app_type_cfg
  1451. [fe_id][session_type][i]
  1452. .app_type;
  1453. payload.acdb_dev_id[num_copps] =
  1454. fe_dai_app_type_cfg
  1455. [fe_id][session_type][i]
  1456. .acdb_dev_id;
  1457. payload.sample_rate[num_copps] =
  1458. fe_dai_app_type_cfg
  1459. [fe_id][session_type][i]
  1460. .sample_rate;
  1461. num_copps++;
  1462. }
  1463. }
  1464. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1465. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1466. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1467. msm_routing_send_device_pp_params(port_id,
  1468. copp_idx, fe_id);
  1469. }
  1470. }
  1471. if (num_copps) {
  1472. payload.num_copps = num_copps;
  1473. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1474. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1475. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1476. }
  1477. mutex_unlock(&routing_lock);
  1478. return 0;
  1479. }
  1480. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1481. {
  1482. u32 session_id;
  1483. switch (val) {
  1484. case MSM_FRONTEND_DAI_QCHAT:
  1485. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1486. break;
  1487. case MSM_FRONTEND_DAI_VOIP:
  1488. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1489. break;
  1490. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1491. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1492. break;
  1493. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1494. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1495. break;
  1496. default:
  1497. session_id = 0;
  1498. }
  1499. pr_debug("%s session_id 0x%x", __func__, session_id);
  1500. return session_id;
  1501. }
  1502. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1503. int dspst_id, int stream_type)
  1504. {
  1505. int copp_idx = 0;
  1506. int sess_type = 0;
  1507. int j = 0, be_id = 0;
  1508. int ret = 0;
  1509. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1510. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1511. return 0;
  1512. }
  1513. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1514. sess_type = SESSION_TYPE_RX;
  1515. else
  1516. sess_type = SESSION_TYPE_TX;
  1517. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1518. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1519. __func__, fe_id, sess_type);
  1520. return 0;
  1521. }
  1522. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1523. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1524. channel_mixer_v2[fe_id][sess_type].input_channel;
  1525. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1526. __func__, sess_type, fe_id,
  1527. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1528. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1529. msm_bedais[be_id].active);
  1530. if ((msm_bedais[be_id].active) &&
  1531. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1532. unsigned long copp =
  1533. session_copp_map[fe_id][sess_type][be_id];
  1534. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1535. if (test_bit(j, &copp)) {
  1536. copp_idx = j;
  1537. break;
  1538. }
  1539. }
  1540. ret = adm_programable_channel_mixer(
  1541. msm_bedais[be_id].port_id,
  1542. copp_idx, dspst_id, sess_type,
  1543. &channel_mixer_v2[fe_id][sess_type], 0);
  1544. }
  1545. return ret;
  1546. }
  1547. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1548. int dspst_id, int stream_type)
  1549. {
  1550. int copp_idx = 0;
  1551. int sess_type = 0;
  1552. int i = 0, j = 0, be_id;
  1553. int ret = 0;
  1554. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1555. dspst_id, stream_type);
  1556. if (ret) {
  1557. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1558. fe_id);
  1559. return ret;
  1560. }
  1561. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1562. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1563. return 0;
  1564. }
  1565. if (!(channel_mixer[fe_id].enable)) {
  1566. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1567. __func__, fe_id);
  1568. return 0;
  1569. }
  1570. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1571. sess_type = SESSION_TYPE_RX;
  1572. else
  1573. sess_type = SESSION_TYPE_TX;
  1574. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1575. ++i) {
  1576. be_id = channel_input[fe_id][i] - 1;
  1577. channel_mixer[fe_id].input_channels[i] =
  1578. msm_bedais[be_id].channel;
  1579. if ((msm_bedais[be_id].active) &&
  1580. test_bit(fe_id,
  1581. &msm_bedais[be_id].fe_sessions[0])) {
  1582. unsigned long copp =
  1583. session_copp_map[fe_id][sess_type][be_id];
  1584. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1585. if (test_bit(j, &copp)) {
  1586. copp_idx = j;
  1587. break;
  1588. }
  1589. }
  1590. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1591. __func__,
  1592. fe_id, be_id, msm_bedais[be_id].channel,
  1593. copp_idx);
  1594. ret = adm_programable_channel_mixer(
  1595. get_port_id(msm_bedais[be_id].port_id),
  1596. copp_idx, dspst_id, sess_type,
  1597. channel_mixer + fe_id, i);
  1598. }
  1599. }
  1600. return ret;
  1601. }
  1602. /**
  1603. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1604. * setting during runtime.
  1605. *
  1606. * @be_id: backend index
  1607. * @session_id: session index
  1608. * @session_type: session type
  1609. * @params: parameters for channel mixer
  1610. *
  1611. * Retuen: 0 for success, else error
  1612. */
  1613. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1614. int session_type,
  1615. struct msm_pcm_channel_mixer *params)
  1616. {
  1617. int rc = 0;
  1618. int port_id, copp_idx = 0;
  1619. be_id--;
  1620. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1621. pr_err("%s: invalid backend id %d\n", __func__,
  1622. be_id);
  1623. return -EINVAL;
  1624. }
  1625. port_id = msm_bedais[be_id].port_id;
  1626. copp_idx = adm_get_default_copp_idx(port_id);
  1627. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1628. __func__, port_id, copp_idx, session_id);
  1629. if ((params->input_channel < 0) ||
  1630. (params->input_channel > ADM_MAX_CHANNELS)) {
  1631. pr_err("%s: invalid input channel %d\n", __func__,
  1632. params->input_channel);
  1633. return -EINVAL;
  1634. }
  1635. if ((params->output_channel < 0) ||
  1636. (params->output_channel > ADM_MAX_CHANNELS)) {
  1637. pr_err("%s: invalid output channel %d\n", __func__,
  1638. params->output_channel);
  1639. return -EINVAL;
  1640. }
  1641. params->input_channels[0] = params->input_channel;
  1642. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1643. __func__, session_type,
  1644. params->override_in_ch_map,
  1645. params->override_out_ch_map,
  1646. msm_bedais[be_id].active);
  1647. rc = adm_programable_channel_mixer(port_id,
  1648. copp_idx,
  1649. session_id,
  1650. session_type,
  1651. params,
  1652. 0);
  1653. if (rc) {
  1654. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1655. rc = -EINVAL;
  1656. }
  1657. return rc;
  1658. }
  1659. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1660. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1661. int dspst_id, int stream_type)
  1662. {
  1663. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1664. struct route_payload payload;
  1665. u32 channels, sample_rate;
  1666. uint16_t bits_per_sample = 16, be_bit_width;
  1667. uint32_t passthr_mode = LEGACY_PCM;
  1668. int ret = 0;
  1669. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1670. /* bad ID assigned in machine driver */
  1671. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1672. return -EINVAL;
  1673. }
  1674. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1675. session_type = SESSION_TYPE_RX;
  1676. path_type = ADM_PATH_PLAYBACK;
  1677. port_type = MSM_AFE_PORT_TYPE_RX;
  1678. } else {
  1679. session_type = SESSION_TYPE_TX;
  1680. path_type = ADM_PATH_LIVE_REC;
  1681. port_type = MSM_AFE_PORT_TYPE_TX;
  1682. }
  1683. mutex_lock(&routing_lock);
  1684. payload.num_copps = 0; /* only RX needs to use payload */
  1685. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1686. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1687. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1688. /* re-enable EQ if active */
  1689. msm_qti_pp_send_eq_values(fedai_id);
  1690. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1691. if (!is_be_dai_extproc(i) &&
  1692. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1693. (msm_bedais[i].active) &&
  1694. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1695. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1696. int port_id = get_port_id(msm_bedais[i].port_id);
  1697. /*
  1698. * check if ADM needs to be configured with different
  1699. * channel mapping than backend
  1700. */
  1701. if (!msm_bedais[i].adm_override_ch)
  1702. channels = msm_bedais[i].channel;
  1703. else
  1704. channels = msm_bedais[i].adm_override_ch;
  1705. bits_per_sample = msm_routing_get_bit_width(
  1706. msm_bedais[i].format);
  1707. app_type =
  1708. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1709. if (app_type) {
  1710. app_type_idx =
  1711. msm_pcm_routing_get_app_type_idx(app_type);
  1712. sample_rate =
  1713. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1714. .sample_rate;
  1715. bits_per_sample =
  1716. app_type_cfg[app_type_idx].bit_width;
  1717. } else
  1718. sample_rate = msm_bedais[i].sample_rate;
  1719. acdb_dev_id =
  1720. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1721. .acdb_dev_id;
  1722. topology = msm_routing_get_adm_topology(fedai_id,
  1723. session_type,
  1724. i);
  1725. be_bit_width = msm_routing_get_bit_width(
  1726. msm_bedais[i].format);
  1727. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1728. 384000 ||msm_bedais[i].sample_rate == 352800)
  1729. && be_bit_width == 32)
  1730. bits_per_sample = msm_routing_get_bit_width(
  1731. SNDRV_PCM_FORMAT_S32_LE);
  1732. copp_idx = adm_open(port_id, path_type,
  1733. sample_rate, channels, topology,
  1734. perf_mode, bits_per_sample,
  1735. app_type, acdb_dev_id,
  1736. session_type);
  1737. if ((copp_idx < 0) ||
  1738. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1739. pr_err("%s: adm open failed copp_idx:%d\n",
  1740. __func__, copp_idx);
  1741. mutex_unlock(&routing_lock);
  1742. return -EINVAL;
  1743. }
  1744. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1745. __func__, fedai_id, session_type, i);
  1746. set_bit(copp_idx,
  1747. &session_copp_map[fedai_id][session_type][i]);
  1748. if (msm_is_resample_needed(
  1749. sample_rate,
  1750. msm_bedais[i].sample_rate))
  1751. adm_copp_mfc_cfg(port_id, copp_idx,
  1752. msm_bedais[i].sample_rate);
  1753. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1754. unsigned long copp =
  1755. session_copp_map[fedai_id][session_type][i];
  1756. if (test_bit(j, &copp)) {
  1757. payload.port_id[num_copps] = port_id;
  1758. payload.copp_idx[num_copps] = j;
  1759. payload.app_type[num_copps] =
  1760. fe_dai_app_type_cfg
  1761. [fedai_id][session_type]
  1762. [i].app_type;
  1763. payload.acdb_dev_id[num_copps] =
  1764. fe_dai_app_type_cfg
  1765. [fedai_id][session_type]
  1766. [i].acdb_dev_id;
  1767. payload.sample_rate[num_copps] =
  1768. fe_dai_app_type_cfg
  1769. [fedai_id][session_type]
  1770. [i].sample_rate;
  1771. num_copps++;
  1772. }
  1773. }
  1774. if (perf_mode == LEGACY_PCM_MODE)
  1775. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1776. topology, channels);
  1777. }
  1778. }
  1779. if (num_copps) {
  1780. payload.num_copps = num_copps;
  1781. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1782. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1783. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1784. }
  1785. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1786. dspst_id, stream_type);
  1787. mutex_unlock(&routing_lock);
  1788. return ret;
  1789. }
  1790. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1791. int dspst_id, int stream_type,
  1792. struct msm_pcm_routing_evt event_info)
  1793. {
  1794. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1795. stream_type)) {
  1796. pr_err("%s: failed to reg phy stream\n", __func__);
  1797. return -EINVAL;
  1798. }
  1799. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1800. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1801. else
  1802. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1803. return 0;
  1804. }
  1805. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1806. {
  1807. int i, port_type, session_type, path_type, topology, port_id;
  1808. struct msm_pcm_routing_fdai_data *fdai;
  1809. if (!is_mm_lsm_fe_id(fedai_id)) {
  1810. /* bad ID assigned in machine driver */
  1811. pr_err("%s: bad MM ID\n", __func__);
  1812. return;
  1813. }
  1814. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1815. port_type = MSM_AFE_PORT_TYPE_RX;
  1816. session_type = SESSION_TYPE_RX;
  1817. path_type = ADM_PATH_PLAYBACK;
  1818. } else {
  1819. port_type = MSM_AFE_PORT_TYPE_TX;
  1820. session_type = SESSION_TYPE_TX;
  1821. path_type = ADM_PATH_LIVE_REC;
  1822. }
  1823. mutex_lock(&routing_lock);
  1824. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1825. if (!is_be_dai_extproc(i) &&
  1826. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1827. (msm_bedais[i].active) &&
  1828. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1829. int idx;
  1830. unsigned long copp =
  1831. session_copp_map[fedai_id][session_type][i];
  1832. fdai = &fe_dai_map[fedai_id][session_type];
  1833. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1834. if (test_bit(idx, &copp))
  1835. break;
  1836. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1837. pr_debug("%s: copp idx is invalid, exiting\n",
  1838. __func__);
  1839. continue;
  1840. }
  1841. port_id = get_port_id(msm_bedais[i].port_id);
  1842. topology = adm_get_topology_for_port_copp_idx(
  1843. port_id, idx);
  1844. msm_routing_unload_topology(topology);
  1845. adm_close(port_id, fdai->perf_mode, idx);
  1846. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1847. __func__, copp, fedai_id, session_type, i);
  1848. clear_bit(idx,
  1849. &session_copp_map[fedai_id][session_type][i]);
  1850. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1851. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1852. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1853. (fdai->passthr_mode == LEGACY_PCM))
  1854. msm_pcm_routing_deinit_pp(port_id, topology);
  1855. }
  1856. }
  1857. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1858. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1859. mutex_unlock(&routing_lock);
  1860. }
  1861. /* Check if FE/BE route is set */
  1862. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1863. {
  1864. bool rc = false;
  1865. if (!is_mm_lsm_fe_id(fe_id)) {
  1866. /* recheck FE ID in the mixer control defined in this file */
  1867. pr_err("%s: bad MM ID\n", __func__);
  1868. return rc;
  1869. }
  1870. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1871. rc = true;
  1872. return rc;
  1873. }
  1874. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1875. {
  1876. int session_type, path_type, topology;
  1877. u32 channels, sample_rate;
  1878. uint16_t bits_per_sample = 16, be_bit_width;
  1879. struct msm_pcm_routing_fdai_data *fdai;
  1880. uint32_t passthr_mode;
  1881. bool is_lsm;
  1882. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1883. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1884. afe_get_port_type(msm_bedais[reg].port_id) ==
  1885. MSM_AFE_PORT_TYPE_RX) {
  1886. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1887. __func__, set, msm_bedais[reg].port_id);
  1888. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1889. } else if (!is_mm_lsm_fe_id(val)) {
  1890. /* recheck FE ID in the mixer control defined in this file */
  1891. pr_err("%s: bad MM ID\n", __func__);
  1892. return;
  1893. }
  1894. if (!route_check_fe_id_adm_support(val)) {
  1895. /* ignore adm open if not supported for fe_id */
  1896. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1897. if (set)
  1898. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1899. else
  1900. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1901. return;
  1902. }
  1903. session_type =
  1904. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1905. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1906. fdai = &fe_dai_map[val][session_type];
  1907. passthr_mode = fdai->passthr_mode;
  1908. if (session_type == SESSION_TYPE_RX) {
  1909. if (passthr_mode != LEGACY_PCM)
  1910. path_type = ADM_PATH_COMPRESSED_RX;
  1911. else
  1912. path_type = ADM_PATH_PLAYBACK;
  1913. } else {
  1914. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1915. path_type = ADM_PATH_COMPRESSED_TX;
  1916. else
  1917. path_type = ADM_PATH_LIVE_REC;
  1918. }
  1919. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1920. (val <= MSM_FRONTEND_DAI_LSM8);
  1921. mutex_lock(&routing_lock);
  1922. if (set) {
  1923. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1924. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1925. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1926. voc_start_playback(set, msm_bedais[reg].port_id);
  1927. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1928. if (msm_bedais[reg].active && fdai->strm_id !=
  1929. INVALID_SESSION) {
  1930. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1931. int port_id = get_port_id(msm_bedais[reg].port_id);
  1932. /*
  1933. * check if ADM needs to be configured with different
  1934. * channel mapping than backend
  1935. */
  1936. if (!msm_bedais[reg].adm_override_ch)
  1937. channels = msm_bedais[reg].channel;
  1938. else
  1939. channels = msm_bedais[reg].adm_override_ch;
  1940. if (session_type == SESSION_TYPE_TX &&
  1941. fdai->be_srate &&
  1942. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1943. pr_debug("%s: flush strm %d diff BE rates\n",
  1944. __func__, fdai->strm_id);
  1945. if (fdai->event_info.event_func)
  1946. fdai->event_info.event_func(
  1947. MSM_PCM_RT_EVT_BUF_RECFG,
  1948. fdai->event_info.priv_data);
  1949. fdai->be_srate = 0; /* might not need it */
  1950. }
  1951. bits_per_sample = msm_routing_get_bit_width(
  1952. msm_bedais[reg].format);
  1953. app_type =
  1954. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1955. if (app_type && is_lsm) {
  1956. app_type_idx =
  1957. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1958. sample_rate =
  1959. fe_dai_app_type_cfg[val][session_type][reg]
  1960. .sample_rate;
  1961. bits_per_sample =
  1962. lsm_app_type_cfg[app_type_idx].bit_width;
  1963. } else if (app_type) {
  1964. app_type_idx =
  1965. msm_pcm_routing_get_app_type_idx(app_type);
  1966. sample_rate =
  1967. fe_dai_app_type_cfg[val][session_type][reg]
  1968. .sample_rate;
  1969. bits_per_sample =
  1970. app_type_cfg[app_type_idx].bit_width;
  1971. } else
  1972. sample_rate = msm_bedais[reg].sample_rate;
  1973. topology = msm_routing_get_adm_topology(val,
  1974. session_type,
  1975. reg);
  1976. acdb_dev_id =
  1977. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1978. be_bit_width = msm_routing_get_bit_width(
  1979. msm_bedais[reg].format);
  1980. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1981. == 384000 ||msm_bedais[reg].sample_rate ==
  1982. 352800) && be_bit_width == 32)
  1983. bits_per_sample = msm_routing_get_bit_width(
  1984. SNDRV_PCM_FORMAT_S32_LE);
  1985. copp_idx = adm_open(port_id, path_type,
  1986. sample_rate, channels, topology,
  1987. fdai->perf_mode, bits_per_sample,
  1988. app_type, acdb_dev_id,
  1989. session_type);
  1990. if ((copp_idx < 0) ||
  1991. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1992. pr_err("%s: adm open failed\n", __func__);
  1993. mutex_unlock(&routing_lock);
  1994. return;
  1995. }
  1996. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1997. __func__, val, session_type, reg);
  1998. set_bit(copp_idx,
  1999. &session_copp_map[val][session_type][reg]);
  2000. if (msm_is_resample_needed(
  2001. sample_rate,
  2002. msm_bedais[reg].sample_rate))
  2003. adm_copp_mfc_cfg(port_id, copp_idx,
  2004. msm_bedais[reg].sample_rate);
  2005. if (session_type == SESSION_TYPE_RX &&
  2006. fdai->event_info.event_func)
  2007. fdai->event_info.event_func(
  2008. MSM_PCM_RT_EVT_DEVSWITCH,
  2009. fdai->event_info.priv_data);
  2010. msm_pcm_routing_build_matrix(val, session_type,
  2011. path_type,
  2012. fdai->perf_mode,
  2013. passthr_mode);
  2014. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2015. (passthr_mode == LEGACY_PCM))
  2016. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2017. topology, channels);
  2018. }
  2019. } else {
  2020. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2021. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2022. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2023. voc_start_playback(set, msm_bedais[reg].port_id);
  2024. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2025. if (msm_bedais[reg].active && fdai->strm_id !=
  2026. INVALID_SESSION) {
  2027. int idx;
  2028. int port_id;
  2029. unsigned long copp =
  2030. session_copp_map[val][session_type][reg];
  2031. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2032. if (test_bit(idx, &copp))
  2033. break;
  2034. if (idx >= MAX_COPPS_PER_PORT) {
  2035. pr_debug("%s: copp idx is invalid, exiting\n",
  2036. __func__);
  2037. mutex_unlock(&routing_lock);
  2038. return;
  2039. }
  2040. port_id = get_port_id(msm_bedais[reg].port_id);
  2041. topology = adm_get_topology_for_port_copp_idx(port_id,
  2042. idx);
  2043. msm_routing_unload_topology(topology);
  2044. adm_close(port_id, fdai->perf_mode, idx);
  2045. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2046. __func__, copp, val, session_type, reg,
  2047. topology);
  2048. clear_bit(idx,
  2049. &session_copp_map[val][session_type][reg]);
  2050. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2051. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2052. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2053. (passthr_mode == LEGACY_PCM))
  2054. msm_pcm_routing_deinit_pp(port_id, topology);
  2055. msm_pcm_routing_build_matrix(val, session_type,
  2056. path_type,
  2057. fdai->perf_mode,
  2058. passthr_mode);
  2059. }
  2060. }
  2061. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2062. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2063. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2064. mutex_unlock(&routing_lock);
  2065. }
  2066. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2067. struct snd_ctl_elem_value *ucontrol)
  2068. {
  2069. struct soc_mixer_control *mc =
  2070. (struct soc_mixer_control *)kcontrol->private_value;
  2071. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2072. ucontrol->value.integer.value[0] = 1;
  2073. else
  2074. ucontrol->value.integer.value[0] = 0;
  2075. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2076. ucontrol->value.integer.value[0]);
  2077. return 0;
  2078. }
  2079. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2080. struct snd_ctl_elem_value *ucontrol)
  2081. {
  2082. struct snd_soc_dapm_widget *widget =
  2083. snd_soc_dapm_kcontrol_widget(kcontrol);
  2084. struct soc_mixer_control *mc =
  2085. (struct soc_mixer_control *)kcontrol->private_value;
  2086. struct snd_soc_dapm_update *update = NULL;
  2087. if (ucontrol->value.integer.value[0] &&
  2088. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2089. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2090. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2091. update);
  2092. } else if (!ucontrol->value.integer.value[0] &&
  2093. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2094. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2095. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2096. update);
  2097. }
  2098. return 1;
  2099. }
  2100. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2101. struct snd_ctl_elem_value *ucontrol)
  2102. {
  2103. struct soc_mixer_control *mc =
  2104. (struct soc_mixer_control *)kcontrol->private_value;
  2105. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2106. ucontrol->value.integer.value[0] = 1;
  2107. else
  2108. ucontrol->value.integer.value[0] = 0;
  2109. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2110. ucontrol->value.integer.value[0]);
  2111. return 0;
  2112. }
  2113. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2114. struct snd_ctl_elem_value *ucontrol)
  2115. {
  2116. struct snd_soc_dapm_widget *widget =
  2117. snd_soc_dapm_kcontrol_widget(kcontrol);
  2118. struct soc_mixer_control *mc =
  2119. (struct soc_mixer_control *)kcontrol->private_value;
  2120. struct snd_soc_dapm_update *update = NULL;
  2121. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2122. ucontrol->value.integer.value[0]);
  2123. if (ucontrol->value.integer.value[0]) {
  2124. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2125. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2126. snd_soc_dapm_mixer_update_power(widget->dapm,
  2127. kcontrol, 1, update);
  2128. } else if (!ucontrol->value.integer.value[0]) {
  2129. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2130. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2131. snd_soc_dapm_mixer_update_power(widget->dapm,
  2132. kcontrol, 0, update);
  2133. }
  2134. return 1;
  2135. }
  2136. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2137. {
  2138. u32 session_id = 0;
  2139. u16 path_type;
  2140. struct media_format_info voc_be_media_format;
  2141. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2142. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2143. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2144. __func__, val, session_id);
  2145. mutex_lock(&routing_lock);
  2146. if (set)
  2147. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2148. else
  2149. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2150. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2151. afe_get_port_type(msm_bedais[reg].port_id) ==
  2152. MSM_AFE_PORT_TYPE_RX) {
  2153. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2154. __func__, set, msm_bedais[reg].port_id);
  2155. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2156. }
  2157. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2158. MSM_AFE_PORT_TYPE_RX)
  2159. path_type = RX_PATH;
  2160. else
  2161. path_type = TX_PATH;
  2162. if (set) {
  2163. if (msm_bedais[reg].active) {
  2164. voc_set_route_flag(session_id, path_type, 1);
  2165. memset(&voc_be_media_format, 0,
  2166. sizeof(struct media_format_info));
  2167. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2168. voc_be_media_format.num_channels =
  2169. msm_bedais[reg].channel;
  2170. voc_be_media_format.sample_rate =
  2171. msm_bedais[reg].sample_rate;
  2172. voc_be_media_format.bits_per_sample =
  2173. msm_bedais[reg].format;
  2174. /* Defaulting this to 1 for voice call usecases */
  2175. voc_be_media_format.channel_mapping[0] = 1;
  2176. voc_set_device_config(session_id, path_type,
  2177. &voc_be_media_format);
  2178. if (voc_get_route_flag(session_id, TX_PATH) &&
  2179. voc_get_route_flag(session_id, RX_PATH))
  2180. voc_enable_device(session_id);
  2181. } else {
  2182. pr_debug("%s BE is not active\n", __func__);
  2183. }
  2184. } else {
  2185. voc_set_route_flag(session_id, path_type, 0);
  2186. voc_disable_device(session_id);
  2187. }
  2188. mutex_unlock(&routing_lock);
  2189. }
  2190. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2191. struct snd_ctl_elem_value *ucontrol)
  2192. {
  2193. struct soc_mixer_control *mc =
  2194. (struct soc_mixer_control *)kcontrol->private_value;
  2195. mutex_lock(&routing_lock);
  2196. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2197. ucontrol->value.integer.value[0] = 1;
  2198. else
  2199. ucontrol->value.integer.value[0] = 0;
  2200. mutex_unlock(&routing_lock);
  2201. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2202. ucontrol->value.integer.value[0]);
  2203. return 0;
  2204. }
  2205. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2206. struct snd_ctl_elem_value *ucontrol)
  2207. {
  2208. struct snd_soc_dapm_widget *widget =
  2209. snd_soc_dapm_kcontrol_widget(kcontrol);
  2210. struct soc_mixer_control *mc =
  2211. (struct soc_mixer_control *)kcontrol->private_value;
  2212. struct snd_soc_dapm_update *update = NULL;
  2213. if (ucontrol->value.integer.value[0]) {
  2214. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2215. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2216. update);
  2217. } else {
  2218. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2219. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2220. update);
  2221. }
  2222. return 1;
  2223. }
  2224. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2225. struct snd_ctl_elem_value *ucontrol)
  2226. {
  2227. struct soc_mixer_control *mc =
  2228. (struct soc_mixer_control *)kcontrol->private_value;
  2229. mutex_lock(&routing_lock);
  2230. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2231. ucontrol->value.integer.value[0] = 1;
  2232. else
  2233. ucontrol->value.integer.value[0] = 0;
  2234. mutex_unlock(&routing_lock);
  2235. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2236. ucontrol->value.integer.value[0]);
  2237. return 0;
  2238. }
  2239. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2240. struct snd_ctl_elem_value *ucontrol)
  2241. {
  2242. struct snd_soc_dapm_widget *widget =
  2243. snd_soc_dapm_kcontrol_widget(kcontrol);
  2244. struct soc_mixer_control *mc =
  2245. (struct soc_mixer_control *)kcontrol->private_value;
  2246. struct snd_soc_dapm_update *update = NULL;
  2247. if (ucontrol->value.integer.value[0]) {
  2248. mutex_lock(&routing_lock);
  2249. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2250. mutex_unlock(&routing_lock);
  2251. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2252. update);
  2253. } else {
  2254. mutex_lock(&routing_lock);
  2255. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2256. mutex_unlock(&routing_lock);
  2257. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2258. update);
  2259. }
  2260. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2261. ucontrol->value.integer.value[0]);
  2262. return 1;
  2263. }
  2264. /*
  2265. * Return the mapping between port ID and backend ID to enable the AFE callback
  2266. * to determine the acdb_dev_id from the port id
  2267. */
  2268. int msm_pcm_get_be_id_from_port_id(int port_id)
  2269. {
  2270. int i;
  2271. int be_id = -EINVAL;
  2272. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2273. if (msm_bedais[i].port_id == port_id) {
  2274. be_id = i;
  2275. break;
  2276. }
  2277. }
  2278. return be_id;
  2279. }
  2280. /*
  2281. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2282. * correct AFE calibration information by comparing the header information.
  2283. */
  2284. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2285. {
  2286. int acdb_id = -EINVAL;
  2287. int i = 0;
  2288. int session;
  2289. int port_type = afe_get_port_type(port_id);
  2290. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2291. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2292. __func__, port_id, be_id, port_type);
  2293. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2294. session = SESSION_TYPE_TX;
  2295. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2296. session = SESSION_TYPE_RX;
  2297. } else {
  2298. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2299. acdb_id = -EINVAL;
  2300. goto exit;
  2301. }
  2302. if (be_id < 0) {
  2303. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2304. goto exit;
  2305. }
  2306. mutex_lock(&routing_lock);
  2307. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2308. MSM_FRONTEND_DAI_MAX);
  2309. if (i < MSM_FRONTEND_DAI_MAX)
  2310. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2311. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2312. __func__, i, session, be_id, acdb_id);
  2313. mutex_unlock(&routing_lock);
  2314. exit:
  2315. return acdb_id;
  2316. }
  2317. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2318. struct snd_ctl_elem_value *ucontrol)
  2319. {
  2320. ucontrol->value.integer.value[0] = fm_switch_enable;
  2321. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2322. ucontrol->value.integer.value[0]);
  2323. return 0;
  2324. }
  2325. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2326. struct snd_ctl_elem_value *ucontrol)
  2327. {
  2328. struct snd_soc_dapm_widget *widget =
  2329. snd_soc_dapm_kcontrol_widget(kcontrol);
  2330. struct snd_soc_dapm_update *update = NULL;
  2331. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2332. ucontrol->value.integer.value[0]);
  2333. if (ucontrol->value.integer.value[0])
  2334. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2335. update);
  2336. else
  2337. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2338. update);
  2339. fm_switch_enable = ucontrol->value.integer.value[0];
  2340. return 1;
  2341. }
  2342. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2343. struct snd_ctl_elem_value *ucontrol)
  2344. {
  2345. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2346. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2347. ucontrol->value.integer.value[0]);
  2348. return 0;
  2349. }
  2350. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2351. struct snd_ctl_elem_value *ucontrol)
  2352. {
  2353. struct snd_soc_dapm_widget *widget =
  2354. snd_soc_dapm_kcontrol_widget(kcontrol);
  2355. struct snd_soc_dapm_update *update = NULL;
  2356. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2357. ucontrol->value.integer.value[0]);
  2358. if (ucontrol->value.integer.value[0])
  2359. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2360. 1, update);
  2361. else
  2362. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2363. 0, update);
  2364. hfp_switch_enable = ucontrol->value.integer.value[0];
  2365. return 1;
  2366. }
  2367. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2368. struct snd_ctl_elem_value *ucontrol)
  2369. {
  2370. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2371. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2372. ucontrol->value.integer.value[0]);
  2373. return 0;
  2374. }
  2375. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2376. struct snd_ctl_elem_value *ucontrol)
  2377. {
  2378. struct snd_soc_dapm_widget *widget =
  2379. snd_soc_dapm_kcontrol_widget(kcontrol);
  2380. struct snd_soc_dapm_update *update = NULL;
  2381. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2382. ucontrol->value.integer.value[0]);
  2383. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2384. if (a2dp_switch_enable)
  2385. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2386. 1, update);
  2387. else
  2388. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2389. 0, update);
  2390. return 1;
  2391. }
  2392. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2393. struct snd_ctl_elem_value *ucontrol)
  2394. {
  2395. ucontrol->value.integer.value[0] = sco_switch_enable;
  2396. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2397. ucontrol->value.integer.value[0]);
  2398. return 0;
  2399. }
  2400. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2401. struct snd_ctl_elem_value *ucontrol)
  2402. {
  2403. struct snd_soc_dapm_widget *widget =
  2404. snd_soc_dapm_kcontrol_widget(kcontrol);
  2405. struct snd_soc_dapm_update *update = NULL;
  2406. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2407. ucontrol->value.integer.value[0]);
  2408. sco_switch_enable = ucontrol->value.integer.value[0];
  2409. if (sco_switch_enable)
  2410. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2411. 1, update);
  2412. else
  2413. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2414. 0, update);
  2415. return 1;
  2416. }
  2417. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2418. struct snd_ctl_elem_value *ucontrol)
  2419. {
  2420. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2421. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2422. ucontrol->value.integer.value[0]);
  2423. return 0;
  2424. }
  2425. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2426. struct snd_ctl_elem_value *ucontrol)
  2427. {
  2428. struct snd_soc_dapm_widget *widget =
  2429. snd_soc_dapm_kcontrol_widget(kcontrol);
  2430. struct snd_soc_dapm_update *update = NULL;
  2431. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2432. ucontrol->value.integer.value[0]);
  2433. if (ucontrol->value.integer.value[0])
  2434. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2435. update);
  2436. else
  2437. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2438. update);
  2439. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2440. return 1;
  2441. }
  2442. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2443. struct snd_ctl_elem_value *ucontrol)
  2444. {
  2445. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2446. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2447. ucontrol->value.integer.value[0]);
  2448. return 0;
  2449. }
  2450. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2451. struct snd_ctl_elem_value *ucontrol)
  2452. {
  2453. struct snd_soc_dapm_widget *widget =
  2454. snd_soc_dapm_kcontrol_widget(kcontrol);
  2455. struct snd_soc_dapm_update *update = NULL;
  2456. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2457. ucontrol->value.integer.value[0]);
  2458. if (ucontrol->value.integer.value[0])
  2459. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2460. update);
  2461. else
  2462. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2463. update);
  2464. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2465. return 1;
  2466. }
  2467. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2468. struct snd_ctl_elem_value *ucontrol)
  2469. {
  2470. ucontrol->value.integer.value[0] = usb_switch_enable;
  2471. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2472. ucontrol->value.integer.value[0]);
  2473. return 0;
  2474. }
  2475. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2476. struct snd_ctl_elem_value *ucontrol)
  2477. {
  2478. struct snd_soc_dapm_widget *widget =
  2479. snd_soc_dapm_kcontrol_widget(kcontrol);
  2480. struct snd_soc_dapm_update *update = NULL;
  2481. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2482. ucontrol->value.integer.value[0]);
  2483. if (ucontrol->value.integer.value[0])
  2484. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2485. 1, update);
  2486. else
  2487. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2488. 0, update);
  2489. usb_switch_enable = ucontrol->value.integer.value[0];
  2490. return 1;
  2491. }
  2492. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2493. struct snd_ctl_elem_value *ucontrol)
  2494. {
  2495. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2496. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2497. ucontrol->value.integer.value[0]);
  2498. return 0;
  2499. }
  2500. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2501. struct snd_ctl_elem_value *ucontrol)
  2502. {
  2503. struct snd_soc_dapm_widget *widget =
  2504. snd_soc_dapm_kcontrol_widget(kcontrol);
  2505. struct snd_soc_dapm_update *update = NULL;
  2506. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2507. ucontrol->value.integer.value[0]);
  2508. if (ucontrol->value.integer.value[0])
  2509. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2510. update);
  2511. else
  2512. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2513. update);
  2514. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2515. return 1;
  2516. }
  2517. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2518. struct snd_ctl_elem_value *ucontrol)
  2519. {
  2520. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2521. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2522. ucontrol->value.integer.value[0]);
  2523. return 0;
  2524. }
  2525. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2526. struct snd_ctl_elem_value *ucontrol)
  2527. {
  2528. struct snd_soc_dapm_widget *widget =
  2529. snd_soc_dapm_kcontrol_widget(kcontrol);
  2530. struct snd_soc_dapm_update *update = NULL;
  2531. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2532. ucontrol->value.integer.value[0]);
  2533. if (ucontrol->value.integer.value[0])
  2534. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2535. update);
  2536. else
  2537. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2538. update);
  2539. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2540. return 1;
  2541. }
  2542. static int msm_routing_get_tert_mi2s_switch_mixer(
  2543. struct snd_kcontrol *kcontrol,
  2544. struct snd_ctl_elem_value *ucontrol)
  2545. {
  2546. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2547. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2548. ucontrol->value.integer.value[0]);
  2549. return 0;
  2550. }
  2551. static int msm_routing_put_tert_mi2s_switch_mixer(
  2552. struct snd_kcontrol *kcontrol,
  2553. struct snd_ctl_elem_value *ucontrol)
  2554. {
  2555. struct snd_soc_dapm_widget *widget =
  2556. snd_soc_dapm_kcontrol_widget(kcontrol);
  2557. struct snd_soc_dapm_update *update = NULL;
  2558. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2559. ucontrol->value.integer.value[0]);
  2560. if (ucontrol->value.integer.value[0])
  2561. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2562. update);
  2563. else
  2564. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2565. update);
  2566. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2567. return 1;
  2568. }
  2569. static int msm_routing_get_quat_mi2s_switch_mixer(
  2570. struct snd_kcontrol *kcontrol,
  2571. struct snd_ctl_elem_value *ucontrol)
  2572. {
  2573. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2574. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2575. ucontrol->value.integer.value[0]);
  2576. return 0;
  2577. }
  2578. static int msm_routing_put_quat_mi2s_switch_mixer(
  2579. struct snd_kcontrol *kcontrol,
  2580. struct snd_ctl_elem_value *ucontrol)
  2581. {
  2582. struct snd_soc_dapm_widget *widget =
  2583. snd_soc_dapm_kcontrol_widget(kcontrol);
  2584. struct snd_soc_dapm_update *update = NULL;
  2585. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2586. ucontrol->value.integer.value[0]);
  2587. if (ucontrol->value.integer.value[0])
  2588. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2589. update);
  2590. else
  2591. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2592. update);
  2593. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2594. return 1;
  2595. }
  2596. static int msm_routing_get_quin_mi2s_switch_mixer(
  2597. struct snd_kcontrol *kcontrol,
  2598. struct snd_ctl_elem_value *ucontrol)
  2599. {
  2600. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2601. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2602. ucontrol->value.integer.value[0]);
  2603. return 0;
  2604. }
  2605. static int msm_routing_put_quin_mi2s_switch_mixer(
  2606. struct snd_kcontrol *kcontrol,
  2607. struct snd_ctl_elem_value *ucontrol)
  2608. {
  2609. struct snd_soc_dapm_widget *widget =
  2610. snd_soc_dapm_kcontrol_widget(kcontrol);
  2611. struct snd_soc_dapm_update *update = NULL;
  2612. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2613. ucontrol->value.integer.value[0]);
  2614. if (ucontrol->value.integer.value[0])
  2615. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2616. update);
  2617. else
  2618. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2619. update);
  2620. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2621. return 1;
  2622. }
  2623. static int msm_routing_get_sen_mi2s_switch_mixer(
  2624. struct snd_kcontrol *kcontrol,
  2625. struct snd_ctl_elem_value *ucontrol)
  2626. {
  2627. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2628. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2629. ucontrol->value.integer.value[0]);
  2630. return 0;
  2631. }
  2632. static int msm_routing_put_sen_mi2s_switch_mixer(
  2633. struct snd_kcontrol *kcontrol,
  2634. struct snd_ctl_elem_value *ucontrol)
  2635. {
  2636. struct snd_soc_dapm_widget *widget =
  2637. snd_soc_dapm_kcontrol_widget(kcontrol);
  2638. struct snd_soc_dapm_update *update = NULL;
  2639. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2640. ucontrol->value.integer.value[0]);
  2641. if (ucontrol->value.integer.value[0])
  2642. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2643. update);
  2644. else
  2645. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2646. update);
  2647. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2648. return 1;
  2649. }
  2650. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2651. struct snd_ctl_elem_value *ucontrol)
  2652. {
  2653. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2654. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2655. ucontrol->value.integer.value[0]);
  2656. return 0;
  2657. }
  2658. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2659. struct snd_ctl_elem_value *ucontrol)
  2660. {
  2661. struct snd_soc_dapm_widget *widget =
  2662. snd_soc_dapm_kcontrol_widget(kcontrol);
  2663. struct snd_soc_dapm_update *update = NULL;
  2664. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2665. ucontrol->value.integer.value[0]);
  2666. if (ucontrol->value.integer.value[0])
  2667. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2668. update);
  2669. else
  2670. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2671. update);
  2672. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2673. return 1;
  2674. }
  2675. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2676. struct snd_ctl_elem_value *ucontrol)
  2677. {
  2678. ucontrol->value.integer.value[0] = lsm_port_index;
  2679. return 0;
  2680. }
  2681. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2682. struct snd_ctl_elem_value *ucontrol)
  2683. {
  2684. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2685. int mux = ucontrol->value.enumerated.item[0];
  2686. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2687. if (mux >= e->items) {
  2688. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2689. return -EINVAL;
  2690. }
  2691. pr_debug("%s: LSM enable %ld\n", __func__,
  2692. ucontrol->value.integer.value[0]);
  2693. switch (ucontrol->value.integer.value[0]) {
  2694. case 1:
  2695. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2696. break;
  2697. case 2:
  2698. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2699. break;
  2700. case 3:
  2701. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2702. break;
  2703. case 4:
  2704. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2705. break;
  2706. case 5:
  2707. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2708. break;
  2709. case 6:
  2710. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2711. break;
  2712. case 7:
  2713. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2714. break;
  2715. case 8:
  2716. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2717. break;
  2718. case 9:
  2719. lsm_port = ADM_LSM_PORT_ID;
  2720. break;
  2721. case 10:
  2722. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2723. break;
  2724. case 11:
  2725. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2726. break;
  2727. case 12:
  2728. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2729. break;
  2730. case 13:
  2731. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2732. break;
  2733. case 14:
  2734. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2735. break;
  2736. case 15:
  2737. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2738. break;
  2739. case 16:
  2740. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2741. break;
  2742. default:
  2743. pr_err("Default lsm port");
  2744. break;
  2745. }
  2746. set_lsm_port(lsm_port);
  2747. lsm_port_index = ucontrol->value.integer.value[0];
  2748. return 0;
  2749. }
  2750. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2751. struct snd_ctl_elem_value *ucontrol)
  2752. {
  2753. int i;
  2754. u16 port_id;
  2755. enum afe_mad_type mad_type;
  2756. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2757. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2758. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2759. strlen(lsm_port_text[i])))
  2760. break;
  2761. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2762. pr_warn("%s: Invalid id name %s\n", __func__,
  2763. kcontrol->id.name);
  2764. return -EINVAL;
  2765. }
  2766. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2767. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2768. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2769. strlen(lsm_port_text[7])))
  2770. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2771. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2772. strlen(lsm_port_text[8])))
  2773. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2774. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2775. strlen(lsm_port_text[10])))
  2776. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2777. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2778. strlen(lsm_port_text[14])))
  2779. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2780. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2781. strlen(lsm_port_text[15])))
  2782. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2783. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2784. strlen(lsm_port_text[16])))
  2785. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2786. mad_type = afe_port_get_mad_type(port_id);
  2787. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2788. mad_type);
  2789. switch (mad_type) {
  2790. case MAD_HW_NONE:
  2791. ucontrol->value.integer.value[0] = MADNONE;
  2792. break;
  2793. case MAD_HW_AUDIO:
  2794. ucontrol->value.integer.value[0] = MADAUDIO;
  2795. break;
  2796. case MAD_HW_BEACON:
  2797. ucontrol->value.integer.value[0] = MADBEACON;
  2798. break;
  2799. case MAD_HW_ULTRASOUND:
  2800. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2801. break;
  2802. case MAD_SW_AUDIO:
  2803. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2804. break;
  2805. default:
  2806. pr_warn("%s: Unknown\n", __func__);
  2807. return -EINVAL;
  2808. }
  2809. return 0;
  2810. }
  2811. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2812. struct snd_ctl_elem_value *ucontrol)
  2813. {
  2814. int i;
  2815. u16 port_id;
  2816. enum afe_mad_type mad_type;
  2817. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2818. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2819. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2820. strlen(lsm_port_text[i])))
  2821. break;
  2822. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2823. pr_warn("%s: Invalid id name %s\n", __func__,
  2824. kcontrol->id.name);
  2825. return -EINVAL;
  2826. }
  2827. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2828. switch (ucontrol->value.integer.value[0]) {
  2829. case MADNONE:
  2830. mad_type = MAD_HW_NONE;
  2831. break;
  2832. case MADAUDIO:
  2833. mad_type = MAD_HW_AUDIO;
  2834. break;
  2835. case MADBEACON:
  2836. mad_type = MAD_HW_BEACON;
  2837. break;
  2838. case MADULTRASOUND:
  2839. mad_type = MAD_HW_ULTRASOUND;
  2840. break;
  2841. case MADSWAUDIO:
  2842. mad_type = MAD_SW_AUDIO;
  2843. break;
  2844. default:
  2845. pr_warn("%s: Unknown\n", __func__);
  2846. return -EINVAL;
  2847. }
  2848. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2849. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2850. strlen(lsm_port_text[7])))
  2851. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2852. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2853. strlen(lsm_port_text[8])))
  2854. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2855. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2856. strlen(lsm_port_text[10])))
  2857. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2858. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2859. strlen(lsm_port_text[14])))
  2860. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2861. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2862. strlen(lsm_port_text[15])))
  2863. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2864. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  2865. strlen(lsm_port_text[16])))
  2866. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  2867. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2868. mad_type);
  2869. return afe_port_set_mad_type(port_id, mad_type);
  2870. }
  2871. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2872. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2873. adm_override_chs_text);
  2874. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2875. {
  2876. int backend_id;
  2877. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2878. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2879. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2880. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2881. } else {
  2882. pr_err("%s: unsupported backend id: %s",
  2883. __func__, kcontrol->id.name);
  2884. return -EINVAL;
  2885. }
  2886. return backend_id;
  2887. }
  2888. static int msm_routing_adm_channel_config_get(
  2889. struct snd_kcontrol *kcontrol,
  2890. struct snd_ctl_elem_value *ucontrol)
  2891. {
  2892. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2893. if (backend_id >= 0) {
  2894. mutex_lock(&routing_lock);
  2895. ucontrol->value.integer.value[0] =
  2896. msm_bedais[backend_id].adm_override_ch;
  2897. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2898. ucontrol->value.integer.value[0], backend_id);
  2899. mutex_unlock(&routing_lock);
  2900. }
  2901. return 0;
  2902. }
  2903. static int msm_routing_adm_channel_config_put(
  2904. struct snd_kcontrol *kcontrol,
  2905. struct snd_ctl_elem_value *ucontrol)
  2906. {
  2907. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2908. if (backend_id >= 0) {
  2909. mutex_lock(&routing_lock);
  2910. msm_bedais[backend_id].adm_override_ch =
  2911. ucontrol->value.integer.value[0];
  2912. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2913. __func__, backend_id,
  2914. msm_bedais[backend_id].adm_override_ch);
  2915. mutex_unlock(&routing_lock);
  2916. }
  2917. return 0;
  2918. }
  2919. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2920. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2921. msm_routing_adm_channel_config_get,
  2922. msm_routing_adm_channel_config_put),
  2923. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2924. msm_routing_adm_channel_config_get,
  2925. msm_routing_adm_channel_config_put),
  2926. };
  2927. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2928. struct snd_ctl_elem_value *ucontrol)
  2929. {
  2930. mutex_lock(&routing_lock);
  2931. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2932. mutex_unlock(&routing_lock);
  2933. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2934. ucontrol->value.integer.value[0]);
  2935. return 0;
  2936. };
  2937. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2938. struct snd_ctl_elem_value *ucontrol)
  2939. {
  2940. struct aanc_data aanc_info;
  2941. mutex_lock(&routing_lock);
  2942. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2943. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2944. ucontrol->value.integer.value[0]);
  2945. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2946. if (ucontrol->value.integer.value[0] == 0) {
  2947. aanc_info.aanc_active = false;
  2948. aanc_info.aanc_tx_port = 0;
  2949. aanc_info.aanc_rx_port = 0;
  2950. } else {
  2951. aanc_info.aanc_active = true;
  2952. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2953. aanc_info.aanc_tx_port =
  2954. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2955. }
  2956. afe_set_aanc_info(&aanc_info);
  2957. mutex_unlock(&routing_lock);
  2958. return 0;
  2959. };
  2960. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2961. struct snd_ctl_elem_value *ucontrol)
  2962. {
  2963. int idx = 0, shift = 0;
  2964. struct soc_mixer_control *mc =
  2965. (struct soc_mixer_control *)kcontrol->private_value;
  2966. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2967. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2968. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2969. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2970. return -EINVAL;
  2971. }
  2972. if (test_bit(shift,
  2973. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2974. ucontrol->value.integer.value[0] = 1;
  2975. else
  2976. ucontrol->value.integer.value[0] = 0;
  2977. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2978. ucontrol->value.integer.value[0]);
  2979. return 0;
  2980. }
  2981. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2982. struct snd_ctl_elem_value *ucontrol)
  2983. {
  2984. int idx = 0, shift = 0;
  2985. struct soc_mixer_control *mc =
  2986. (struct soc_mixer_control *)kcontrol->private_value;
  2987. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2988. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2989. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2990. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2991. return -EINVAL;
  2992. }
  2993. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2994. __func__, mc->shift, mc->rshift,
  2995. ucontrol->value.integer.value[0], idx, shift);
  2996. if (ucontrol->value.integer.value[0]) {
  2997. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2998. msm_bedais[mc->rshift].port_id);
  2999. set_bit(shift,
  3000. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3001. } else {
  3002. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3003. msm_bedais[mc->rshift].port_id);
  3004. clear_bit(shift,
  3005. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3006. }
  3007. return 1;
  3008. }
  3009. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3010. struct snd_ctl_elem_value *ucontrol)
  3011. {
  3012. u16 fe_id = 0;
  3013. fe_id = ((struct soc_mixer_control *)
  3014. kcontrol->private_value)->shift;
  3015. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3016. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3017. return -EINVAL;
  3018. }
  3019. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3020. return 0;
  3021. }
  3022. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3023. struct snd_ctl_elem_value *ucontrol)
  3024. {
  3025. u16 fe_id = 0;
  3026. fe_id = ((struct soc_mixer_control *)
  3027. kcontrol->private_value)->shift;
  3028. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3029. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3030. return -EINVAL;
  3031. }
  3032. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3033. return 1;
  3034. }
  3035. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3036. struct snd_ctl_elem_value *ucontrol)
  3037. {
  3038. u16 fe_id = 0;
  3039. fe_id = ((struct soc_multi_mixer_control *)
  3040. kcontrol->private_value)->shift;
  3041. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3042. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3043. return -EINVAL;
  3044. }
  3045. ucontrol->value.integer.value[0] =
  3046. channel_mixer[fe_id].output_channel;
  3047. return 0;
  3048. }
  3049. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3050. struct snd_ctl_elem_value *ucontrol)
  3051. {
  3052. u16 fe_id = 0;
  3053. fe_id = ((struct soc_multi_mixer_control *)
  3054. kcontrol->private_value)->shift;
  3055. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3056. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3057. return -EINVAL;
  3058. }
  3059. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3060. fe_id,
  3061. (unsigned int)(ucontrol->value.integer.value[0]));
  3062. channel_mixer[fe_id].output_channel =
  3063. (unsigned int)(ucontrol->value.integer.value[0]);
  3064. return 1;
  3065. }
  3066. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3067. /* If new backend is added, need update this array */
  3068. static const char *const be_name[] = {
  3069. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3070. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3071. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3072. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3073. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3074. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3075. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3076. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3077. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3078. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3079. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3080. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3081. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3082. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3083. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3084. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3085. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3086. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3087. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3088. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3089. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3090. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3091. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3092. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3093. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3094. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3095. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3096. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3097. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3098. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3099. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3100. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3101. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3102. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3103. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3104. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3105. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3106. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3107. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3108. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3109. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3110. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3111. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3112. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3113. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3114. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3115. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3116. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3117. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3118. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3119. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3120. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3121. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3122. "SEC_META_MI2S_RX"
  3123. };
  3124. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3125. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3126. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3127. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3128. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3129. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3130. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3131. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3132. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3133. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3134. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3135. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3136. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3137. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3138. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3139. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3140. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3141. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3142. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3143. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3144. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3145. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3146. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3147. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3148. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3149. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3150. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3151. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3152. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3153. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3154. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3155. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3156. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3157. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3158. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3159. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3160. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3161. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3162. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3163. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3164. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3165. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3166. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3167. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3168. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3169. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3170. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3171. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3172. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3173. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3174. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3175. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3176. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3177. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3178. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3179. unsigned int channels,
  3180. unsigned int items, const char *const names[])
  3181. {
  3182. if (uinfo->value.enumerated.item >= items)
  3183. uinfo->value.enumerated.item = items - 1;
  3184. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3185. sizeof(uinfo->value.enumerated.name),
  3186. "ALSA: too long item name '%s'\n",
  3187. names[uinfo->value.enumerated.item]);
  3188. strlcpy(uinfo->value.enumerated.name,
  3189. names[uinfo->value.enumerated.item],
  3190. sizeof(uinfo->value.enumerated.name));
  3191. return 0;
  3192. }
  3193. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3194. struct snd_ctl_elem_info *uinfo)
  3195. {
  3196. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3197. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3198. uinfo->count = 1;
  3199. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3200. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3201. return 0;
  3202. }
  3203. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3204. struct snd_ctl_elem_value *ucontrol)
  3205. {
  3206. u16 fe_id = 0;
  3207. fe_id = ((struct soc_enum *)
  3208. kcontrol->private_value)->shift_l;
  3209. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3210. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3211. return -EINVAL;
  3212. }
  3213. pr_debug("%s: FE %d %s\n", __func__,
  3214. fe_id,
  3215. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3216. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3217. return 0;
  3218. }
  3219. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3220. struct snd_ctl_elem_value *ucontrol)
  3221. {
  3222. u16 fe_id = 0;
  3223. fe_id = ((struct soc_enum *)
  3224. kcontrol->private_value)->shift_l;
  3225. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3226. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3227. return -EINVAL;
  3228. }
  3229. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3230. pr_debug("%s: %s FE %d\n", __func__,
  3231. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3232. fe_id);
  3233. return 0;
  3234. }
  3235. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3236. struct snd_ctl_elem_info *uinfo)
  3237. {
  3238. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3239. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3240. uinfo->count = 1;
  3241. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3242. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3243. return 0;
  3244. }
  3245. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3246. struct snd_ctl_elem_value *ucontrol)
  3247. {
  3248. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3249. u16 fe_id = 0, in_ch = 0;
  3250. fe_id = e->shift_l;
  3251. in_ch = e->shift_r;
  3252. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3253. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3254. return -EINVAL;
  3255. }
  3256. if (in_ch >= ADM_MAX_CHANNELS) {
  3257. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3258. return -EINVAL;
  3259. }
  3260. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3261. return 1;
  3262. }
  3263. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3264. struct snd_ctl_elem_value *ucontrol)
  3265. {
  3266. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3267. u16 fe_id = 0, in_ch = 0;
  3268. fe_id = e->shift_l;
  3269. in_ch = e->shift_r;
  3270. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3271. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3272. return -EINVAL;
  3273. }
  3274. if (in_ch >= ADM_MAX_CHANNELS) {
  3275. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3276. return -EINVAL;
  3277. }
  3278. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3279. return 1;
  3280. }
  3281. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3282. struct snd_ctl_elem_info *uinfo)
  3283. {
  3284. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3285. uinfo->count = ADM_MAX_CHANNELS;
  3286. uinfo->value.integer.min = 0;
  3287. uinfo->value.integer.max = WEIGHT_0_DB;
  3288. return 0;
  3289. }
  3290. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3291. struct snd_ctl_elem_value *ucontrol)
  3292. {
  3293. u16 fe_id = 0, out_ch = 0;
  3294. int i, weight;
  3295. fe_id = ((struct soc_multi_mixer_control *)
  3296. kcontrol->private_value)->shift;
  3297. out_ch = ((struct soc_multi_mixer_control *)
  3298. kcontrol->private_value)->rshift;
  3299. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3300. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3301. return -EINVAL;
  3302. }
  3303. if (out_ch >= ADM_MAX_CHANNELS) {
  3304. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3305. return -EINVAL;
  3306. }
  3307. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3308. __func__, fe_id,
  3309. ucontrol->value.integer.value[0],
  3310. ucontrol->value.integer.value[1],
  3311. ucontrol->value.integer.value[2],
  3312. ucontrol->value.integer.value[3],
  3313. ucontrol->value.integer.value[4],
  3314. ucontrol->value.integer.value[5],
  3315. ucontrol->value.integer.value[6],
  3316. ucontrol->value.integer.value[7]);
  3317. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3318. weight = ucontrol->value.integer.value[i];
  3319. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3320. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3321. __func__, fe_id, out_ch, i,
  3322. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3323. }
  3324. return 0;
  3325. }
  3326. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3327. struct snd_ctl_elem_value *ucontrol)
  3328. {
  3329. u16 fe_id = 0, out_ch = 0;
  3330. int i;
  3331. fe_id = ((struct soc_multi_mixer_control *)
  3332. kcontrol->private_value)->shift;
  3333. out_ch = ((struct soc_multi_mixer_control *)
  3334. kcontrol->private_value)->rshift;
  3335. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3336. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3337. return -EINVAL;
  3338. }
  3339. if (out_ch >= ADM_MAX_CHANNELS) {
  3340. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3341. return -EINVAL;
  3342. }
  3343. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3344. ucontrol->value.integer.value[i] =
  3345. channel_mixer[fe_id].channel_weight[out_ch][i];
  3346. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3347. __func__, fe_id,
  3348. ucontrol->value.integer.value[0],
  3349. ucontrol->value.integer.value[1],
  3350. ucontrol->value.integer.value[2],
  3351. ucontrol->value.integer.value[3],
  3352. ucontrol->value.integer.value[4],
  3353. ucontrol->value.integer.value[5],
  3354. ucontrol->value.integer.value[6],
  3355. ucontrol->value.integer.value[7]);
  3356. return 0;
  3357. }
  3358. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3359. struct snd_ctl_elem_info *uinfo)
  3360. {
  3361. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3362. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3363. /* Valid channel map value ranges from 1 to 64 */
  3364. uinfo->value.integer.min = 0;
  3365. uinfo->value.integer.max = 64;
  3366. return 0;
  3367. }
  3368. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3369. struct snd_ctl_elem_value *ucontrol)
  3370. {
  3371. u16 fe_id = 0;
  3372. int i, ch_map;
  3373. fe_id = ((struct soc_multi_mixer_control *)
  3374. kcontrol->private_value)->shift;
  3375. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3376. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3377. return -EINVAL;
  3378. }
  3379. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3380. ch_map = ucontrol->value.integer.value[i];
  3381. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3382. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3383. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3384. }
  3385. /* Make override_out_ch_map false if ch map is reset */
  3386. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3387. channel_mixer[fe_id].override_out_ch_map = false;
  3388. else
  3389. channel_mixer[fe_id].override_out_ch_map = true;
  3390. return 0;
  3391. }
  3392. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3393. struct snd_ctl_elem_value *ucontrol)
  3394. {
  3395. u16 fe_id = 0;
  3396. int i;
  3397. fe_id = ((struct soc_multi_mixer_control *)
  3398. kcontrol->private_value)->shift;
  3399. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3400. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3401. return -EINVAL;
  3402. }
  3403. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3404. ucontrol->value.integer.value[i] =
  3405. channel_mixer[fe_id].out_ch_map[i];
  3406. return 0;
  3407. }
  3408. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3409. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3410. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3411. msm_pcm_get_channel_rule_index,
  3412. msm_pcm_put_channel_rule_index),
  3413. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3414. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3415. msm_pcm_get_channel_rule_index,
  3416. msm_pcm_put_channel_rule_index),
  3417. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3418. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3419. msm_pcm_get_channel_rule_index,
  3420. msm_pcm_put_channel_rule_index),
  3421. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3422. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3423. msm_pcm_get_channel_rule_index,
  3424. msm_pcm_put_channel_rule_index),
  3425. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3426. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3427. msm_pcm_get_channel_rule_index,
  3428. msm_pcm_put_channel_rule_index),
  3429. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3430. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3431. msm_pcm_get_channel_rule_index,
  3432. msm_pcm_put_channel_rule_index),
  3433. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3434. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3435. msm_pcm_get_channel_rule_index,
  3436. msm_pcm_put_channel_rule_index),
  3437. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3438. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3439. msm_pcm_get_channel_rule_index,
  3440. msm_pcm_put_channel_rule_index),
  3441. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3442. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3443. msm_pcm_get_channel_rule_index,
  3444. msm_pcm_put_channel_rule_index),
  3445. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3446. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3447. msm_pcm_get_channel_rule_index,
  3448. msm_pcm_put_channel_rule_index),
  3449. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3450. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3451. msm_pcm_get_channel_rule_index,
  3452. msm_pcm_put_channel_rule_index),
  3453. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3454. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3455. msm_pcm_get_out_chs,
  3456. msm_pcm_put_out_chs),
  3457. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3459. msm_pcm_get_out_chs,
  3460. msm_pcm_put_out_chs),
  3461. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3462. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3463. msm_pcm_get_out_chs,
  3464. msm_pcm_put_out_chs),
  3465. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3466. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3467. msm_pcm_get_out_chs,
  3468. msm_pcm_put_out_chs),
  3469. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3470. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3471. msm_pcm_get_out_chs,
  3472. msm_pcm_put_out_chs),
  3473. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3474. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3475. msm_pcm_get_out_chs,
  3476. msm_pcm_put_out_chs),
  3477. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3478. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3479. msm_pcm_get_out_chs,
  3480. msm_pcm_put_out_chs),
  3481. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3482. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3483. msm_pcm_get_out_chs,
  3484. msm_pcm_put_out_chs),
  3485. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3486. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3487. msm_pcm_get_out_chs,
  3488. msm_pcm_put_out_chs),
  3489. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3490. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3491. msm_pcm_get_out_chs,
  3492. msm_pcm_put_out_chs),
  3493. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3494. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3495. msm_pcm_get_out_chs,
  3496. msm_pcm_put_out_chs),
  3497. {
  3498. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3499. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3500. .name = "MultiMedia1 Channel Mixer",
  3501. .info = msm_pcm_channel_mixer_info,
  3502. .get = msm_pcm_channel_mixer_get,
  3503. .put = msm_pcm_channel_mixer_put,
  3504. .private_value = (unsigned long)&(mm1_channel_mux)
  3505. },
  3506. {
  3507. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3508. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3509. .name = "MultiMedia2 Channel Mixer",
  3510. .info = msm_pcm_channel_mixer_info,
  3511. .get = msm_pcm_channel_mixer_get,
  3512. .put = msm_pcm_channel_mixer_put,
  3513. .private_value = (unsigned long)&(mm2_channel_mux)
  3514. },
  3515. {
  3516. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3517. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3518. .name = "MultiMedia3 Channel Mixer",
  3519. .info = msm_pcm_channel_mixer_info,
  3520. .get = msm_pcm_channel_mixer_get,
  3521. .put = msm_pcm_channel_mixer_put,
  3522. .private_value = (unsigned long)&(mm3_channel_mux)
  3523. },
  3524. {
  3525. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3526. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3527. .name = "MultiMedia4 Channel Mixer",
  3528. .info = msm_pcm_channel_mixer_info,
  3529. .get = msm_pcm_channel_mixer_get,
  3530. .put = msm_pcm_channel_mixer_put,
  3531. .private_value = (unsigned long)&(mm4_channel_mux)
  3532. },
  3533. {
  3534. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3535. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3536. .name = "MultiMedia18 Channel Mixer",
  3537. .info = msm_pcm_channel_mixer_info,
  3538. .get = msm_pcm_channel_mixer_get,
  3539. .put = msm_pcm_channel_mixer_put,
  3540. .private_value = (unsigned long)&(mm18_channel_mux)
  3541. },
  3542. {
  3543. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3544. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3545. .name = "MultiMedia19 Channel Mixer",
  3546. .info = msm_pcm_channel_mixer_info,
  3547. .get = msm_pcm_channel_mixer_get,
  3548. .put = msm_pcm_channel_mixer_put,
  3549. .private_value = (unsigned long)&(mm19_channel_mux)
  3550. },
  3551. {
  3552. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3553. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3554. .name = "MultiMedia28 Channel Mixer",
  3555. .info = msm_pcm_channel_mixer_info,
  3556. .get = msm_pcm_channel_mixer_get,
  3557. .put = msm_pcm_channel_mixer_put,
  3558. .private_value = (unsigned long)&(mm28_channel_mux)
  3559. },
  3560. {
  3561. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3562. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3563. .name = "MultiMedia29 Channel Mixer",
  3564. .info = msm_pcm_channel_mixer_info,
  3565. .get = msm_pcm_channel_mixer_get,
  3566. .put = msm_pcm_channel_mixer_put,
  3567. .private_value = (unsigned long)&(mm29_channel_mux)
  3568. },
  3569. {
  3570. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3571. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3572. .name = "MultiMedia30 Channel Mixer",
  3573. .info = msm_pcm_channel_mixer_info,
  3574. .get = msm_pcm_channel_mixer_get,
  3575. .put = msm_pcm_channel_mixer_put,
  3576. .private_value = (unsigned long)&(mm30_channel_mux)
  3577. },
  3578. {
  3579. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3580. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3581. .name = "MultiMedia1 Output Channel1",
  3582. .info = msm_pcm_channel_weight_info,
  3583. .get = msm_pcm_channel_weight_get,
  3584. .put = msm_pcm_channel_weight_put,
  3585. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3586. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3587. },
  3588. {
  3589. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3590. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3591. .name = "MultiMedia1 Output Channel2",
  3592. .info = msm_pcm_channel_weight_info,
  3593. .get = msm_pcm_channel_weight_get,
  3594. .put = msm_pcm_channel_weight_put,
  3595. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3596. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3597. },
  3598. {
  3599. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3600. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3601. .name = "MultiMedia1 Output Channel3",
  3602. .info = msm_pcm_channel_weight_info,
  3603. .get = msm_pcm_channel_weight_get,
  3604. .put = msm_pcm_channel_weight_put,
  3605. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3606. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3607. },
  3608. {
  3609. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3610. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3611. .name = "MultiMedia1 Output Channel4",
  3612. .info = msm_pcm_channel_weight_info,
  3613. .get = msm_pcm_channel_weight_get,
  3614. .put = msm_pcm_channel_weight_put,
  3615. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3616. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3617. },
  3618. {
  3619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3621. .name = "MultiMedia1 Output Channel5",
  3622. .info = msm_pcm_channel_weight_info,
  3623. .get = msm_pcm_channel_weight_get,
  3624. .put = msm_pcm_channel_weight_put,
  3625. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3626. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3627. },
  3628. {
  3629. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3630. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3631. .name = "MultiMedia1 Output Channel6",
  3632. .info = msm_pcm_channel_weight_info,
  3633. .get = msm_pcm_channel_weight_get,
  3634. .put = msm_pcm_channel_weight_put,
  3635. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3636. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3637. },
  3638. {
  3639. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3641. .name = "MultiMedia1 Output Channel7",
  3642. .info = msm_pcm_channel_weight_info,
  3643. .get = msm_pcm_channel_weight_get,
  3644. .put = msm_pcm_channel_weight_put,
  3645. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3646. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3647. },
  3648. {
  3649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3650. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3651. .name = "MultiMedia1 Output Channel8",
  3652. .info = msm_pcm_channel_weight_info,
  3653. .get = msm_pcm_channel_weight_get,
  3654. .put = msm_pcm_channel_weight_put,
  3655. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3656. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3657. },
  3658. {
  3659. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3660. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3661. .name = "MultiMedia1 Output Channel9",
  3662. .info = msm_pcm_channel_weight_info,
  3663. .get = msm_pcm_channel_weight_get,
  3664. .put = msm_pcm_channel_weight_put,
  3665. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3666. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3667. },
  3668. {
  3669. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3670. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3671. .name = "MultiMedia1 Output Channel10",
  3672. .info = msm_pcm_channel_weight_info,
  3673. .get = msm_pcm_channel_weight_get,
  3674. .put = msm_pcm_channel_weight_put,
  3675. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3676. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3677. },
  3678. {
  3679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3680. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3681. .name = "MultiMedia1 Output Channel11",
  3682. .info = msm_pcm_channel_weight_info,
  3683. .get = msm_pcm_channel_weight_get,
  3684. .put = msm_pcm_channel_weight_put,
  3685. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3686. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3687. },
  3688. {
  3689. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3690. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3691. .name = "MultiMedia1 Output Channel12",
  3692. .info = msm_pcm_channel_weight_info,
  3693. .get = msm_pcm_channel_weight_get,
  3694. .put = msm_pcm_channel_weight_put,
  3695. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3696. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3697. },
  3698. {
  3699. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3700. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3701. .name = "MultiMedia1 Output Channel13",
  3702. .info = msm_pcm_channel_weight_info,
  3703. .get = msm_pcm_channel_weight_get,
  3704. .put = msm_pcm_channel_weight_put,
  3705. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3706. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3707. },
  3708. {
  3709. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3710. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3711. .name = "MultiMedia1 Output Channel14",
  3712. .info = msm_pcm_channel_weight_info,
  3713. .get = msm_pcm_channel_weight_get,
  3714. .put = msm_pcm_channel_weight_put,
  3715. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3716. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3717. },
  3718. {
  3719. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3720. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3721. .name = "MultiMedia2 Output Channel1",
  3722. .info = msm_pcm_channel_weight_info,
  3723. .get = msm_pcm_channel_weight_get,
  3724. .put = msm_pcm_channel_weight_put,
  3725. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3726. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3727. },
  3728. {
  3729. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3730. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3731. .name = "MultiMedia2 Output Channel2",
  3732. .info = msm_pcm_channel_weight_info,
  3733. .get = msm_pcm_channel_weight_get,
  3734. .put = msm_pcm_channel_weight_put,
  3735. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3736. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3737. },
  3738. {
  3739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3740. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3741. .name = "MultiMedia2 Output Channel3",
  3742. .info = msm_pcm_channel_weight_info,
  3743. .get = msm_pcm_channel_weight_get,
  3744. .put = msm_pcm_channel_weight_put,
  3745. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3746. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3747. },
  3748. {
  3749. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3750. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3751. .name = "MultiMedia3 Output Channel1",
  3752. .info = msm_pcm_channel_weight_info,
  3753. .get = msm_pcm_channel_weight_get,
  3754. .put = msm_pcm_channel_weight_put,
  3755. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3756. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3757. },
  3758. {
  3759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3761. .name = "MultiMedia3 Output Channel2",
  3762. .info = msm_pcm_channel_weight_info,
  3763. .get = msm_pcm_channel_weight_get,
  3764. .put = msm_pcm_channel_weight_put,
  3765. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3766. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3767. },
  3768. {
  3769. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3770. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3771. .name = "MultiMedia18 Output Channel1",
  3772. .info = msm_pcm_channel_weight_info,
  3773. .get = msm_pcm_channel_weight_get,
  3774. .put = msm_pcm_channel_weight_put,
  3775. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3776. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3777. },
  3778. {
  3779. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3780. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3781. .name = "MultiMedia18 Output Channel2",
  3782. .info = msm_pcm_channel_weight_info,
  3783. .get = msm_pcm_channel_weight_get,
  3784. .put = msm_pcm_channel_weight_put,
  3785. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3786. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3787. },
  3788. {
  3789. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3790. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3791. .name = "MultiMedia18 Output Channel3",
  3792. .info = msm_pcm_channel_weight_info,
  3793. .get = msm_pcm_channel_weight_get,
  3794. .put = msm_pcm_channel_weight_put,
  3795. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3796. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3797. },
  3798. {
  3799. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3800. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3801. .name = "MultiMedia18 Output Channel4",
  3802. .info = msm_pcm_channel_weight_info,
  3803. .get = msm_pcm_channel_weight_get,
  3804. .put = msm_pcm_channel_weight_put,
  3805. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3806. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3807. },
  3808. {
  3809. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3810. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3811. .name = "MultiMedia18 Output Channel5",
  3812. .info = msm_pcm_channel_weight_info,
  3813. .get = msm_pcm_channel_weight_get,
  3814. .put = msm_pcm_channel_weight_put,
  3815. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3816. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3817. },
  3818. {
  3819. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3820. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3821. .name = "MultiMedia18 Output Channel6",
  3822. .info = msm_pcm_channel_weight_info,
  3823. .get = msm_pcm_channel_weight_get,
  3824. .put = msm_pcm_channel_weight_put,
  3825. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3826. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3827. },
  3828. {
  3829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3830. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3831. .name = "MultiMedia18 Output Channel7",
  3832. .info = msm_pcm_channel_weight_info,
  3833. .get = msm_pcm_channel_weight_get,
  3834. .put = msm_pcm_channel_weight_put,
  3835. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3836. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3837. },
  3838. {
  3839. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3840. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3841. .name = "MultiMedia18 Output Channel8",
  3842. .info = msm_pcm_channel_weight_info,
  3843. .get = msm_pcm_channel_weight_get,
  3844. .put = msm_pcm_channel_weight_put,
  3845. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3846. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3847. },
  3848. {
  3849. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3850. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3851. .name = "MultiMedia18 Output Channel9",
  3852. .info = msm_pcm_channel_weight_info,
  3853. .get = msm_pcm_channel_weight_get,
  3854. .put = msm_pcm_channel_weight_put,
  3855. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3856. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3857. },
  3858. {
  3859. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3860. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3861. .name = "MultiMedia18 Output Channel10",
  3862. .info = msm_pcm_channel_weight_info,
  3863. .get = msm_pcm_channel_weight_get,
  3864. .put = msm_pcm_channel_weight_put,
  3865. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3866. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3867. },
  3868. {
  3869. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3870. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3871. .name = "MultiMedia18 Output Channel11",
  3872. .info = msm_pcm_channel_weight_info,
  3873. .get = msm_pcm_channel_weight_get,
  3874. .put = msm_pcm_channel_weight_put,
  3875. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3876. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3877. },
  3878. {
  3879. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3880. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3881. .name = "MultiMedia18 Output Channel12",
  3882. .info = msm_pcm_channel_weight_info,
  3883. .get = msm_pcm_channel_weight_get,
  3884. .put = msm_pcm_channel_weight_put,
  3885. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3886. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3887. },
  3888. {
  3889. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3890. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3891. .name = "MultiMedia18 Output Channel13",
  3892. .info = msm_pcm_channel_weight_info,
  3893. .get = msm_pcm_channel_weight_get,
  3894. .put = msm_pcm_channel_weight_put,
  3895. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3896. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3897. },
  3898. {
  3899. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3900. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3901. .name = "MultiMedia18 Output Channel14",
  3902. .info = msm_pcm_channel_weight_info,
  3903. .get = msm_pcm_channel_weight_get,
  3904. .put = msm_pcm_channel_weight_put,
  3905. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3906. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3907. },
  3908. {
  3909. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3910. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3911. .name = "MultiMedia19 Output Channel1",
  3912. .info = msm_pcm_channel_weight_info,
  3913. .get = msm_pcm_channel_weight_get,
  3914. .put = msm_pcm_channel_weight_put,
  3915. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3916. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3917. },
  3918. {
  3919. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3920. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3921. .name = "MultiMedia19 Output Channel2",
  3922. .info = msm_pcm_channel_weight_info,
  3923. .get = msm_pcm_channel_weight_get,
  3924. .put = msm_pcm_channel_weight_put,
  3925. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3926. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3927. },
  3928. {
  3929. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3930. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3931. .name = "MultiMedia19 Output Channel3",
  3932. .info = msm_pcm_channel_weight_info,
  3933. .get = msm_pcm_channel_weight_get,
  3934. .put = msm_pcm_channel_weight_put,
  3935. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3936. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3937. },
  3938. {
  3939. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3940. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3941. .name = "MultiMedia19 Output Channel4",
  3942. .info = msm_pcm_channel_weight_info,
  3943. .get = msm_pcm_channel_weight_get,
  3944. .put = msm_pcm_channel_weight_put,
  3945. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3946. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3947. },
  3948. {
  3949. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3950. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3951. .name = "MultiMedia19 Output Channel5",
  3952. .info = msm_pcm_channel_weight_info,
  3953. .get = msm_pcm_channel_weight_get,
  3954. .put = msm_pcm_channel_weight_put,
  3955. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3956. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3957. },
  3958. {
  3959. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3960. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3961. .name = "MultiMedia19 Output Channel6",
  3962. .info = msm_pcm_channel_weight_info,
  3963. .get = msm_pcm_channel_weight_get,
  3964. .put = msm_pcm_channel_weight_put,
  3965. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3966. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  3967. },
  3968. {
  3969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3970. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3971. .name = "MultiMedia19 Output Channel7",
  3972. .info = msm_pcm_channel_weight_info,
  3973. .get = msm_pcm_channel_weight_get,
  3974. .put = msm_pcm_channel_weight_put,
  3975. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3976. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  3977. },
  3978. {
  3979. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3980. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3981. .name = "MultiMedia19 Output Channel8",
  3982. .info = msm_pcm_channel_weight_info,
  3983. .get = msm_pcm_channel_weight_get,
  3984. .put = msm_pcm_channel_weight_put,
  3985. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3986. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  3987. },
  3988. {
  3989. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3990. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3991. .name = "MultiMedia19 Output Channel9",
  3992. .info = msm_pcm_channel_weight_info,
  3993. .get = msm_pcm_channel_weight_get,
  3994. .put = msm_pcm_channel_weight_put,
  3995. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3996. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  3997. },
  3998. {
  3999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4000. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4001. .name = "MultiMedia19 Output Channel10",
  4002. .info = msm_pcm_channel_weight_info,
  4003. .get = msm_pcm_channel_weight_get,
  4004. .put = msm_pcm_channel_weight_put,
  4005. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4006. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4007. },
  4008. {
  4009. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4010. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4011. .name = "MultiMedia19 Output Channel11",
  4012. .info = msm_pcm_channel_weight_info,
  4013. .get = msm_pcm_channel_weight_get,
  4014. .put = msm_pcm_channel_weight_put,
  4015. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4016. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4017. },
  4018. {
  4019. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4021. .name = "MultiMedia19 Output Channel12",
  4022. .info = msm_pcm_channel_weight_info,
  4023. .get = msm_pcm_channel_weight_get,
  4024. .put = msm_pcm_channel_weight_put,
  4025. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4026. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4027. },
  4028. {
  4029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4030. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4031. .name = "MultiMedia19 Output Channel13",
  4032. .info = msm_pcm_channel_weight_info,
  4033. .get = msm_pcm_channel_weight_get,
  4034. .put = msm_pcm_channel_weight_put,
  4035. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4036. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4037. },
  4038. {
  4039. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4040. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4041. .name = "MultiMedia19 Output Channel14",
  4042. .info = msm_pcm_channel_weight_info,
  4043. .get = msm_pcm_channel_weight_get,
  4044. .put = msm_pcm_channel_weight_put,
  4045. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4046. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4047. },
  4048. {
  4049. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4050. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4051. .name = "MultiMedia28 Output Channel1",
  4052. .info = msm_pcm_channel_weight_info,
  4053. .get = msm_pcm_channel_weight_get,
  4054. .put = msm_pcm_channel_weight_put,
  4055. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4056. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4057. },
  4058. {
  4059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4060. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4061. .name = "MultiMedia28 Output Channel2",
  4062. .info = msm_pcm_channel_weight_info,
  4063. .get = msm_pcm_channel_weight_get,
  4064. .put = msm_pcm_channel_weight_put,
  4065. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4066. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4067. },
  4068. {
  4069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4071. .name = "MultiMedia28 Output Channel3",
  4072. .info = msm_pcm_channel_weight_info,
  4073. .get = msm_pcm_channel_weight_get,
  4074. .put = msm_pcm_channel_weight_put,
  4075. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4076. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4077. },
  4078. {
  4079. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4080. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4081. .name = "MultiMedia28 Output Channel4",
  4082. .info = msm_pcm_channel_weight_info,
  4083. .get = msm_pcm_channel_weight_get,
  4084. .put = msm_pcm_channel_weight_put,
  4085. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4086. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4087. },
  4088. {
  4089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4090. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4091. .name = "MultiMedia28 Output Channel5",
  4092. .info = msm_pcm_channel_weight_info,
  4093. .get = msm_pcm_channel_weight_get,
  4094. .put = msm_pcm_channel_weight_put,
  4095. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4096. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4097. },
  4098. {
  4099. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4100. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4101. .name = "MultiMedia28 Output Channel6",
  4102. .info = msm_pcm_channel_weight_info,
  4103. .get = msm_pcm_channel_weight_get,
  4104. .put = msm_pcm_channel_weight_put,
  4105. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4106. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4107. },
  4108. {
  4109. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4110. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4111. .name = "MultiMedia28 Output Channel7",
  4112. .info = msm_pcm_channel_weight_info,
  4113. .get = msm_pcm_channel_weight_get,
  4114. .put = msm_pcm_channel_weight_put,
  4115. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4116. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4117. },
  4118. {
  4119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4120. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4121. .name = "MultiMedia28 Output Channel8",
  4122. .info = msm_pcm_channel_weight_info,
  4123. .get = msm_pcm_channel_weight_get,
  4124. .put = msm_pcm_channel_weight_put,
  4125. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4126. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4127. },
  4128. {
  4129. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4130. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4131. .name = "MultiMedia28 Output Channel9",
  4132. .info = msm_pcm_channel_weight_info,
  4133. .get = msm_pcm_channel_weight_get,
  4134. .put = msm_pcm_channel_weight_put,
  4135. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4136. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4137. },
  4138. {
  4139. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4140. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4141. .name = "MultiMedia28 Output Channel10",
  4142. .info = msm_pcm_channel_weight_info,
  4143. .get = msm_pcm_channel_weight_get,
  4144. .put = msm_pcm_channel_weight_put,
  4145. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4146. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4147. },
  4148. {
  4149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4150. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4151. .name = "MultiMedia28 Output Channel11",
  4152. .info = msm_pcm_channel_weight_info,
  4153. .get = msm_pcm_channel_weight_get,
  4154. .put = msm_pcm_channel_weight_put,
  4155. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4156. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4157. },
  4158. {
  4159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4161. .name = "MultiMedia28 Output Channel12",
  4162. .info = msm_pcm_channel_weight_info,
  4163. .get = msm_pcm_channel_weight_get,
  4164. .put = msm_pcm_channel_weight_put,
  4165. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4166. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4167. },
  4168. {
  4169. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4170. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4171. .name = "MultiMedia28 Output Channel13",
  4172. .info = msm_pcm_channel_weight_info,
  4173. .get = msm_pcm_channel_weight_get,
  4174. .put = msm_pcm_channel_weight_put,
  4175. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4176. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4177. },
  4178. {
  4179. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4180. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4181. .name = "MultiMedia28 Output Channel14",
  4182. .info = msm_pcm_channel_weight_info,
  4183. .get = msm_pcm_channel_weight_get,
  4184. .put = msm_pcm_channel_weight_put,
  4185. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4186. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4187. },
  4188. {
  4189. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4190. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4191. .name = "MultiMedia29 Output Channel1",
  4192. .info = msm_pcm_channel_weight_info,
  4193. .get = msm_pcm_channel_weight_get,
  4194. .put = msm_pcm_channel_weight_put,
  4195. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4196. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4197. },
  4198. {
  4199. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4200. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4201. .name = "MultiMedia29 Output Channel2",
  4202. .info = msm_pcm_channel_weight_info,
  4203. .get = msm_pcm_channel_weight_get,
  4204. .put = msm_pcm_channel_weight_put,
  4205. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4206. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4207. },
  4208. {
  4209. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4210. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4211. .name = "MultiMedia29 Output Channel3",
  4212. .info = msm_pcm_channel_weight_info,
  4213. .get = msm_pcm_channel_weight_get,
  4214. .put = msm_pcm_channel_weight_put,
  4215. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4216. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4217. },
  4218. {
  4219. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4220. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4221. .name = "MultiMedia29 Output Channel4",
  4222. .info = msm_pcm_channel_weight_info,
  4223. .get = msm_pcm_channel_weight_get,
  4224. .put = msm_pcm_channel_weight_put,
  4225. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4226. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4227. },
  4228. {
  4229. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4230. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4231. .name = "MultiMedia29 Output Channel5",
  4232. .info = msm_pcm_channel_weight_info,
  4233. .get = msm_pcm_channel_weight_get,
  4234. .put = msm_pcm_channel_weight_put,
  4235. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4236. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4237. },
  4238. {
  4239. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4240. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4241. .name = "MultiMedia29 Output Channel6",
  4242. .info = msm_pcm_channel_weight_info,
  4243. .get = msm_pcm_channel_weight_get,
  4244. .put = msm_pcm_channel_weight_put,
  4245. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4246. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4247. },
  4248. {
  4249. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4250. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4251. .name = "MultiMedia29 Output Channel7",
  4252. .info = msm_pcm_channel_weight_info,
  4253. .get = msm_pcm_channel_weight_get,
  4254. .put = msm_pcm_channel_weight_put,
  4255. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4256. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4257. },
  4258. {
  4259. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4260. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4261. .name = "MultiMedia29 Output Channel8",
  4262. .info = msm_pcm_channel_weight_info,
  4263. .get = msm_pcm_channel_weight_get,
  4264. .put = msm_pcm_channel_weight_put,
  4265. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4266. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4267. },
  4268. {
  4269. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4270. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4271. .name = "MultiMedia29 Output Channel9",
  4272. .info = msm_pcm_channel_weight_info,
  4273. .get = msm_pcm_channel_weight_get,
  4274. .put = msm_pcm_channel_weight_put,
  4275. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4276. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4277. },
  4278. {
  4279. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4280. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4281. .name = "MultiMedia29 Output Channel10",
  4282. .info = msm_pcm_channel_weight_info,
  4283. .get = msm_pcm_channel_weight_get,
  4284. .put = msm_pcm_channel_weight_put,
  4285. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4286. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4287. },
  4288. {
  4289. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4290. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4291. .name = "MultiMedia29 Output Channel11",
  4292. .info = msm_pcm_channel_weight_info,
  4293. .get = msm_pcm_channel_weight_get,
  4294. .put = msm_pcm_channel_weight_put,
  4295. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4296. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4297. },
  4298. {
  4299. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4300. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4301. .name = "MultiMedia29 Output Channel12",
  4302. .info = msm_pcm_channel_weight_info,
  4303. .get = msm_pcm_channel_weight_get,
  4304. .put = msm_pcm_channel_weight_put,
  4305. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4306. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4307. },
  4308. {
  4309. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4310. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4311. .name = "MultiMedia29 Output Channel13",
  4312. .info = msm_pcm_channel_weight_info,
  4313. .get = msm_pcm_channel_weight_get,
  4314. .put = msm_pcm_channel_weight_put,
  4315. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4316. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4317. },
  4318. {
  4319. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4320. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4321. .name = "MultiMedia29 Output Channel14",
  4322. .info = msm_pcm_channel_weight_info,
  4323. .get = msm_pcm_channel_weight_get,
  4324. .put = msm_pcm_channel_weight_put,
  4325. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4326. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4327. },
  4328. {
  4329. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4330. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4331. .name = "MultiMedia30 Output Channel1",
  4332. .info = msm_pcm_channel_weight_info,
  4333. .get = msm_pcm_channel_weight_get,
  4334. .put = msm_pcm_channel_weight_put,
  4335. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4336. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4337. },
  4338. {
  4339. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4340. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4341. .name = "MultiMedia30 Output Channel2",
  4342. .info = msm_pcm_channel_weight_info,
  4343. .get = msm_pcm_channel_weight_get,
  4344. .put = msm_pcm_channel_weight_put,
  4345. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4346. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4347. },
  4348. {
  4349. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4350. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4351. .name = "MultiMedia30 Output Channel3",
  4352. .info = msm_pcm_channel_weight_info,
  4353. .get = msm_pcm_channel_weight_get,
  4354. .put = msm_pcm_channel_weight_put,
  4355. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4356. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4357. },
  4358. {
  4359. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4360. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4361. .name = "MultiMedia30 Output Channel4",
  4362. .info = msm_pcm_channel_weight_info,
  4363. .get = msm_pcm_channel_weight_get,
  4364. .put = msm_pcm_channel_weight_put,
  4365. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4366. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4367. },
  4368. {
  4369. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4370. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4371. .name = "MultiMedia30 Output Channel5",
  4372. .info = msm_pcm_channel_weight_info,
  4373. .get = msm_pcm_channel_weight_get,
  4374. .put = msm_pcm_channel_weight_put,
  4375. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4376. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4377. },
  4378. {
  4379. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4381. .name = "MultiMedia30 Output Channel6",
  4382. .info = msm_pcm_channel_weight_info,
  4383. .get = msm_pcm_channel_weight_get,
  4384. .put = msm_pcm_channel_weight_put,
  4385. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4386. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4387. },
  4388. {
  4389. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4390. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4391. .name = "MultiMedia30 Output Channel7",
  4392. .info = msm_pcm_channel_weight_info,
  4393. .get = msm_pcm_channel_weight_get,
  4394. .put = msm_pcm_channel_weight_put,
  4395. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4396. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4397. },
  4398. {
  4399. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4400. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4401. .name = "MultiMedia30 Output Channel8",
  4402. .info = msm_pcm_channel_weight_info,
  4403. .get = msm_pcm_channel_weight_get,
  4404. .put = msm_pcm_channel_weight_put,
  4405. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4406. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4407. },
  4408. {
  4409. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4410. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4411. .name = "MultiMedia30 Output Channel9",
  4412. .info = msm_pcm_channel_weight_info,
  4413. .get = msm_pcm_channel_weight_get,
  4414. .put = msm_pcm_channel_weight_put,
  4415. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4416. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4417. },
  4418. {
  4419. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4420. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4421. .name = "MultiMedia30 Output Channel10",
  4422. .info = msm_pcm_channel_weight_info,
  4423. .get = msm_pcm_channel_weight_get,
  4424. .put = msm_pcm_channel_weight_put,
  4425. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4426. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4427. },
  4428. {
  4429. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4430. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4431. .name = "MultiMedia30 Output Channel11",
  4432. .info = msm_pcm_channel_weight_info,
  4433. .get = msm_pcm_channel_weight_get,
  4434. .put = msm_pcm_channel_weight_put,
  4435. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4436. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4437. },
  4438. {
  4439. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4440. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4441. .name = "MultiMedia30 Output Channel12",
  4442. .info = msm_pcm_channel_weight_info,
  4443. .get = msm_pcm_channel_weight_get,
  4444. .put = msm_pcm_channel_weight_put,
  4445. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4446. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4447. },
  4448. {
  4449. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4450. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4451. .name = "MultiMedia30 Output Channel13",
  4452. .info = msm_pcm_channel_weight_info,
  4453. .get = msm_pcm_channel_weight_get,
  4454. .put = msm_pcm_channel_weight_put,
  4455. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4456. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4457. },
  4458. {
  4459. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4460. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4461. .name = "MultiMedia30 Output Channel14",
  4462. .info = msm_pcm_channel_weight_info,
  4463. .get = msm_pcm_channel_weight_get,
  4464. .put = msm_pcm_channel_weight_put,
  4465. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4466. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4467. },
  4468. {
  4469. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4470. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4471. .name = "MultiMedia1 Channel1",
  4472. .info = msm_pcm_channel_input_be_info,
  4473. .get = msm_pcm_channel_input_be_get,
  4474. .put = msm_pcm_channel_input_be_put,
  4475. .private_value = (unsigned long)&(mm1_ch1_enum)
  4476. },
  4477. {
  4478. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4479. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4480. .name = "MultiMedia1 Channel2",
  4481. .info = msm_pcm_channel_input_be_info,
  4482. .get = msm_pcm_channel_input_be_get,
  4483. .put = msm_pcm_channel_input_be_put,
  4484. .private_value = (unsigned long)&(mm1_ch2_enum)
  4485. },
  4486. {
  4487. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4488. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4489. .name = "MultiMedia1 Channel3",
  4490. .info = msm_pcm_channel_input_be_info,
  4491. .get = msm_pcm_channel_input_be_get,
  4492. .put = msm_pcm_channel_input_be_put,
  4493. .private_value = (unsigned long)&(mm1_ch3_enum)
  4494. },
  4495. {
  4496. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4497. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4498. .name = "MultiMedia1 Channel4",
  4499. .info = msm_pcm_channel_input_be_info,
  4500. .get = msm_pcm_channel_input_be_get,
  4501. .put = msm_pcm_channel_input_be_put,
  4502. .private_value = (unsigned long)&(mm1_ch4_enum)
  4503. },
  4504. {
  4505. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4506. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4507. .name = "MultiMedia1 Channel5",
  4508. .info = msm_pcm_channel_input_be_info,
  4509. .get = msm_pcm_channel_input_be_get,
  4510. .put = msm_pcm_channel_input_be_put,
  4511. .private_value = (unsigned long)&(mm1_ch5_enum)
  4512. },
  4513. {
  4514. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4515. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4516. .name = "MultiMedia1 Channel6",
  4517. .info = msm_pcm_channel_input_be_info,
  4518. .get = msm_pcm_channel_input_be_get,
  4519. .put = msm_pcm_channel_input_be_put,
  4520. .private_value = (unsigned long)&(mm1_ch6_enum)
  4521. },
  4522. {
  4523. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4524. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4525. .name = "MultiMedia1 Channel7",
  4526. .info = msm_pcm_channel_input_be_info,
  4527. .get = msm_pcm_channel_input_be_get,
  4528. .put = msm_pcm_channel_input_be_put,
  4529. .private_value = (unsigned long)&(mm1_ch7_enum)
  4530. },
  4531. {
  4532. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4533. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4534. .name = "MultiMedia1 Channel8",
  4535. .info = msm_pcm_channel_input_be_info,
  4536. .get = msm_pcm_channel_input_be_get,
  4537. .put = msm_pcm_channel_input_be_put,
  4538. .private_value = (unsigned long)&(mm1_ch8_enum)
  4539. },
  4540. {
  4541. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4542. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4543. .name = "MultiMedia18 Channel1",
  4544. .info = msm_pcm_channel_input_be_info,
  4545. .get = msm_pcm_channel_input_be_get,
  4546. .put = msm_pcm_channel_input_be_put,
  4547. .private_value = (unsigned long)&(mm18_ch1_enum)
  4548. },
  4549. {
  4550. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4551. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4552. .name = "MultiMedia18 Channel2",
  4553. .info = msm_pcm_channel_input_be_info,
  4554. .get = msm_pcm_channel_input_be_get,
  4555. .put = msm_pcm_channel_input_be_put,
  4556. .private_value = (unsigned long)&(mm18_ch2_enum)
  4557. },
  4558. {
  4559. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4560. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4561. .name = "MultiMedia19 Channel1",
  4562. .info = msm_pcm_channel_input_be_info,
  4563. .get = msm_pcm_channel_input_be_get,
  4564. .put = msm_pcm_channel_input_be_put,
  4565. .private_value = (unsigned long)&(mm19_ch1_enum)
  4566. },
  4567. {
  4568. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4569. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4570. .name = "MultiMedia19 Channel2",
  4571. .info = msm_pcm_channel_input_be_info,
  4572. .get = msm_pcm_channel_input_be_get,
  4573. .put = msm_pcm_channel_input_be_put,
  4574. .private_value = (unsigned long)&(mm19_ch2_enum)
  4575. },
  4576. {
  4577. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4578. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4579. .name = "MultiMedia28 Channel1",
  4580. .info = msm_pcm_channel_input_be_info,
  4581. .get = msm_pcm_channel_input_be_get,
  4582. .put = msm_pcm_channel_input_be_put,
  4583. .private_value = (unsigned long)&(mm28_ch1_enum)
  4584. },
  4585. {
  4586. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4587. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4588. .name = "MultiMedia28 Channel2",
  4589. .info = msm_pcm_channel_input_be_info,
  4590. .get = msm_pcm_channel_input_be_get,
  4591. .put = msm_pcm_channel_input_be_put,
  4592. .private_value = (unsigned long)&(mm28_ch2_enum)
  4593. },
  4594. {
  4595. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4596. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4597. .name = "MultiMedia29 Channel1",
  4598. .info = msm_pcm_channel_input_be_info,
  4599. .get = msm_pcm_channel_input_be_get,
  4600. .put = msm_pcm_channel_input_be_put,
  4601. .private_value = (unsigned long)&(mm29_ch1_enum)
  4602. },
  4603. {
  4604. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4605. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4606. .name = "MultiMedia29 Channel2",
  4607. .info = msm_pcm_channel_input_be_info,
  4608. .get = msm_pcm_channel_input_be_get,
  4609. .put = msm_pcm_channel_input_be_put,
  4610. .private_value = (unsigned long)&(mm29_ch2_enum)
  4611. },
  4612. {
  4613. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4614. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4615. .name = "MultiMedia30 Channel1",
  4616. .info = msm_pcm_channel_input_be_info,
  4617. .get = msm_pcm_channel_input_be_get,
  4618. .put = msm_pcm_channel_input_be_put,
  4619. .private_value = (unsigned long)&(mm30_ch1_enum)
  4620. },
  4621. {
  4622. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4623. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4624. .name = "MultiMedia30 Channel2",
  4625. .info = msm_pcm_channel_input_be_info,
  4626. .get = msm_pcm_channel_input_be_get,
  4627. .put = msm_pcm_channel_input_be_put,
  4628. .private_value = (unsigned long)&(mm30_ch2_enum)
  4629. },
  4630. {
  4631. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4632. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4633. .name = "MultiMedia1 Output Channel Map",
  4634. .info = msm_pcm_channel_output_map_info,
  4635. .get = msm_pcm_channel_output_map_get,
  4636. .put = msm_pcm_channel_output_map_put,
  4637. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4638. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4639. },
  4640. {
  4641. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4642. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4643. .name = "MultiMedia2 Output Channel Map",
  4644. .info = msm_pcm_channel_output_map_info,
  4645. .get = msm_pcm_channel_output_map_get,
  4646. .put = msm_pcm_channel_output_map_put,
  4647. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4648. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4649. },
  4650. {
  4651. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4652. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4653. .name = "MultiMedia3 Output Channel Map",
  4654. .info = msm_pcm_channel_output_map_info,
  4655. .get = msm_pcm_channel_output_map_get,
  4656. .put = msm_pcm_channel_output_map_put,
  4657. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4658. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4659. },
  4660. {
  4661. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4662. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4663. .name = "MultiMedia4 Output Channel Map",
  4664. .info = msm_pcm_channel_output_map_info,
  4665. .get = msm_pcm_channel_output_map_get,
  4666. .put = msm_pcm_channel_output_map_put,
  4667. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4668. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4669. },
  4670. {
  4671. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4672. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4673. .name = "MultiMedia5 Output Channel Map",
  4674. .info = msm_pcm_channel_output_map_info,
  4675. .get = msm_pcm_channel_output_map_get,
  4676. .put = msm_pcm_channel_output_map_put,
  4677. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4678. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4679. },
  4680. {
  4681. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4682. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4683. .name = "MultiMedia6 Output Channel Map",
  4684. .info = msm_pcm_channel_output_map_info,
  4685. .get = msm_pcm_channel_output_map_get,
  4686. .put = msm_pcm_channel_output_map_put,
  4687. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4688. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4689. },
  4690. {
  4691. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4692. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4693. .name = "MultiMedia18 Output Channel Map",
  4694. .info = msm_pcm_channel_output_map_info,
  4695. .get = msm_pcm_channel_output_map_get,
  4696. .put = msm_pcm_channel_output_map_put,
  4697. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4698. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4699. },
  4700. {
  4701. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4702. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4703. .name = "MultiMedia19 Output Channel Map",
  4704. .info = msm_pcm_channel_output_map_info,
  4705. .get = msm_pcm_channel_output_map_get,
  4706. .put = msm_pcm_channel_output_map_put,
  4707. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4708. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4709. },
  4710. {
  4711. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4712. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4713. .name = "MultiMedia28 Output Channel Map",
  4714. .info = msm_pcm_channel_output_map_info,
  4715. .get = msm_pcm_channel_output_map_get,
  4716. .put = msm_pcm_channel_output_map_put,
  4717. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4718. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4719. },
  4720. {
  4721. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4722. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4723. .name = "MultiMedia29 Output Channel Map",
  4724. .info = msm_pcm_channel_output_map_info,
  4725. .get = msm_pcm_channel_output_map_get,
  4726. .put = msm_pcm_channel_output_map_put,
  4727. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4728. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4729. },
  4730. {
  4731. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4732. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4733. .name = "MultiMedia30 Output Channel Map",
  4734. .info = msm_pcm_channel_output_map_info,
  4735. .get = msm_pcm_channel_output_map_get,
  4736. .put = msm_pcm_channel_output_map_put,
  4737. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4738. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4739. },
  4740. };
  4741. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4742. struct snd_ctl_elem_value *ucontrol)
  4743. {
  4744. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4745. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4746. ucontrol->value.integer.value[0]);
  4747. return 0;
  4748. }
  4749. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4750. struct snd_ctl_elem_value *ucontrol)
  4751. {
  4752. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4753. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4754. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4755. return 0;
  4756. }
  4757. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4758. struct snd_ctl_elem_value *ucontrol)
  4759. {
  4760. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4761. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4762. ucontrol->value.integer.value[0]);
  4763. return 0;
  4764. }
  4765. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4766. struct snd_ctl_elem_value *ucontrol)
  4767. {
  4768. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4769. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4770. __func__, msm_ec_ref_ch_downmixed);
  4771. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4772. return 0;
  4773. }
  4774. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4775. struct snd_ctl_elem_value *ucontrol)
  4776. {
  4777. int i = 0, ret = 0;
  4778. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4779. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4780. kcontrol->private_value)->shift;
  4781. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4782. weights[i] = ucontrol->value.integer.value[i];
  4783. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4784. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4785. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4786. return ret;
  4787. }
  4788. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4789. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4790. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4791. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4792. struct snd_ctl_elem_value *ucontrol)
  4793. {
  4794. switch (msm_ec_ref_bit_format) {
  4795. case SNDRV_PCM_FORMAT_S24_LE:
  4796. ucontrol->value.integer.value[0] = 2;
  4797. break;
  4798. case SNDRV_PCM_FORMAT_S16_LE:
  4799. ucontrol->value.integer.value[0] = 1;
  4800. break;
  4801. default:
  4802. ucontrol->value.integer.value[0] = 0;
  4803. break;
  4804. }
  4805. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4806. __func__, ucontrol->value.integer.value[0]);
  4807. return 0;
  4808. }
  4809. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4810. struct snd_ctl_elem_value *ucontrol)
  4811. {
  4812. u16 bit_width = 0;
  4813. switch (ucontrol->value.integer.value[0]) {
  4814. case 2:
  4815. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4816. break;
  4817. case 1:
  4818. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4819. break;
  4820. default:
  4821. msm_ec_ref_bit_format = 0;
  4822. break;
  4823. }
  4824. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4825. bit_width = 16;
  4826. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4827. bit_width = 24;
  4828. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4829. __func__, msm_ec_ref_bit_format);
  4830. adm_ec_ref_rx_bit_width(bit_width);
  4831. return 0;
  4832. }
  4833. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4834. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4835. struct snd_ctl_elem_value *ucontrol)
  4836. {
  4837. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4838. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4839. __func__, ucontrol->value.integer.value[0]);
  4840. return 0;
  4841. }
  4842. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4843. struct snd_ctl_elem_value *ucontrol)
  4844. {
  4845. switch (ucontrol->value.integer.value[0]) {
  4846. case 0:
  4847. msm_ec_ref_sampling_rate = 0;
  4848. break;
  4849. case 1:
  4850. msm_ec_ref_sampling_rate = 8000;
  4851. break;
  4852. case 2:
  4853. msm_ec_ref_sampling_rate = 16000;
  4854. break;
  4855. case 3:
  4856. msm_ec_ref_sampling_rate = 32000;
  4857. break;
  4858. case 4:
  4859. msm_ec_ref_sampling_rate = 44100;
  4860. break;
  4861. case 5:
  4862. msm_ec_ref_sampling_rate = 48000;
  4863. break;
  4864. case 6:
  4865. msm_ec_ref_sampling_rate = 96000;
  4866. break;
  4867. case 7:
  4868. msm_ec_ref_sampling_rate = 192000;
  4869. break;
  4870. case 8:
  4871. msm_ec_ref_sampling_rate = 384000;
  4872. break;
  4873. default:
  4874. msm_ec_ref_sampling_rate = 48000;
  4875. break;
  4876. }
  4877. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4878. __func__, msm_ec_ref_sampling_rate);
  4879. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4880. return 0;
  4881. }
  4882. static int get_ec_ref_port_id(int value, int *index)
  4883. {
  4884. int port_id;
  4885. switch (value) {
  4886. case 0:
  4887. *index = 0;
  4888. port_id = AFE_PORT_INVALID;
  4889. break;
  4890. case 1:
  4891. *index = 1;
  4892. port_id = SLIMBUS_0_RX;
  4893. break;
  4894. case 2:
  4895. *index = 2;
  4896. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4897. break;
  4898. case 3:
  4899. *index = 3;
  4900. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4901. break;
  4902. case 4:
  4903. *index = 4;
  4904. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4905. break;
  4906. case 5:
  4907. *index = 5;
  4908. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4909. break;
  4910. case 6:
  4911. *index = 6;
  4912. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4913. break;
  4914. case 7:
  4915. *index = 7;
  4916. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4917. break;
  4918. case 9:
  4919. *index = 9;
  4920. port_id = SLIMBUS_5_RX;
  4921. break;
  4922. case 10:
  4923. *index = 10;
  4924. port_id = SLIMBUS_1_TX;
  4925. break;
  4926. case 11:
  4927. *index = 11;
  4928. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4929. break;
  4930. case 12:
  4931. *index = 12;
  4932. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4933. break;
  4934. case 13:
  4935. *index = 13;
  4936. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4937. break;
  4938. case 14:
  4939. *index = 14;
  4940. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4941. break;
  4942. case 15:
  4943. *index = 15;
  4944. port_id = SLIMBUS_6_RX;
  4945. break;
  4946. case 16:
  4947. *index = 16;
  4948. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4949. break;
  4950. case 17:
  4951. *index = 17;
  4952. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4953. break;
  4954. case 18:
  4955. *index = 18;
  4956. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4957. break;
  4958. case 19:
  4959. *index = 19;
  4960. port_id = AFE_PORT_ID_USB_RX;
  4961. break;
  4962. case 20:
  4963. *index = 20;
  4964. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4965. break;
  4966. case 21:
  4967. *index = 21;
  4968. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4969. break;
  4970. case 22:
  4971. *index = 22;
  4972. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4973. break;
  4974. case 23:
  4975. *index = 23;
  4976. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4977. break;
  4978. case 24:
  4979. *index = 24;
  4980. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4981. break;
  4982. case 25:
  4983. *index = 25;
  4984. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4985. break;
  4986. case 26:
  4987. *index = 26;
  4988. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4989. break;
  4990. case 27:
  4991. *index = 27;
  4992. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4993. break;
  4994. case 28:
  4995. *index = 28;
  4996. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  4997. break;
  4998. case 29:
  4999. *index = 29;
  5000. port_id = SLIMBUS_7_RX;
  5001. break;
  5002. case 30:
  5003. *index = 30;
  5004. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5005. break;
  5006. case 31:
  5007. *index = 31;
  5008. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5009. break;
  5010. case 32:
  5011. *index = 32;
  5012. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5013. break;
  5014. case 33:
  5015. *index = 33;
  5016. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5017. break;
  5018. case 34:
  5019. *index = 34;
  5020. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5021. break;
  5022. case 35:
  5023. *index = 35;
  5024. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5025. break;
  5026. case 36:
  5027. *index = 36;
  5028. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5029. break;
  5030. case 37:
  5031. *index = 37;
  5032. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5033. break;
  5034. case 38:
  5035. *index = 38;
  5036. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5037. break;
  5038. default:
  5039. *index = 0; /* NONE */
  5040. pr_err("%s: Invalid value %d\n", __func__, value);
  5041. port_id = AFE_PORT_INVALID;
  5042. break;
  5043. }
  5044. return port_id;
  5045. }
  5046. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5047. struct snd_ctl_elem_value *ucontrol)
  5048. {
  5049. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5050. mutex_lock(&routing_lock);
  5051. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5052. mutex_unlock(&routing_lock);
  5053. return 0;
  5054. }
  5055. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5056. struct snd_ctl_elem_value *ucontrol)
  5057. {
  5058. int value = ucontrol->value.integer.value[0];
  5059. mutex_lock(&routing_lock);
  5060. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5061. &afe_loopback_tx_port_index);
  5062. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5063. __func__, afe_loopback_tx_port_index);
  5064. mutex_unlock(&routing_lock);
  5065. return 0;
  5066. }
  5067. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5068. "32000", "44100", "48000", "96000", "192000", "384000"};
  5069. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5070. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5071. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5072. ec_ref_bit_format_text),
  5073. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5074. };
  5075. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5076. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5077. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5078. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5079. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5080. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5081. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5082. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5083. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5084. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5085. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5086. "DISPLAY_PORT1", "SEN_MI2S_RX",
  5087. };
  5088. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5089. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5090. };
  5091. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5092. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5093. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5094. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5095. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5096. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5097. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5098. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5099. msm_route_ec_ref_params_enum[0],
  5100. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5101. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5102. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5103. msm_ec_ref_chmixer_weights_put),
  5104. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5105. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5106. msm_ec_ref_chmixer_weights_put),
  5107. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5108. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5109. msm_ec_ref_chmixer_weights_put),
  5110. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5111. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5112. msm_ec_ref_chmixer_weights_put),
  5113. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5114. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5115. msm_ec_ref_chmixer_weights_put),
  5116. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5117. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5118. msm_ec_ref_chmixer_weights_put),
  5119. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5120. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5121. };
  5122. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5123. struct snd_ctl_elem_value *ucontrol)
  5124. {
  5125. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5126. mutex_lock(&routing_lock);
  5127. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5128. mutex_unlock(&routing_lock);
  5129. return 0;
  5130. }
  5131. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5132. struct snd_ctl_elem_value *ucontrol)
  5133. {
  5134. int value = ucontrol->value.integer.value[0];
  5135. struct snd_soc_dapm_widget *widget =
  5136. snd_soc_dapm_kcontrol_widget(kcontrol);
  5137. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5138. struct snd_soc_dapm_update *update = NULL;
  5139. mutex_lock(&routing_lock);
  5140. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5141. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5142. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5143. __func__, msm_route_ec_ref_rx);
  5144. mutex_unlock(&routing_lock);
  5145. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5146. msm_route_ec_ref_rx, e, update);
  5147. return 0;
  5148. }
  5149. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5150. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5151. msm_route_ec_ref_rx_enum[0],
  5152. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5153. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5154. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5155. msm_route_ec_ref_rx_enum[0],
  5156. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5157. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5158. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5159. msm_route_ec_ref_rx_enum[0],
  5160. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5161. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5162. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5163. msm_route_ec_ref_rx_enum[0],
  5164. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5165. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5166. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5167. msm_route_ec_ref_rx_enum[0],
  5168. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5169. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5170. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5171. msm_route_ec_ref_rx_enum[0],
  5172. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5173. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5174. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5175. msm_route_ec_ref_rx_enum[0],
  5176. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5177. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5178. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5179. msm_route_ec_ref_rx_enum[0],
  5180. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5181. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5182. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5183. msm_route_ec_ref_rx_enum[0],
  5184. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5185. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5186. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5187. msm_route_ec_ref_rx_enum[0],
  5188. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5189. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5190. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5191. msm_route_ec_ref_rx_enum[0],
  5192. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5193. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5194. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5195. msm_route_ec_ref_rx_enum[0],
  5196. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5197. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5198. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5199. msm_route_ec_ref_rx_enum[0],
  5200. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5201. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5202. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5203. msm_route_ec_ref_rx_enum[0],
  5204. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5205. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5206. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5207. msm_route_ec_ref_rx_enum[0],
  5208. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5209. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5210. struct snd_ctl_elem_value *ucontrol)
  5211. {
  5212. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5213. mutex_lock(&routing_lock);
  5214. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5215. mutex_unlock(&routing_lock);
  5216. return 0;
  5217. }
  5218. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5219. struct snd_ctl_elem_value *ucontrol)
  5220. {
  5221. struct snd_soc_dapm_widget *widget =
  5222. snd_soc_dapm_kcontrol_widget(kcontrol);
  5223. int mux = ucontrol->value.enumerated.item[0];
  5224. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5225. int ret = 1;
  5226. bool state = true;
  5227. uint16_t ext_ec_ref_port_id;
  5228. struct snd_soc_dapm_update *update = NULL;
  5229. if (mux >= e->items) {
  5230. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5231. return -EINVAL;
  5232. }
  5233. mutex_lock(&routing_lock);
  5234. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5235. switch (msm_route_ext_ec_ref) {
  5236. case EXT_EC_REF_PRI_MI2S_TX:
  5237. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5238. break;
  5239. case EXT_EC_REF_SEC_MI2S_TX:
  5240. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5241. break;
  5242. case EXT_EC_REF_TERT_MI2S_TX:
  5243. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5244. break;
  5245. case EXT_EC_REF_QUAT_MI2S_TX:
  5246. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5247. break;
  5248. case EXT_EC_REF_QUIN_MI2S_TX:
  5249. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5250. break;
  5251. case EXT_EC_REF_SLIM_1_TX:
  5252. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5253. break;
  5254. case EXT_EC_REF_PRI_TDM_TX:
  5255. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5256. break;
  5257. case EXT_EC_REF_SEC_TDM_TX:
  5258. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5259. break;
  5260. case EXT_EC_REF_NONE:
  5261. default:
  5262. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5263. state = false;
  5264. break;
  5265. }
  5266. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5267. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5268. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5269. mutex_unlock(&routing_lock);
  5270. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5271. update);
  5272. } else {
  5273. ret = -EINVAL;
  5274. mutex_unlock(&routing_lock);
  5275. }
  5276. return ret;
  5277. }
  5278. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5279. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5280. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5281. "SLIM_1_TX", "PRI_TDM_TX",
  5282. "SEC_TDM_TX"};
  5283. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5284. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5285. };
  5286. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5287. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5288. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5289. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5290. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_PRI_I2S_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_PRI_I2S_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_PRI_I2S_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_PRI_I2S_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_PRI_I2S_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_PRI_I2S_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_PRI_I2S_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_PRI_I2S_RX,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5323. MSM_BACKEND_DAI_PRI_I2S_RX,
  5324. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5325. msm_routing_put_audio_mixer),
  5326. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5327. MSM_BACKEND_DAI_PRI_I2S_RX,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5331. MSM_BACKEND_DAI_PRI_I2S_RX,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5335. MSM_BACKEND_DAI_PRI_I2S_RX,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_PRI_I2S_RX,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_PRI_I2S_RX,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_PRI_I2S_RX,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5351. MSM_BACKEND_DAI_PRI_I2S_RX,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5355. MSM_BACKEND_DAI_PRI_I2S_RX,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5359. MSM_BACKEND_DAI_PRI_I2S_RX,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5363. MSM_BACKEND_DAI_PRI_I2S_RX,
  5364. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5365. msm_routing_put_audio_mixer),
  5366. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5367. MSM_BACKEND_DAI_PRI_I2S_RX,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_PRI_I2S_RX,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5375. MSM_BACKEND_DAI_PRI_I2S_RX,
  5376. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5377. msm_routing_put_audio_mixer),
  5378. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5379. MSM_BACKEND_DAI_PRI_I2S_RX,
  5380. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5381. msm_routing_put_audio_mixer),
  5382. };
  5383. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5384. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_SEC_I2S_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_SEC_I2S_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_SEC_I2S_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_SEC_I2S_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_SEC_I2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_SEC_I2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_SEC_I2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_SEC_I2S_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_SEC_I2S_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_SEC_I2S_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_SEC_I2S_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_SEC_I2S_RX,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_SEC_I2S_RX,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_SEC_I2S_RX,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_SEC_I2S_RX,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_SEC_I2S_RX,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_SEC_I2S_RX,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_SEC_I2S_RX,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_SEC_I2S_RX,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_SEC_I2S_RX,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5465. MSM_BACKEND_DAI_SEC_I2S_RX,
  5466. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5467. msm_routing_put_audio_mixer),
  5468. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5469. MSM_BACKEND_DAI_SEC_I2S_RX,
  5470. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5471. msm_routing_put_audio_mixer),
  5472. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5473. MSM_BACKEND_DAI_SEC_I2S_RX,
  5474. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5475. msm_routing_put_audio_mixer),
  5476. };
  5477. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5478. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5547. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5548. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5549. msm_routing_put_audio_mixer),
  5550. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5551. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5552. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5553. msm_routing_put_audio_mixer),
  5554. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5555. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5556. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5557. msm_routing_put_audio_mixer),
  5558. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5559. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5560. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5561. msm_routing_put_audio_mixer),
  5562. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5563. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5564. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5565. msm_routing_put_audio_mixer),
  5566. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5567. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5568. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5569. msm_routing_put_audio_mixer),
  5570. };
  5571. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5572. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5641. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5642. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5643. msm_routing_put_audio_mixer),
  5644. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5645. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5646. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5647. msm_routing_put_audio_mixer),
  5648. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5649. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5650. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5651. msm_routing_put_audio_mixer),
  5652. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5653. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5654. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5655. msm_routing_put_audio_mixer),
  5656. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5657. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5658. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5659. msm_routing_put_audio_mixer),
  5660. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5661. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5662. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5663. msm_routing_put_audio_mixer),
  5664. };
  5665. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5666. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5711. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5712. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5713. msm_routing_put_audio_mixer),
  5714. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5715. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5716. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5717. msm_routing_put_audio_mixer),
  5718. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5719. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5720. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5721. msm_routing_put_audio_mixer),
  5722. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5723. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5724. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5725. msm_routing_put_audio_mixer),
  5726. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5727. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5728. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5729. msm_routing_put_audio_mixer),
  5730. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5731. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5732. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5733. msm_routing_put_audio_mixer),
  5734. };
  5735. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5736. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5805. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5806. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5807. msm_routing_put_audio_mixer),
  5808. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5809. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5810. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5811. msm_routing_put_audio_mixer),
  5812. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5813. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5814. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5815. msm_routing_put_audio_mixer),
  5816. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5817. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5818. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5819. msm_routing_put_audio_mixer),
  5820. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5821. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5822. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5823. msm_routing_put_audio_mixer),
  5824. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5825. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5826. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5827. msm_routing_put_audio_mixer),
  5828. };
  5829. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5830. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5899. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5900. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5901. msm_routing_put_audio_mixer),
  5902. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5903. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5904. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5905. msm_routing_put_audio_mixer),
  5906. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5907. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5908. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5909. msm_routing_put_audio_mixer),
  5910. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5911. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5912. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5913. msm_routing_put_audio_mixer),
  5914. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5915. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5916. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5917. msm_routing_put_audio_mixer),
  5918. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5919. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5920. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5921. msm_routing_put_audio_mixer),
  5922. };
  5923. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5924. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_MI2S_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_MI2S_RX,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_MI2S_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_MI2S_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_MI2S_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_MI2S_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_MI2S_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_MI2S_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_MI2S_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_MI2S_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_MI2S_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_MI2S_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_MI2S_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_MI2S_RX,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5981. MSM_BACKEND_DAI_MI2S_RX,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_MI2S_RX,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_MI2S_RX,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5993. MSM_BACKEND_DAI_MI2S_RX,
  5994. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5995. msm_routing_put_audio_mixer),
  5996. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5997. MSM_BACKEND_DAI_MI2S_RX,
  5998. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5999. msm_routing_put_audio_mixer),
  6000. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6001. MSM_BACKEND_DAI_MI2S_RX,
  6002. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6003. msm_routing_put_audio_mixer),
  6004. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6005. MSM_BACKEND_DAI_MI2S_RX,
  6006. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6007. msm_routing_put_audio_mixer),
  6008. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6009. MSM_BACKEND_DAI_MI2S_RX,
  6010. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6011. msm_routing_put_audio_mixer),
  6012. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6013. MSM_BACKEND_DAI_MI2S_RX,
  6014. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6015. msm_routing_put_audio_mixer),
  6016. };
  6017. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6018. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6087. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6088. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6089. msm_routing_put_audio_mixer),
  6090. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6091. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6092. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6093. msm_routing_put_audio_mixer),
  6094. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6095. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6096. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6097. msm_routing_put_audio_mixer),
  6098. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6099. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6100. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6101. msm_routing_put_audio_mixer),
  6102. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6103. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6104. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6105. msm_routing_put_audio_mixer),
  6106. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6107. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6108. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6109. msm_routing_put_audio_mixer),
  6110. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6111. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6112. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6113. msm_routing_put_audio_mixer),
  6114. };
  6115. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6116. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6181. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6182. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6183. msm_routing_put_audio_mixer),
  6184. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6185. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6186. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6187. msm_routing_put_audio_mixer),
  6188. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6189. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6190. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6191. msm_routing_put_audio_mixer),
  6192. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6193. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6194. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6195. msm_routing_put_audio_mixer),
  6196. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6197. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6198. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6199. msm_routing_put_audio_mixer),
  6200. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6201. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6202. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6203. msm_routing_put_audio_mixer),
  6204. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6205. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6206. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6207. msm_routing_put_audio_mixer),
  6208. };
  6209. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6210. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6271. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6272. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6273. msm_routing_put_audio_mixer),
  6274. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6275. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6276. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6277. msm_routing_put_audio_mixer),
  6278. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6279. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6280. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6281. msm_routing_put_audio_mixer),
  6282. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6283. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6284. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6285. msm_routing_put_audio_mixer),
  6286. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6287. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6288. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6289. msm_routing_put_audio_mixer),
  6290. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6291. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6292. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6293. msm_routing_put_audio_mixer),
  6294. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6295. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6296. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6297. msm_routing_put_audio_mixer),
  6298. };
  6299. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6300. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6357. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6358. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6359. msm_routing_put_audio_mixer),
  6360. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6361. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6362. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6363. msm_routing_put_audio_mixer),
  6364. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. };
  6385. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6386. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. };
  6391. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6392. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6401. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6405. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6417. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6421. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6425. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6426. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6427. msm_routing_put_audio_mixer),
  6428. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6429. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6433. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6437. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6457. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6461. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. };
  6485. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6486. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6491. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6495. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6499. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6500. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6501. msm_routing_put_audio_mixer),
  6502. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6511. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6512. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6513. msm_routing_put_audio_mixer),
  6514. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6515. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6516. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6517. msm_routing_put_audio_mixer),
  6518. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6519. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6523. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6524. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6525. msm_routing_put_audio_mixer),
  6526. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6580. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. };
  6583. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6584. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6585. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6586. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6589. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6590. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6591. msm_routing_put_audio_mixer),
  6592. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6593. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6597. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6601. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6605. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6621. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6622. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6623. msm_routing_put_audio_mixer),
  6624. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6625. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6626. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6627. msm_routing_put_audio_mixer),
  6628. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6629. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6630. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6631. msm_routing_put_audio_mixer),
  6632. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6633. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6634. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6635. msm_routing_put_audio_mixer),
  6636. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6637. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6638. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6639. msm_routing_put_audio_mixer),
  6640. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6641. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6642. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6643. msm_routing_put_audio_mixer),
  6644. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6645. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6646. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6647. msm_routing_put_audio_mixer),
  6648. };
  6649. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6650. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6651. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6655. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6659. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. };
  6715. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6716. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6773. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6777. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6781. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6789. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6793. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6794. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6795. msm_routing_put_audio_mixer),
  6796. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6797. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6798. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6799. msm_routing_put_audio_mixer),
  6800. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6801. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. };
  6805. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6806. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6807. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6811. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6863. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6864. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6865. msm_routing_put_audio_mixer),
  6866. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6867. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6871. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6872. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6873. msm_routing_put_audio_mixer),
  6874. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6875. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6879. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6880. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6881. msm_routing_put_audio_mixer),
  6882. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6883. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6884. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6885. msm_routing_put_audio_mixer),
  6886. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6887. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6888. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6889. msm_routing_put_audio_mixer),
  6890. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6891. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6892. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6893. msm_routing_put_audio_mixer),
  6894. };
  6895. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6896. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_HDMI_RX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_HDMI_RX,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_HDMI_RX,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_HDMI_RX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_HDMI_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_HDMI_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_HDMI_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_HDMI_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_HDMI_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_HDMI_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_HDMI_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_HDMI_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_HDMI_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_HDMI_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_HDMI_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6957. MSM_BACKEND_DAI_HDMI_RX,
  6958. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6959. msm_routing_put_audio_mixer),
  6960. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6961. MSM_BACKEND_DAI_HDMI_RX,
  6962. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6963. msm_routing_put_audio_mixer),
  6964. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6965. MSM_BACKEND_DAI_HDMI_RX,
  6966. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6967. msm_routing_put_audio_mixer),
  6968. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6969. MSM_BACKEND_DAI_HDMI_RX,
  6970. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6971. msm_routing_put_audio_mixer),
  6972. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6973. MSM_BACKEND_DAI_HDMI_RX,
  6974. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6975. msm_routing_put_audio_mixer),
  6976. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6977. MSM_BACKEND_DAI_HDMI_RX,
  6978. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6979. msm_routing_put_audio_mixer),
  6980. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6981. MSM_BACKEND_DAI_HDMI_RX,
  6982. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6983. msm_routing_put_audio_mixer),
  6984. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6985. MSM_BACKEND_DAI_HDMI_RX,
  6986. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6987. msm_routing_put_audio_mixer),
  6988. };
  6989. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  6990. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7035. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7036. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7037. msm_routing_put_audio_mixer),
  7038. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7039. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7040. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7041. msm_routing_put_audio_mixer),
  7042. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7043. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7044. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7045. msm_routing_put_audio_mixer),
  7046. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7047. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7048. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7049. msm_routing_put_audio_mixer),
  7050. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7051. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7052. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7053. msm_routing_put_audio_mixer),
  7054. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7055. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7056. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7057. msm_routing_put_audio_mixer),
  7058. };
  7059. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7060. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7073. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7074. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7075. msm_routing_put_audio_mixer),
  7076. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7125. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7126. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7127. msm_routing_put_audio_mixer),
  7128. };
  7129. /* incall music delivery mixer */
  7130. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7131. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. };
  7152. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7153. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. };
  7170. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7171. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7176. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7180. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7181. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7182. msm_routing_put_audio_mixer),
  7183. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7184. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7185. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7186. msm_routing_put_audio_mixer),
  7187. };
  7188. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7189. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7230. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7231. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7232. msm_routing_put_audio_mixer),
  7233. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7234. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7250. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7251. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7252. msm_routing_put_audio_mixer),
  7253. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7254. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7255. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7256. msm_routing_put_audio_mixer),
  7257. };
  7258. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7259. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7324. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7325. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7326. msm_routing_put_audio_mixer),
  7327. };
  7328. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7329. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7394. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7395. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7396. msm_routing_put_audio_mixer),
  7397. };
  7398. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7399. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. };
  7468. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7469. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7506. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. };
  7538. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7539. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7576. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7577. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7578. msm_routing_put_audio_mixer),
  7579. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. };
  7608. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7609. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. };
  7678. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7679. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. };
  7748. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7749. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7810. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7811. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7812. msm_routing_put_audio_mixer),
  7813. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7814. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7815. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7816. msm_routing_put_audio_mixer),
  7817. };
  7818. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7819. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. };
  7888. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7889. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7894. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7895. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7896. msm_routing_put_audio_mixer),
  7897. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7910. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7911. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7912. msm_routing_put_audio_mixer),
  7913. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7926. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7927. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7928. msm_routing_put_audio_mixer),
  7929. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7930. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7931. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7932. msm_routing_put_audio_mixer),
  7933. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7934. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7935. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7936. msm_routing_put_audio_mixer),
  7937. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7950. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7951. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7952. msm_routing_put_audio_mixer),
  7953. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7954. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7955. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7956. msm_routing_put_audio_mixer),
  7957. };
  7958. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7959. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7996. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7997. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7998. msm_routing_put_audio_mixer),
  7999. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8016. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8017. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8018. msm_routing_put_audio_mixer),
  8019. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8020. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8021. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8022. msm_routing_put_audio_mixer),
  8023. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8024. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8025. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8026. msm_routing_put_audio_mixer),
  8027. };
  8028. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8029. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8062. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8063. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8064. msm_routing_put_audio_mixer),
  8065. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8066. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8067. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8068. msm_routing_put_audio_mixer),
  8069. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8070. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8071. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8072. msm_routing_put_audio_mixer),
  8073. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8074. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8075. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8076. msm_routing_put_audio_mixer),
  8077. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. };
  8098. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8099. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_USB_RX,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_USB_RX,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_USB_RX,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_USB_RX,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_USB_RX,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_USB_RX,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8124. MSM_BACKEND_DAI_USB_RX,
  8125. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8126. msm_routing_put_audio_mixer),
  8127. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8128. MSM_BACKEND_DAI_USB_RX,
  8129. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8130. msm_routing_put_audio_mixer),
  8131. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8132. MSM_BACKEND_DAI_USB_RX,
  8133. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8134. msm_routing_put_audio_mixer),
  8135. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8136. MSM_BACKEND_DAI_USB_RX,
  8137. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8138. msm_routing_put_audio_mixer),
  8139. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8140. MSM_BACKEND_DAI_USB_RX,
  8141. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8142. msm_routing_put_audio_mixer),
  8143. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8144. MSM_BACKEND_DAI_USB_RX,
  8145. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8146. msm_routing_put_audio_mixer),
  8147. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8148. MSM_BACKEND_DAI_USB_RX,
  8149. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8150. msm_routing_put_audio_mixer),
  8151. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8152. MSM_BACKEND_DAI_USB_RX,
  8153. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8154. msm_routing_put_audio_mixer),
  8155. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8156. MSM_BACKEND_DAI_USB_RX,
  8157. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8158. msm_routing_put_audio_mixer),
  8159. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8160. MSM_BACKEND_DAI_USB_RX,
  8161. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8162. msm_routing_put_audio_mixer),
  8163. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8164. MSM_BACKEND_DAI_USB_RX,
  8165. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8166. msm_routing_put_audio_mixer),
  8167. };
  8168. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8169. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8226. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8227. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8228. msm_routing_put_audio_mixer),
  8229. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8230. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8231. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8232. msm_routing_put_audio_mixer),
  8233. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8234. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8235. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8236. msm_routing_put_audio_mixer),
  8237. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8238. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8239. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8240. msm_routing_put_audio_mixer),
  8241. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8242. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8243. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8244. msm_routing_put_audio_mixer),
  8245. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8246. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8247. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8248. msm_routing_put_audio_mixer),
  8249. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8250. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8251. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8252. msm_routing_put_audio_mixer),
  8253. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8254. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8255. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8256. msm_routing_put_audio_mixer),
  8257. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8258. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8259. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8260. msm_routing_put_audio_mixer),
  8261. };
  8262. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8263. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8324. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8325. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8326. msm_routing_put_audio_mixer),
  8327. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8328. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8329. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8330. msm_routing_put_audio_mixer),
  8331. };
  8332. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8333. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_INT_FM_RX,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_INT_FM_RX,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_INT_FM_RX,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_INT_FM_RX,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_INT_FM_RX,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_INT_FM_RX,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_INT_FM_RX,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_INT_FM_RX,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_INT_FM_RX,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_INT_FM_RX,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_INT_FM_RX,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_INT_FM_RX,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_INT_FM_RX,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_INT_FM_RX,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_INT_FM_RX,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_INT_FM_RX,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_INT_FM_RX,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_INT_FM_RX,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_INT_FM_RX,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_INT_FM_RX,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_INT_FM_RX,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_INT_FM_RX,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_INT_FM_RX,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. };
  8426. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8427. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_AFE_PCM_RX,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_AFE_PCM_RX,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_AFE_PCM_RX,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_AFE_PCM_RX,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_AFE_PCM_RX,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_AFE_PCM_RX,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_AFE_PCM_RX,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_AFE_PCM_RX,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_AFE_PCM_RX,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_AFE_PCM_RX,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_AFE_PCM_RX,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_AFE_PCM_RX,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_AFE_PCM_RX,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_AFE_PCM_RX,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_AFE_PCM_RX,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_AFE_PCM_RX,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8492. MSM_BACKEND_DAI_AFE_PCM_RX,
  8493. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8494. msm_routing_put_audio_mixer),
  8495. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_AFE_PCM_RX,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_AFE_PCM_RX,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_AFE_PCM_RX,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_AFE_PCM_RX,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_AFE_PCM_RX,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_AFE_PCM_RX,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. };
  8520. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8521. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_AUXPCM_RX,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_AUXPCM_RX,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_AUXPCM_RX,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_AUXPCM_RX,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_AUXPCM_RX,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_AUXPCM_RX,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_AUXPCM_RX,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_AUXPCM_RX,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_AUXPCM_RX,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_AUXPCM_RX,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_AUXPCM_RX,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_AUXPCM_RX,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_AUXPCM_RX,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_AUXPCM_RX,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_AUXPCM_RX,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_AUXPCM_RX,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8586. MSM_BACKEND_DAI_AUXPCM_RX,
  8587. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8588. msm_routing_put_audio_mixer),
  8589. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8590. MSM_BACKEND_DAI_AUXPCM_RX,
  8591. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8592. msm_routing_put_audio_mixer),
  8593. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8594. MSM_BACKEND_DAI_AUXPCM_RX,
  8595. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8596. msm_routing_put_audio_mixer),
  8597. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8598. MSM_BACKEND_DAI_AUXPCM_RX,
  8599. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8600. msm_routing_put_audio_mixer),
  8601. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_AUXPCM_RX,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_AUXPCM_RX,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_AUXPCM_RX,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_AUXPCM_RX,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. };
  8618. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8619. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. };
  8716. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8717. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. };
  8786. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8787. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. };
  8856. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8857. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8918. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8919. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8920. msm_routing_put_audio_mixer),
  8921. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8922. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8923. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8924. msm_routing_put_audio_mixer),
  8925. };
  8926. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8927. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8984. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8985. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8986. msm_routing_put_audio_mixer),
  8987. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8988. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8989. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8990. msm_routing_put_audio_mixer),
  8991. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8992. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8993. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8994. msm_routing_put_audio_mixer),
  8995. };
  8996. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  8997. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. };
  9074. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9075. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. };
  9152. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9153. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9182. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9184. msm_routing_put_audio_mixer),
  9185. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9190. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9191. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9192. msm_routing_put_audio_mixer),
  9193. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9194. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9195. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9196. msm_routing_put_audio_mixer),
  9197. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9198. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9199. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9200. msm_routing_put_audio_mixer),
  9201. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9214. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9216. msm_routing_put_audio_mixer),
  9217. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9218. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9219. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9220. msm_routing_put_audio_mixer),
  9221. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9222. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9223. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9224. msm_routing_put_audio_mixer),
  9225. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9226. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9227. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9228. msm_routing_put_audio_mixer),
  9229. };
  9230. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9231. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9256. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9257. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9258. msm_routing_put_audio_mixer),
  9259. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9260. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9261. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9262. msm_routing_put_audio_mixer),
  9263. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9264. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9265. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9266. msm_routing_put_audio_mixer),
  9267. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9268. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9269. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9270. msm_routing_put_audio_mixer),
  9271. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9272. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9273. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9274. msm_routing_put_audio_mixer),
  9275. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9276. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9277. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9278. msm_routing_put_audio_mixer),
  9279. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9280. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9281. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9282. msm_routing_put_audio_mixer),
  9283. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9284. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9285. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9286. msm_routing_put_audio_mixer),
  9287. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9288. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9289. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9290. msm_routing_put_audio_mixer),
  9291. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9292. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9293. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9294. msm_routing_put_audio_mixer),
  9295. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9296. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9297. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9298. msm_routing_put_audio_mixer),
  9299. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9300. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9301. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9302. msm_routing_put_audio_mixer),
  9303. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9304. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9305. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9306. msm_routing_put_audio_mixer),
  9307. };
  9308. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9309. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9330. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9331. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9332. msm_routing_put_audio_mixer),
  9333. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9334. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9335. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9336. msm_routing_put_audio_mixer),
  9337. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9339. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9340. msm_routing_put_audio_mixer),
  9341. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9343. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9344. msm_routing_put_audio_mixer),
  9345. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9366. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9367. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9368. msm_routing_put_audio_mixer),
  9369. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9370. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9371. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9372. msm_routing_put_audio_mixer),
  9373. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9374. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9375. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9376. msm_routing_put_audio_mixer),
  9377. };
  9378. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9379. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9428. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9429. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9430. msm_routing_put_audio_mixer),
  9431. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9432. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9433. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9434. msm_routing_put_audio_mixer),
  9435. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9436. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9437. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9438. msm_routing_put_audio_mixer),
  9439. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9440. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9441. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9442. msm_routing_put_audio_mixer),
  9443. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9444. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9445. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9446. msm_routing_put_audio_mixer),
  9447. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9448. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9449. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9450. msm_routing_put_audio_mixer),
  9451. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9452. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9453. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9454. msm_routing_put_audio_mixer),
  9455. };
  9456. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9457. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9486. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9487. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9488. msm_routing_put_audio_mixer),
  9489. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9490. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9491. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9492. msm_routing_put_audio_mixer),
  9493. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9494. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9495. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9496. msm_routing_put_audio_mixer),
  9497. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9498. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9499. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9500. msm_routing_put_audio_mixer),
  9501. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9502. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9503. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9504. msm_routing_put_audio_mixer),
  9505. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9506. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9507. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9508. msm_routing_put_audio_mixer),
  9509. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9510. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9511. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9512. msm_routing_put_audio_mixer),
  9513. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9514. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9515. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9516. msm_routing_put_audio_mixer),
  9517. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9518. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9519. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9520. msm_routing_put_audio_mixer),
  9521. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9522. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9523. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9524. msm_routing_put_audio_mixer),
  9525. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9526. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9527. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9528. msm_routing_put_audio_mixer),
  9529. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9530. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9531. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9532. msm_routing_put_audio_mixer),
  9533. };
  9534. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9535. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9553. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9554. msm_routing_put_audio_mixer),
  9555. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9568. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9569. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9570. msm_routing_put_audio_mixer),
  9571. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9572. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9573. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9574. msm_routing_put_audio_mixer),
  9575. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9576. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9577. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9578. msm_routing_put_audio_mixer),
  9579. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9580. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9581. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9582. msm_routing_put_audio_mixer),
  9583. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9584. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9585. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9586. msm_routing_put_audio_mixer),
  9587. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9588. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9589. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9590. msm_routing_put_audio_mixer),
  9591. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9592. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9593. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9594. msm_routing_put_audio_mixer),
  9595. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9596. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9597. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9598. msm_routing_put_audio_mixer),
  9599. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9600. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9601. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9602. msm_routing_put_audio_mixer),
  9603. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9604. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9605. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9606. msm_routing_put_audio_mixer),
  9607. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9608. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9609. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9610. msm_routing_put_audio_mixer),
  9611. };
  9612. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9613. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9663. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9664. msm_routing_put_audio_mixer),
  9665. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9666. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9667. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9668. msm_routing_put_audio_mixer),
  9669. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9670. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9671. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9672. msm_routing_put_audio_mixer),
  9673. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9674. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9675. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9676. msm_routing_put_audio_mixer),
  9677. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9678. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9679. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9680. msm_routing_put_audio_mixer),
  9681. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9682. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9683. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9684. msm_routing_put_audio_mixer),
  9685. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. };
  9690. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9691. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9717. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9718. msm_routing_put_audio_mixer),
  9719. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9721. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9722. msm_routing_put_audio_mixer),
  9723. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9725. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9726. msm_routing_put_audio_mixer),
  9727. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9736. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9737. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9738. msm_routing_put_audio_mixer),
  9739. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9740. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9741. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9742. msm_routing_put_audio_mixer),
  9743. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9744. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9745. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9746. msm_routing_put_audio_mixer),
  9747. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9748. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9749. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9750. msm_routing_put_audio_mixer),
  9751. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9752. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9753. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9754. msm_routing_put_audio_mixer),
  9755. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9756. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9757. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9758. msm_routing_put_audio_mixer),
  9759. };
  9760. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9761. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9791. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9792. msm_routing_put_audio_mixer),
  9793. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9794. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9795. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9796. msm_routing_put_audio_mixer),
  9797. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9798. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9799. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9800. msm_routing_put_audio_mixer),
  9801. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9802. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9803. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9804. msm_routing_put_audio_mixer),
  9805. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9806. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9807. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9808. msm_routing_put_audio_mixer),
  9809. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9810. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9811. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9812. msm_routing_put_audio_mixer),
  9813. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9814. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9815. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9816. msm_routing_put_audio_mixer),
  9817. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9819. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9820. msm_routing_put_audio_mixer),
  9821. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9822. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9823. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9824. msm_routing_put_audio_mixer),
  9825. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9827. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9828. msm_routing_put_audio_mixer),
  9829. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9831. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9832. msm_routing_put_audio_mixer),
  9833. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9835. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9836. msm_routing_put_audio_mixer),
  9837. };
  9838. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9839. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9865. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9866. msm_routing_put_audio_mixer),
  9867. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9868. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9869. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9870. msm_routing_put_audio_mixer),
  9871. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9872. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9873. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9874. msm_routing_put_audio_mixer),
  9875. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9876. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9877. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9878. msm_routing_put_audio_mixer),
  9879. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9881. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9882. msm_routing_put_audio_mixer),
  9883. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9885. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9886. msm_routing_put_audio_mixer),
  9887. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9889. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9890. msm_routing_put_audio_mixer),
  9891. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. };
  9908. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  9909. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9923. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9924. msm_routing_put_audio_mixer),
  9925. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9931. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9932. msm_routing_put_audio_mixer),
  9933. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9934. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9935. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9936. msm_routing_put_audio_mixer),
  9937. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9938. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9939. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9940. msm_routing_put_audio_mixer),
  9941. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9942. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9943. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9944. msm_routing_put_audio_mixer),
  9945. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9947. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9948. msm_routing_put_audio_mixer),
  9949. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9951. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9952. msm_routing_put_audio_mixer),
  9953. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9955. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9956. msm_routing_put_audio_mixer),
  9957. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9959. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9960. msm_routing_put_audio_mixer),
  9961. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9963. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9964. msm_routing_put_audio_mixer),
  9965. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9967. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9968. msm_routing_put_audio_mixer),
  9969. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9971. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9972. msm_routing_put_audio_mixer),
  9973. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. };
  9986. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  9987. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9988. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9990. msm_routing_put_audio_mixer),
  9991. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9992. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9993. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9994. msm_routing_put_audio_mixer),
  9995. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9996. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9997. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9998. msm_routing_put_audio_mixer),
  9999. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10000. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10001. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10002. msm_routing_put_audio_mixer),
  10003. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10004. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10005. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10006. msm_routing_put_audio_mixer),
  10007. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10008. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10009. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10010. msm_routing_put_audio_mixer),
  10011. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10013. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10014. msm_routing_put_audio_mixer),
  10015. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10017. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10018. msm_routing_put_audio_mixer),
  10019. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10021. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10022. msm_routing_put_audio_mixer),
  10023. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10025. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10026. msm_routing_put_audio_mixer),
  10027. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10028. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10029. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10030. msm_routing_put_audio_mixer),
  10031. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10032. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10033. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10034. msm_routing_put_audio_mixer),
  10035. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10036. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10037. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10038. msm_routing_put_audio_mixer),
  10039. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10040. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10041. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10042. msm_routing_put_audio_mixer),
  10043. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10044. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10045. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10046. msm_routing_put_audio_mixer),
  10047. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10061. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10062. msm_routing_put_audio_mixer),
  10063. };
  10064. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10065. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10066. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10067. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10068. msm_routing_put_audio_mixer),
  10069. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10070. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10071. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10072. msm_routing_put_audio_mixer),
  10073. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10075. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10076. msm_routing_put_audio_mixer),
  10077. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10079. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10080. msm_routing_put_audio_mixer),
  10081. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. };
  10142. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10143. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10144. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10145. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10146. msm_routing_put_audio_mixer),
  10147. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10148. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10149. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10150. msm_routing_put_audio_mixer),
  10151. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10153. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10154. msm_routing_put_audio_mixer),
  10155. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10156. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10157. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10158. msm_routing_put_audio_mixer),
  10159. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10161. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10162. msm_routing_put_audio_mixer),
  10163. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10165. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10166. msm_routing_put_audio_mixer),
  10167. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10181. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10182. msm_routing_put_audio_mixer),
  10183. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10185. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10186. msm_routing_put_audio_mixer),
  10187. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10193. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10194. msm_routing_put_audio_mixer),
  10195. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10197. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10198. msm_routing_put_audio_mixer),
  10199. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. };
  10220. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10221. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10223. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10224. msm_routing_put_audio_mixer),
  10225. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10227. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10228. msm_routing_put_audio_mixer),
  10229. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10230. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10231. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10232. msm_routing_put_audio_mixer),
  10233. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10234. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10235. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10236. msm_routing_put_audio_mixer),
  10237. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10238. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10239. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10240. msm_routing_put_audio_mixer),
  10241. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10242. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10243. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10244. msm_routing_put_audio_mixer),
  10245. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10251. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10252. msm_routing_put_audio_mixer),
  10253. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. };
  10302. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10303. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10306. msm_routing_put_audio_mixer),
  10307. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10308. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10309. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10310. msm_routing_put_audio_mixer),
  10311. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10312. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10314. msm_routing_put_audio_mixer),
  10315. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10317. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10318. msm_routing_put_audio_mixer),
  10319. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10321. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10322. msm_routing_put_audio_mixer),
  10323. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. };
  10372. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10373. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10375. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10376. msm_routing_put_audio_mixer),
  10377. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10379. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10380. msm_routing_put_audio_mixer),
  10381. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10383. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10384. msm_routing_put_audio_mixer),
  10385. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10387. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10388. msm_routing_put_audio_mixer),
  10389. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10391. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10392. msm_routing_put_audio_mixer),
  10393. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10394. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10395. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10396. msm_routing_put_audio_mixer),
  10397. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10399. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10400. msm_routing_put_audio_mixer),
  10401. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10403. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10404. msm_routing_put_audio_mixer),
  10405. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10406. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10407. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10408. msm_routing_put_audio_mixer),
  10409. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. };
  10454. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10455. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10456. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10458. msm_routing_put_audio_mixer),
  10459. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10461. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10462. msm_routing_put_audio_mixer),
  10463. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10464. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10465. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10466. msm_routing_put_audio_mixer),
  10467. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10468. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10469. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10470. msm_routing_put_audio_mixer),
  10471. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10472. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10473. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10474. msm_routing_put_audio_mixer),
  10475. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10476. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10477. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10478. msm_routing_put_audio_mixer),
  10479. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10480. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10481. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10482. msm_routing_put_audio_mixer),
  10483. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10485. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10486. msm_routing_put_audio_mixer),
  10487. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10489. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10490. msm_routing_put_audio_mixer),
  10491. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10493. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10494. msm_routing_put_audio_mixer),
  10495. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. };
  10536. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10537. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10539. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10540. msm_routing_put_audio_mixer),
  10541. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10543. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10544. msm_routing_put_audio_mixer),
  10545. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10547. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10552. msm_routing_put_audio_mixer),
  10553. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10555. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10556. msm_routing_put_audio_mixer),
  10557. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10559. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10560. msm_routing_put_audio_mixer),
  10561. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10563. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10564. msm_routing_put_audio_mixer),
  10565. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10567. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. };
  10618. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10619. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10620. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10621. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10622. msm_routing_put_audio_mixer),
  10623. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. };
  10700. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10701. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10702. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10703. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10704. msm_routing_put_audio_mixer),
  10705. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10706. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10707. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10708. msm_routing_put_audio_mixer),
  10709. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10710. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10711. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10712. msm_routing_put_audio_mixer),
  10713. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10715. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10716. msm_routing_put_audio_mixer),
  10717. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. };
  10770. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  10771. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10772. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10773. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10774. msm_routing_put_audio_mixer),
  10775. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10776. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10777. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10778. msm_routing_put_audio_mixer),
  10779. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10780. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10781. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10782. msm_routing_put_audio_mixer),
  10783. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10786. msm_routing_put_audio_mixer),
  10787. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. };
  10836. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10837. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10840. msm_routing_put_audio_mixer),
  10841. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10842. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10843. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10844. msm_routing_put_audio_mixer),
  10845. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10846. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10847. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10848. msm_routing_put_audio_mixer),
  10849. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10850. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10851. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10852. msm_routing_put_audio_mixer),
  10853. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10854. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10855. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10856. msm_routing_put_audio_mixer),
  10857. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10858. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10859. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10860. msm_routing_put_audio_mixer),
  10861. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10863. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10864. msm_routing_put_audio_mixer),
  10865. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10867. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10868. msm_routing_put_audio_mixer),
  10869. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10870. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10871. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10872. msm_routing_put_audio_mixer),
  10873. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10874. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10875. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10876. msm_routing_put_audio_mixer),
  10877. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10879. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. };
  10914. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  10915. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10918. msm_routing_put_audio_mixer),
  10919. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10920. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10921. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10922. msm_routing_put_audio_mixer),
  10923. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10924. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10925. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10926. msm_routing_put_audio_mixer),
  10927. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10928. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10929. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10930. msm_routing_put_audio_mixer),
  10931. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10932. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10933. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10934. msm_routing_put_audio_mixer),
  10935. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10936. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10937. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10938. msm_routing_put_audio_mixer),
  10939. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10940. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10941. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10942. msm_routing_put_audio_mixer),
  10943. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10945. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10946. msm_routing_put_audio_mixer),
  10947. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10948. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10949. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10950. msm_routing_put_audio_mixer),
  10951. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10953. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10954. msm_routing_put_audio_mixer),
  10955. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10957. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10958. msm_routing_put_audio_mixer),
  10959. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10960. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10961. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10962. msm_routing_put_audio_mixer),
  10963. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10965. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10966. msm_routing_put_audio_mixer),
  10967. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10969. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10970. msm_routing_put_audio_mixer),
  10971. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10973. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10974. msm_routing_put_audio_mixer),
  10975. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. };
  10984. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10985. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10996. msm_routing_put_audio_mixer),
  10997. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10998. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10999. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11000. msm_routing_put_audio_mixer),
  11001. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11002. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11003. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11004. msm_routing_put_audio_mixer),
  11005. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11010. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11011. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11012. msm_routing_put_audio_mixer),
  11013. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11015. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11016. msm_routing_put_audio_mixer),
  11017. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11019. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11020. msm_routing_put_audio_mixer),
  11021. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11023. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11024. msm_routing_put_audio_mixer),
  11025. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11027. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11028. msm_routing_put_audio_mixer),
  11029. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11030. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11031. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. };
  11066. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11067. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11073. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11074. msm_routing_put_audio_mixer),
  11075. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. };
  11132. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11133. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11139. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11140. msm_routing_put_audio_mixer),
  11141. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11143. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11144. msm_routing_put_audio_mixer),
  11145. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11146. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11147. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11148. msm_routing_put_audio_mixer),
  11149. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11155. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11156. msm_routing_put_audio_mixer),
  11157. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11163. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11191. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11192. msm_routing_put_audio_mixer),
  11193. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11196. msm_routing_put_audio_mixer),
  11197. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11199. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11200. msm_routing_put_audio_mixer),
  11201. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11203. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11204. msm_routing_put_audio_mixer),
  11205. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11207. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11208. msm_routing_put_audio_mixer),
  11209. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. };
  11214. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11215. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11217. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11218. msm_routing_put_audio_mixer),
  11219. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11221. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11233. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11234. msm_routing_put_audio_mixer),
  11235. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11237. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11238. msm_routing_put_audio_mixer),
  11239. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11265. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11266. msm_routing_put_audio_mixer),
  11267. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11269. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11270. msm_routing_put_audio_mixer),
  11271. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11273. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11278. msm_routing_put_audio_mixer),
  11279. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11281. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11282. msm_routing_put_audio_mixer),
  11283. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. };
  11288. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11289. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11295. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11296. msm_routing_put_audio_mixer),
  11297. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11299. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11300. msm_routing_put_audio_mixer),
  11301. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11303. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11304. msm_routing_put_audio_mixer),
  11305. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11307. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11311. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11312. msm_routing_put_audio_mixer),
  11313. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11315. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11316. msm_routing_put_audio_mixer),
  11317. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11319. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11320. msm_routing_put_audio_mixer),
  11321. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11323. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11324. msm_routing_put_audio_mixer),
  11325. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11332. msm_routing_put_audio_mixer),
  11333. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. };
  11354. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11355. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11357. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11358. msm_routing_put_audio_mixer),
  11359. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11361. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11362. msm_routing_put_audio_mixer),
  11363. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11381. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11382. msm_routing_put_audio_mixer),
  11383. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11385. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11386. msm_routing_put_audio_mixer),
  11387. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11401. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11402. msm_routing_put_audio_mixer),
  11403. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11409. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11410. msm_routing_put_audio_mixer),
  11411. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11413. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11417. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11418. msm_routing_put_audio_mixer),
  11419. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11420. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11421. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11422. msm_routing_put_audio_mixer),
  11423. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11424. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11425. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11426. msm_routing_put_audio_mixer),
  11427. };
  11428. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11429. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11439. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11440. msm_routing_put_audio_mixer),
  11441. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11443. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11448. msm_routing_put_audio_mixer),
  11449. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11451. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11452. msm_routing_put_audio_mixer),
  11453. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11455. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11456. msm_routing_put_audio_mixer),
  11457. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11459. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11460. msm_routing_put_audio_mixer),
  11461. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11463. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11476. msm_routing_put_audio_mixer),
  11477. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11479. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11480. msm_routing_put_audio_mixer),
  11481. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11482. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11483. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11484. msm_routing_put_audio_mixer),
  11485. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11487. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11488. msm_routing_put_audio_mixer),
  11489. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11491. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11492. msm_routing_put_audio_mixer),
  11493. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11495. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11496. msm_routing_put_audio_mixer),
  11497. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11498. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11499. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11500. msm_routing_put_audio_mixer),
  11501. };
  11502. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11518. msm_routing_put_audio_mixer),
  11519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11522. msm_routing_put_audio_mixer),
  11523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11526. msm_routing_put_audio_mixer),
  11527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11538. msm_routing_put_audio_mixer),
  11539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11542. msm_routing_put_audio_mixer),
  11543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11546. msm_routing_put_audio_mixer),
  11547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11562. msm_routing_put_audio_mixer),
  11563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11566. msm_routing_put_audio_mixer),
  11567. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11569. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11570. msm_routing_put_audio_mixer),
  11571. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11573. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11574. msm_routing_put_audio_mixer),
  11575. };
  11576. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11577. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_PRI_I2S_TX,
  11579. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11580. msm_routing_put_audio_mixer),
  11581. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_MI2S_TX,
  11583. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11584. msm_routing_put_audio_mixer),
  11585. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11587. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11588. msm_routing_put_audio_mixer),
  11589. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11591. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11596. msm_routing_put_audio_mixer),
  11597. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11600. msm_routing_put_audio_mixer),
  11601. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11610. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11611. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11612. msm_routing_put_audio_mixer),
  11613. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11614. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11615. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11616. msm_routing_put_audio_mixer),
  11617. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_AUXPCM_TX,
  11619. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11620. msm_routing_put_audio_mixer),
  11621. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11623. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11624. msm_routing_put_audio_mixer),
  11625. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11627. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11628. msm_routing_put_audio_mixer),
  11629. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11631. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11632. msm_routing_put_audio_mixer),
  11633. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11635. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11636. msm_routing_put_audio_mixer),
  11637. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11639. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11640. msm_routing_put_audio_mixer),
  11641. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11643. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_INT_FM_TX,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_AFE_PCM_TX,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11652. msm_routing_put_audio_mixer),
  11653. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11712. msm_routing_put_audio_mixer),
  11713. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11715. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11716. msm_routing_put_audio_mixer),
  11717. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11719. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11720. msm_routing_put_audio_mixer),
  11721. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11723. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11724. msm_routing_put_audio_mixer),
  11725. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11727. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11728. msm_routing_put_audio_mixer),
  11729. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11731. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11732. msm_routing_put_audio_mixer),
  11733. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11735. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11736. msm_routing_put_audio_mixer),
  11737. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11739. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11740. msm_routing_put_audio_mixer),
  11741. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11743. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11744. msm_routing_put_audio_mixer),
  11745. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11747. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11748. msm_routing_put_audio_mixer),
  11749. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11751. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11752. msm_routing_put_audio_mixer),
  11753. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11755. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11756. msm_routing_put_audio_mixer),
  11757. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11759. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11760. msm_routing_put_audio_mixer),
  11761. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11763. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11764. msm_routing_put_audio_mixer),
  11765. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11767. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11768. msm_routing_put_audio_mixer),
  11769. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11771. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11772. msm_routing_put_audio_mixer),
  11773. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11774. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11775. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11776. msm_routing_put_audio_mixer),
  11777. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11779. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11780. msm_routing_put_audio_mixer),
  11781. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_USB_TX,
  11783. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11784. msm_routing_put_audio_mixer),
  11785. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11787. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11788. msm_routing_put_audio_mixer),
  11789. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11791. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11792. msm_routing_put_audio_mixer),
  11793. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11795. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11796. msm_routing_put_audio_mixer),
  11797. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11799. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11800. msm_routing_put_audio_mixer),
  11801. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11803. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11804. msm_routing_put_audio_mixer),
  11805. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11807. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11808. msm_routing_put_audio_mixer),
  11809. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11811. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11812. msm_routing_put_audio_mixer),
  11813. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11814. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11815. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11816. msm_routing_put_audio_mixer),
  11817. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11818. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11819. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11820. msm_routing_put_audio_mixer),
  11821. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11824. msm_routing_put_audio_mixer),
  11825. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11828. msm_routing_put_audio_mixer),
  11829. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11830. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11831. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11832. msm_routing_put_audio_mixer),
  11833. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11834. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11835. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11836. msm_routing_put_audio_mixer),
  11837. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11838. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11839. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11840. msm_routing_put_audio_mixer),
  11841. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11842. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11843. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11844. msm_routing_put_audio_mixer),
  11845. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11846. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11847. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11848. msm_routing_put_audio_mixer),
  11849. };
  11850. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  11851. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_INT_FM_TX,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_MI2S_TX,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11901. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11902. msm_routing_put_audio_mixer),
  11903. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11905. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11906. msm_routing_put_audio_mixer),
  11907. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11909. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11910. msm_routing_put_audio_mixer),
  11911. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11913. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11914. msm_routing_put_audio_mixer),
  11915. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11916. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11917. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11918. msm_routing_put_audio_mixer),
  11919. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11920. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11921. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11922. msm_routing_put_audio_mixer),
  11923. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11924. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11925. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11926. msm_routing_put_audio_mixer),
  11927. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11930. msm_routing_put_audio_mixer),
  11931. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11933. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11934. msm_routing_put_audio_mixer),
  11935. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11936. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11937. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11938. msm_routing_put_audio_mixer),
  11939. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11941. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11942. msm_routing_put_audio_mixer),
  11943. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11945. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11946. msm_routing_put_audio_mixer),
  11947. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11949. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11950. msm_routing_put_audio_mixer),
  11951. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11953. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11954. msm_routing_put_audio_mixer),
  11955. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11957. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11960. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11961. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11962. msm_routing_put_audio_mixer),
  11963. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11964. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11965. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11966. msm_routing_put_audio_mixer),
  11967. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11968. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11969. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11970. msm_routing_put_audio_mixer),
  11971. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11972. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11973. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11974. msm_routing_put_audio_mixer),
  11975. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11976. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11977. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11978. msm_routing_put_audio_mixer),
  11979. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11981. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11982. msm_routing_put_audio_mixer),
  11983. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11985. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11986. msm_routing_put_audio_mixer),
  11987. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11989. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11990. msm_routing_put_audio_mixer),
  11991. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11993. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11994. msm_routing_put_audio_mixer),
  11995. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11997. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11998. msm_routing_put_audio_mixer),
  11999. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12001. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12002. msm_routing_put_audio_mixer),
  12003. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_USB_TX,
  12005. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12006. msm_routing_put_audio_mixer),
  12007. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12008. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12009. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12010. msm_routing_put_audio_mixer),
  12011. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12013. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12014. msm_routing_put_audio_mixer),
  12015. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12016. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12017. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12018. msm_routing_put_audio_mixer),
  12019. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12020. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12021. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12022. msm_routing_put_audio_mixer),
  12023. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12024. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12025. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12026. msm_routing_put_audio_mixer),
  12027. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12028. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12029. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12030. msm_routing_put_audio_mixer),
  12031. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12033. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12034. msm_routing_put_audio_mixer),
  12035. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12037. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12038. msm_routing_put_audio_mixer),
  12039. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12041. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12042. msm_routing_put_audio_mixer),
  12043. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12045. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12046. msm_routing_put_audio_mixer),
  12047. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12048. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12049. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12050. msm_routing_put_audio_mixer),
  12051. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12053. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12054. msm_routing_put_audio_mixer),
  12055. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12056. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12057. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12058. msm_routing_put_audio_mixer),
  12059. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12060. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12061. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12062. msm_routing_put_audio_mixer),
  12063. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12064. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12065. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12066. msm_routing_put_audio_mixer),
  12067. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12068. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12069. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12070. msm_routing_put_audio_mixer),
  12071. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12073. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12074. msm_routing_put_audio_mixer),
  12075. };
  12076. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12077. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12079. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12080. msm_routing_put_audio_mixer),
  12081. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12083. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12084. msm_routing_put_audio_mixer),
  12085. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_INT_FM_TX,
  12087. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12088. msm_routing_put_audio_mixer),
  12089. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_MI2S_TX,
  12091. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12092. msm_routing_put_audio_mixer),
  12093. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_AFE_PCM_TX,
  12095. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12096. msm_routing_put_audio_mixer),
  12097. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12099. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12100. msm_routing_put_audio_mixer),
  12101. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_AUXPCM_TX,
  12103. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12104. msm_routing_put_audio_mixer),
  12105. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12107. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12108. msm_routing_put_audio_mixer),
  12109. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12111. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12112. msm_routing_put_audio_mixer),
  12113. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12115. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12116. msm_routing_put_audio_mixer),
  12117. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12119. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12120. msm_routing_put_audio_mixer),
  12121. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12123. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12124. msm_routing_put_audio_mixer),
  12125. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12127. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12128. msm_routing_put_audio_mixer),
  12129. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12131. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12132. msm_routing_put_audio_mixer),
  12133. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12135. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12136. msm_routing_put_audio_mixer),
  12137. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12139. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12140. msm_routing_put_audio_mixer),
  12141. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12143. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12144. msm_routing_put_audio_mixer),
  12145. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12147. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12148. msm_routing_put_audio_mixer),
  12149. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12151. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12159. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12160. msm_routing_put_audio_mixer),
  12161. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12163. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12164. msm_routing_put_audio_mixer),
  12165. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12167. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12168. msm_routing_put_audio_mixer),
  12169. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12171. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12172. msm_routing_put_audio_mixer),
  12173. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12175. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12176. msm_routing_put_audio_mixer),
  12177. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12179. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12180. msm_routing_put_audio_mixer),
  12181. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12182. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12183. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12184. msm_routing_put_audio_mixer),
  12185. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12186. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12187. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12188. msm_routing_put_audio_mixer),
  12189. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12191. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12192. msm_routing_put_audio_mixer),
  12193. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12195. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12196. msm_routing_put_audio_mixer),
  12197. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12199. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12200. msm_routing_put_audio_mixer),
  12201. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12203. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12204. msm_routing_put_audio_mixer),
  12205. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12207. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12208. msm_routing_put_audio_mixer),
  12209. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12211. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12212. msm_routing_put_audio_mixer),
  12213. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12215. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12216. msm_routing_put_audio_mixer),
  12217. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12219. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12220. msm_routing_put_audio_mixer),
  12221. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12223. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12224. msm_routing_put_audio_mixer),
  12225. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12227. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12228. msm_routing_put_audio_mixer),
  12229. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12231. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12232. msm_routing_put_audio_mixer),
  12233. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12235. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12236. msm_routing_put_audio_mixer),
  12237. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12239. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12240. msm_routing_put_audio_mixer),
  12241. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12242. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12243. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12244. msm_routing_put_audio_mixer),
  12245. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12247. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12248. msm_routing_put_audio_mixer),
  12249. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12251. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12252. msm_routing_put_audio_mixer),
  12253. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12255. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12256. msm_routing_put_audio_mixer),
  12257. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12259. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12260. msm_routing_put_audio_mixer),
  12261. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12263. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12264. msm_routing_put_audio_mixer),
  12265. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12267. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12268. msm_routing_put_audio_mixer),
  12269. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12271. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12272. msm_routing_put_audio_mixer),
  12273. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12274. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12275. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12276. msm_routing_put_audio_mixer),
  12277. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12279. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12280. msm_routing_put_audio_mixer),
  12281. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12283. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12284. msm_routing_put_audio_mixer),
  12285. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12287. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12288. msm_routing_put_audio_mixer),
  12289. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12291. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12292. msm_routing_put_audio_mixer),
  12293. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12295. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12296. msm_routing_put_audio_mixer),
  12297. };
  12298. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12299. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12301. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12302. msm_routing_put_audio_mixer),
  12303. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12304. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12305. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12306. msm_routing_put_audio_mixer),
  12307. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12308. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12309. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12310. msm_routing_put_audio_mixer),
  12311. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_INT_FM_TX,
  12313. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12314. msm_routing_put_audio_mixer),
  12315. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12317. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12318. msm_routing_put_audio_mixer),
  12319. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_AFE_PCM_TX,
  12321. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12322. msm_routing_put_audio_mixer),
  12323. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12324. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12325. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12326. msm_routing_put_audio_mixer),
  12327. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12328. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12329. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12330. msm_routing_put_audio_mixer),
  12331. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12333. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12334. msm_routing_put_audio_mixer),
  12335. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12337. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12338. msm_routing_put_audio_mixer),
  12339. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12341. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12342. msm_routing_put_audio_mixer),
  12343. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12344. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12345. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12346. msm_routing_put_audio_mixer),
  12347. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12349. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12350. msm_routing_put_audio_mixer),
  12351. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12353. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12354. msm_routing_put_audio_mixer),
  12355. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12357. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12358. msm_routing_put_audio_mixer),
  12359. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12361. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12362. msm_routing_put_audio_mixer),
  12363. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12365. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12366. msm_routing_put_audio_mixer),
  12367. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12369. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12370. msm_routing_put_audio_mixer),
  12371. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12373. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12374. msm_routing_put_audio_mixer),
  12375. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12377. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12378. msm_routing_put_audio_mixer),
  12379. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12381. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12382. msm_routing_put_audio_mixer),
  12383. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12385. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12386. msm_routing_put_audio_mixer),
  12387. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12389. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12390. msm_routing_put_audio_mixer),
  12391. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12393. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12394. msm_routing_put_audio_mixer),
  12395. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12397. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12398. msm_routing_put_audio_mixer),
  12399. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12401. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12402. msm_routing_put_audio_mixer),
  12403. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12405. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12406. msm_routing_put_audio_mixer),
  12407. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12409. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12410. msm_routing_put_audio_mixer),
  12411. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12413. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12414. msm_routing_put_audio_mixer),
  12415. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12417. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12418. msm_routing_put_audio_mixer),
  12419. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12420. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12421. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12422. msm_routing_put_audio_mixer),
  12423. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12424. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12425. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12426. msm_routing_put_audio_mixer),
  12427. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12429. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12430. msm_routing_put_audio_mixer),
  12431. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12432. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12433. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12434. msm_routing_put_audio_mixer),
  12435. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12436. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12437. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12438. msm_routing_put_audio_mixer),
  12439. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12440. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12441. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12442. msm_routing_put_audio_mixer),
  12443. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12444. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12445. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12446. msm_routing_put_audio_mixer),
  12447. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_USB_TX,
  12449. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12450. msm_routing_put_audio_mixer),
  12451. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12452. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12453. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12454. msm_routing_put_audio_mixer),
  12455. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12456. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12457. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12458. msm_routing_put_audio_mixer),
  12459. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12461. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12462. msm_routing_put_audio_mixer),
  12463. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12465. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12466. msm_routing_put_audio_mixer),
  12467. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12469. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12470. msm_routing_put_audio_mixer),
  12471. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12472. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12473. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12474. msm_routing_put_audio_mixer),
  12475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12477. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12478. msm_routing_put_audio_mixer),
  12479. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12481. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12482. msm_routing_put_audio_mixer),
  12483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12485. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12486. msm_routing_put_audio_mixer),
  12487. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12488. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12489. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12490. msm_routing_put_audio_mixer),
  12491. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12492. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12493. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12494. msm_routing_put_audio_mixer),
  12495. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12497. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12498. msm_routing_put_audio_mixer),
  12499. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12501. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12502. msm_routing_put_audio_mixer),
  12503. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12505. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12506. msm_routing_put_audio_mixer),
  12507. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12508. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12509. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12510. msm_routing_put_audio_mixer),
  12511. };
  12512. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12513. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12515. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12516. msm_routing_put_audio_mixer),
  12517. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12519. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12520. msm_routing_put_audio_mixer),
  12521. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_INT_FM_TX,
  12523. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12524. msm_routing_put_audio_mixer),
  12525. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_MI2S_TX,
  12527. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12528. msm_routing_put_audio_mixer),
  12529. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_AFE_PCM_TX,
  12531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12532. msm_routing_put_audio_mixer),
  12533. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12535. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12536. msm_routing_put_audio_mixer),
  12537. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_AUXPCM_TX,
  12539. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12540. msm_routing_put_audio_mixer),
  12541. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12543. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12544. msm_routing_put_audio_mixer),
  12545. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12547. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12548. msm_routing_put_audio_mixer),
  12549. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12551. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12552. msm_routing_put_audio_mixer),
  12553. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12555. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12556. msm_routing_put_audio_mixer),
  12557. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12559. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12560. msm_routing_put_audio_mixer),
  12561. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12563. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12564. msm_routing_put_audio_mixer),
  12565. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12567. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12568. msm_routing_put_audio_mixer),
  12569. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12571. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12572. msm_routing_put_audio_mixer),
  12573. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12575. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12576. msm_routing_put_audio_mixer),
  12577. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12578. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12579. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12580. msm_routing_put_audio_mixer),
  12581. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12583. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12584. msm_routing_put_audio_mixer),
  12585. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12587. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12588. msm_routing_put_audio_mixer),
  12589. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12590. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12592. msm_routing_put_audio_mixer),
  12593. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12594. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12595. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12596. msm_routing_put_audio_mixer),
  12597. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12599. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12600. msm_routing_put_audio_mixer),
  12601. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12603. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12604. msm_routing_put_audio_mixer),
  12605. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12607. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12608. msm_routing_put_audio_mixer),
  12609. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12611. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12612. msm_routing_put_audio_mixer),
  12613. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12614. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12615. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12616. msm_routing_put_audio_mixer),
  12617. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12618. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12619. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12620. msm_routing_put_audio_mixer),
  12621. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12623. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12624. msm_routing_put_audio_mixer),
  12625. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12626. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12627. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12628. msm_routing_put_audio_mixer),
  12629. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12630. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12631. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12632. msm_routing_put_audio_mixer),
  12633. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12635. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12636. msm_routing_put_audio_mixer),
  12637. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12638. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12639. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12640. msm_routing_put_audio_mixer),
  12641. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12643. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12644. msm_routing_put_audio_mixer),
  12645. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12646. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12647. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12648. msm_routing_put_audio_mixer),
  12649. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12650. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12651. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12652. msm_routing_put_audio_mixer),
  12653. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12654. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12655. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12656. msm_routing_put_audio_mixer),
  12657. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12658. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12659. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12660. msm_routing_put_audio_mixer),
  12661. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12662. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12663. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12664. msm_routing_put_audio_mixer),
  12665. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12666. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12667. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12668. msm_routing_put_audio_mixer),
  12669. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12670. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12671. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12672. msm_routing_put_audio_mixer),
  12673. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12675. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12676. msm_routing_put_audio_mixer),
  12677. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12678. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12679. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12680. msm_routing_put_audio_mixer),
  12681. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12682. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12683. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12684. msm_routing_put_audio_mixer),
  12685. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12686. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12687. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12688. msm_routing_put_audio_mixer),
  12689. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_USB_TX,
  12691. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12692. msm_routing_put_audio_mixer),
  12693. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12695. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12696. msm_routing_put_audio_mixer),
  12697. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12699. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12700. msm_routing_put_audio_mixer),
  12701. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12703. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12704. msm_routing_put_audio_mixer),
  12705. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12707. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12708. msm_routing_put_audio_mixer),
  12709. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12711. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12712. msm_routing_put_audio_mixer),
  12713. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12715. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12716. msm_routing_put_audio_mixer),
  12717. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12719. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12720. msm_routing_put_audio_mixer),
  12721. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12723. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12724. msm_routing_put_audio_mixer),
  12725. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12727. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12728. msm_routing_put_audio_mixer),
  12729. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12731. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12732. msm_routing_put_audio_mixer),
  12733. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12735. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12736. msm_routing_put_audio_mixer),
  12737. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12739. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12740. msm_routing_put_audio_mixer),
  12741. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12742. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12743. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12744. msm_routing_put_audio_mixer),
  12745. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12747. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12748. msm_routing_put_audio_mixer),
  12749. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12751. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12752. msm_routing_put_audio_mixer),
  12753. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12755. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12756. msm_routing_put_audio_mixer),
  12757. };
  12758. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12759. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_INT_FM_TX,
  12761. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12762. msm_routing_put_audio_mixer),
  12763. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12765. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12766. msm_routing_put_audio_mixer),
  12767. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12769. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12770. msm_routing_put_audio_mixer),
  12771. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12773. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12774. msm_routing_put_audio_mixer),
  12775. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12777. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12778. msm_routing_put_audio_mixer),
  12779. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12781. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12782. msm_routing_put_audio_mixer),
  12783. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12784. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12785. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12786. msm_routing_put_audio_mixer),
  12787. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12788. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12789. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12790. msm_routing_put_audio_mixer),
  12791. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12792. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12793. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12794. msm_routing_put_audio_mixer),
  12795. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12797. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12798. msm_routing_put_audio_mixer),
  12799. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12801. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12802. msm_routing_put_audio_mixer),
  12803. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12804. MSM_BACKEND_DAI_AUXPCM_TX,
  12805. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12806. msm_routing_put_audio_mixer),
  12807. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12808. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12809. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12810. msm_routing_put_audio_mixer),
  12811. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12812. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12813. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12814. msm_routing_put_audio_mixer),
  12815. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12817. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12818. msm_routing_put_audio_mixer),
  12819. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12821. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12822. msm_routing_put_audio_mixer),
  12823. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12824. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12825. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12826. msm_routing_put_audio_mixer),
  12827. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12829. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12830. msm_routing_put_audio_mixer),
  12831. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12833. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12834. msm_routing_put_audio_mixer),
  12835. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12837. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12838. msm_routing_put_audio_mixer),
  12839. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12841. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12842. msm_routing_put_audio_mixer),
  12843. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12845. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12846. msm_routing_put_audio_mixer),
  12847. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12849. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12850. msm_routing_put_audio_mixer),
  12851. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12853. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12854. msm_routing_put_audio_mixer),
  12855. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12857. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12858. msm_routing_put_audio_mixer),
  12859. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12861. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12862. msm_routing_put_audio_mixer),
  12863. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12864. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12865. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12866. msm_routing_put_audio_mixer),
  12867. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12868. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12869. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12870. msm_routing_put_audio_mixer),
  12871. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12872. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12873. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12874. msm_routing_put_audio_mixer),
  12875. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12876. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12877. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12878. msm_routing_put_audio_mixer),
  12879. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12880. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12881. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12882. msm_routing_put_audio_mixer),
  12883. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12884. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12885. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12886. msm_routing_put_audio_mixer),
  12887. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12889. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12890. msm_routing_put_audio_mixer),
  12891. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12892. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12893. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12894. msm_routing_put_audio_mixer),
  12895. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12896. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12897. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12898. msm_routing_put_audio_mixer),
  12899. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12900. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12901. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12902. msm_routing_put_audio_mixer),
  12903. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12904. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12905. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12906. msm_routing_put_audio_mixer),
  12907. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12908. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12909. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12910. msm_routing_put_audio_mixer),
  12911. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12913. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12914. msm_routing_put_audio_mixer),
  12915. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12916. MSM_BACKEND_DAI_USB_TX,
  12917. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12918. msm_routing_put_audio_mixer),
  12919. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12920. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12921. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12922. msm_routing_put_audio_mixer),
  12923. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12924. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12925. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12926. msm_routing_put_audio_mixer),
  12927. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12928. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12929. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12930. msm_routing_put_audio_mixer),
  12931. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12933. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12934. msm_routing_put_audio_mixer),
  12935. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12936. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12937. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12938. msm_routing_put_audio_mixer),
  12939. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12941. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12942. msm_routing_put_audio_mixer),
  12943. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12946. msm_routing_put_audio_mixer),
  12947. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12949. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12950. msm_routing_put_audio_mixer),
  12951. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12953. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12954. msm_routing_put_audio_mixer),
  12955. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12957. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12958. msm_routing_put_audio_mixer),
  12959. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12961. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12962. msm_routing_put_audio_mixer),
  12963. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12965. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12966. msm_routing_put_audio_mixer),
  12967. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12969. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12970. msm_routing_put_audio_mixer),
  12971. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12973. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12974. msm_routing_put_audio_mixer),
  12975. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12977. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12978. msm_routing_put_audio_mixer),
  12979. };
  12980. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12981. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12983. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12984. msm_routing_put_audio_mixer),
  12985. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12986. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12987. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12988. msm_routing_put_audio_mixer),
  12989. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12991. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12992. msm_routing_put_audio_mixer),
  12993. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12995. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12996. msm_routing_put_audio_mixer),
  12997. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12998. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12999. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13000. msm_routing_put_audio_mixer),
  13001. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13002. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13003. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13004. msm_routing_put_audio_mixer),
  13005. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13006. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13007. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13008. msm_routing_put_audio_mixer),
  13009. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13011. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13012. msm_routing_put_audio_mixer),
  13013. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_INT_FM_TX,
  13015. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13016. msm_routing_put_audio_mixer),
  13017. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13019. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13020. msm_routing_put_audio_mixer),
  13021. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_AFE_PCM_TX,
  13023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13024. msm_routing_put_audio_mixer),
  13025. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13026. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13027. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13028. msm_routing_put_audio_mixer),
  13029. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13031. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13032. msm_routing_put_audio_mixer),
  13033. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13035. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13036. msm_routing_put_audio_mixer),
  13037. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13038. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13039. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13040. msm_routing_put_audio_mixer),
  13041. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13042. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13043. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13044. msm_routing_put_audio_mixer),
  13045. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13046. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13047. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13048. msm_routing_put_audio_mixer),
  13049. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13050. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13051. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13052. msm_routing_put_audio_mixer),
  13053. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13055. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13056. msm_routing_put_audio_mixer),
  13057. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13058. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13059. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13060. msm_routing_put_audio_mixer),
  13061. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13063. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13064. msm_routing_put_audio_mixer),
  13065. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13066. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13067. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13068. msm_routing_put_audio_mixer),
  13069. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13070. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13071. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13072. msm_routing_put_audio_mixer),
  13073. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13074. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13075. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13076. msm_routing_put_audio_mixer),
  13077. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13078. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13079. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13080. msm_routing_put_audio_mixer),
  13081. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13083. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13084. msm_routing_put_audio_mixer),
  13085. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13087. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13088. msm_routing_put_audio_mixer),
  13089. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13091. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13092. msm_routing_put_audio_mixer),
  13093. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13095. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13096. msm_routing_put_audio_mixer),
  13097. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13099. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13100. msm_routing_put_audio_mixer),
  13101. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13103. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13104. msm_routing_put_audio_mixer),
  13105. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13107. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13108. msm_routing_put_audio_mixer),
  13109. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13111. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13112. msm_routing_put_audio_mixer),
  13113. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13115. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13116. msm_routing_put_audio_mixer),
  13117. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13118. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13119. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13120. msm_routing_put_audio_mixer),
  13121. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13122. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13123. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13124. msm_routing_put_audio_mixer),
  13125. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13127. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13128. msm_routing_put_audio_mixer),
  13129. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13132. msm_routing_put_audio_mixer),
  13133. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13135. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13136. msm_routing_put_audio_mixer),
  13137. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_USB_TX,
  13139. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13140. msm_routing_put_audio_mixer),
  13141. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13143. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13144. msm_routing_put_audio_mixer),
  13145. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13147. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13148. msm_routing_put_audio_mixer),
  13149. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13151. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13152. msm_routing_put_audio_mixer),
  13153. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13155. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13156. msm_routing_put_audio_mixer),
  13157. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13159. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13160. msm_routing_put_audio_mixer),
  13161. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13163. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13164. msm_routing_put_audio_mixer),
  13165. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13167. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13168. msm_routing_put_audio_mixer),
  13169. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13171. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13172. msm_routing_put_audio_mixer),
  13173. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13175. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13176. msm_routing_put_audio_mixer),
  13177. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13179. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13180. msm_routing_put_audio_mixer),
  13181. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13184. msm_routing_put_audio_mixer),
  13185. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13187. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13188. msm_routing_put_audio_mixer),
  13189. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13191. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13192. msm_routing_put_audio_mixer),
  13193. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13195. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13196. msm_routing_put_audio_mixer),
  13197. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13199. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13200. msm_routing_put_audio_mixer),
  13201. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13203. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13204. msm_routing_put_audio_mixer),
  13205. };
  13206. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13207. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13209. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13210. msm_routing_put_audio_mixer),
  13211. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13212. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13213. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13214. msm_routing_put_audio_mixer),
  13215. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13216. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13217. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13218. msm_routing_put_audio_mixer),
  13219. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13220. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13221. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13222. msm_routing_put_audio_mixer),
  13223. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13224. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13225. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13226. msm_routing_put_audio_mixer),
  13227. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13228. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13229. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13230. msm_routing_put_audio_mixer),
  13231. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13232. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13234. msm_routing_put_audio_mixer),
  13235. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13236. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13237. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13238. msm_routing_put_audio_mixer),
  13239. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13240. MSM_BACKEND_DAI_INT_FM_TX,
  13241. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13242. msm_routing_put_audio_mixer),
  13243. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13245. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13246. msm_routing_put_audio_mixer),
  13247. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_AFE_PCM_TX,
  13249. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13250. msm_routing_put_audio_mixer),
  13251. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13252. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13253. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13254. msm_routing_put_audio_mixer),
  13255. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13257. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13258. msm_routing_put_audio_mixer),
  13259. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13261. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13262. msm_routing_put_audio_mixer),
  13263. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13265. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13266. msm_routing_put_audio_mixer),
  13267. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13269. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13270. msm_routing_put_audio_mixer),
  13271. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13273. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13274. msm_routing_put_audio_mixer),
  13275. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13277. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13278. msm_routing_put_audio_mixer),
  13279. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13281. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13282. msm_routing_put_audio_mixer),
  13283. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13285. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13286. msm_routing_put_audio_mixer),
  13287. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13290. msm_routing_put_audio_mixer),
  13291. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13293. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13294. msm_routing_put_audio_mixer),
  13295. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13297. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13298. msm_routing_put_audio_mixer),
  13299. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13301. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13302. msm_routing_put_audio_mixer),
  13303. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13305. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13306. msm_routing_put_audio_mixer),
  13307. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13309. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13310. msm_routing_put_audio_mixer),
  13311. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13313. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13314. msm_routing_put_audio_mixer),
  13315. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13317. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13318. msm_routing_put_audio_mixer),
  13319. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13321. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13322. msm_routing_put_audio_mixer),
  13323. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13325. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13326. msm_routing_put_audio_mixer),
  13327. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13328. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13329. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13330. msm_routing_put_audio_mixer),
  13331. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13332. MSM_BACKEND_DAI_USB_TX,
  13333. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13334. msm_routing_put_audio_mixer),
  13335. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_MI2S_TX,
  13337. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13338. msm_routing_put_audio_mixer),
  13339. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_AUXPCM_TX,
  13341. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13342. msm_routing_put_audio_mixer),
  13343. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13344. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13345. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13346. msm_routing_put_audio_mixer),
  13347. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13348. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13349. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13350. msm_routing_put_audio_mixer),
  13351. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13353. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13354. msm_routing_put_audio_mixer),
  13355. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13357. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13358. msm_routing_put_audio_mixer),
  13359. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13361. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13362. msm_routing_put_audio_mixer),
  13363. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13365. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13366. msm_routing_put_audio_mixer),
  13367. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13369. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13370. msm_routing_put_audio_mixer),
  13371. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13373. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13374. msm_routing_put_audio_mixer),
  13375. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13377. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13378. msm_routing_get_audio_mixer,
  13379. msm_routing_put_audio_mixer),
  13380. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13381. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13382. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13383. msm_routing_get_audio_mixer,
  13384. msm_routing_put_audio_mixer),
  13385. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13386. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13387. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13388. msm_routing_get_audio_mixer,
  13389. msm_routing_put_audio_mixer),
  13390. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13391. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13392. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13393. msm_routing_get_audio_mixer,
  13394. msm_routing_put_audio_mixer),
  13395. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13396. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13397. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13398. msm_routing_get_audio_mixer,
  13399. msm_routing_put_audio_mixer),
  13400. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13401. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13402. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13403. msm_routing_get_audio_mixer,
  13404. msm_routing_put_audio_mixer),
  13405. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13406. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13407. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13408. msm_routing_put_audio_mixer),
  13409. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13411. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13412. msm_routing_put_audio_mixer),
  13413. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13414. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13415. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13416. msm_routing_put_audio_mixer),
  13417. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13419. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13420. msm_routing_put_audio_mixer),
  13421. };
  13422. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13423. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13425. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13426. msm_routing_put_audio_mixer),
  13427. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13429. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13430. msm_routing_put_audio_mixer),
  13431. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13433. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_INT_FM_TX,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13442. msm_routing_put_audio_mixer),
  13443. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13444. MSM_BACKEND_DAI_AFE_PCM_TX,
  13445. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13446. msm_routing_put_audio_mixer),
  13447. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13449. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13450. msm_routing_put_audio_mixer),
  13451. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13453. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13454. msm_routing_put_audio_mixer),
  13455. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13456. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13457. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13458. msm_routing_put_audio_mixer),
  13459. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13461. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13462. msm_routing_put_audio_mixer),
  13463. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13486. msm_routing_put_audio_mixer),
  13487. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13489. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13490. msm_routing_put_audio_mixer),
  13491. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13493. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13494. msm_routing_put_audio_mixer),
  13495. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13497. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13498. msm_routing_put_audio_mixer),
  13499. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13501. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13502. msm_routing_put_audio_mixer),
  13503. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13505. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13506. msm_routing_put_audio_mixer),
  13507. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13509. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13510. msm_routing_put_audio_mixer),
  13511. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13513. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13514. msm_routing_put_audio_mixer),
  13515. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13517. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13518. msm_routing_put_audio_mixer),
  13519. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13521. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13522. msm_routing_put_audio_mixer),
  13523. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13525. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13526. msm_routing_put_audio_mixer),
  13527. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13529. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13530. msm_routing_put_audio_mixer),
  13531. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13533. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13534. msm_routing_put_audio_mixer),
  13535. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13538. msm_routing_put_audio_mixer),
  13539. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13549. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13550. msm_routing_put_audio_mixer),
  13551. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13553. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13554. msm_routing_put_audio_mixer),
  13555. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13557. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13558. msm_routing_put_audio_mixer),
  13559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13561. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13562. msm_routing_put_audio_mixer),
  13563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13565. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13566. msm_routing_put_audio_mixer),
  13567. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13569. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13570. msm_routing_put_audio_mixer),
  13571. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13573. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13574. msm_routing_put_audio_mixer),
  13575. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13577. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13578. msm_routing_put_audio_mixer),
  13579. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13581. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13582. msm_routing_put_audio_mixer),
  13583. };
  13584. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13585. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13586. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13587. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13588. msm_routing_put_audio_mixer),
  13589. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13590. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13591. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13592. msm_routing_put_audio_mixer),
  13593. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13594. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13595. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13596. msm_routing_put_audio_mixer),
  13597. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13598. MSM_BACKEND_DAI_INT_FM_TX,
  13599. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13600. msm_routing_put_audio_mixer),
  13601. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13602. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13603. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13604. msm_routing_put_audio_mixer),
  13605. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13606. MSM_BACKEND_DAI_AFE_PCM_TX,
  13607. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13608. msm_routing_put_audio_mixer),
  13609. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13610. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13612. msm_routing_put_audio_mixer),
  13613. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13614. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13615. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13616. msm_routing_put_audio_mixer),
  13617. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13618. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13619. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13620. msm_routing_put_audio_mixer),
  13621. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13623. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13624. msm_routing_put_audio_mixer),
  13625. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13626. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13627. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13628. msm_routing_put_audio_mixer),
  13629. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13630. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13631. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13632. msm_routing_put_audio_mixer),
  13633. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13634. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13635. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13636. msm_routing_put_audio_mixer),
  13637. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13638. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13639. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13640. msm_routing_put_audio_mixer),
  13641. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13643. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13644. msm_routing_put_audio_mixer),
  13645. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13647. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13648. msm_routing_put_audio_mixer),
  13649. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13651. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13652. msm_routing_put_audio_mixer),
  13653. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13655. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13656. msm_routing_put_audio_mixer),
  13657. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_USB_TX,
  13659. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13660. msm_routing_put_audio_mixer),
  13661. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_MI2S_TX,
  13663. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13664. msm_routing_put_audio_mixer),
  13665. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_AUXPCM_TX,
  13667. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13668. msm_routing_put_audio_mixer),
  13669. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13671. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13672. msm_routing_put_audio_mixer),
  13673. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13675. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13676. msm_routing_put_audio_mixer),
  13677. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13679. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13680. msm_routing_put_audio_mixer),
  13681. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13683. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13684. msm_routing_put_audio_mixer),
  13685. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13687. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13688. msm_routing_put_audio_mixer),
  13689. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13690. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13691. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13692. msm_routing_put_audio_mixer),
  13693. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13695. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13696. msm_routing_put_audio_mixer),
  13697. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13699. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13700. msm_routing_put_audio_mixer),
  13701. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13702. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13703. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13704. msm_routing_put_audio_mixer),
  13705. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13706. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13707. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13708. msm_routing_put_audio_mixer),
  13709. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13710. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13711. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13712. msm_routing_put_audio_mixer),
  13713. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13715. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13716. msm_routing_put_audio_mixer),
  13717. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13718. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13719. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13720. msm_routing_get_audio_mixer,
  13721. msm_routing_put_audio_mixer),
  13722. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13723. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13724. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13725. msm_routing_get_audio_mixer,
  13726. msm_routing_put_audio_mixer),
  13727. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13729. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13730. msm_routing_get_audio_mixer,
  13731. msm_routing_put_audio_mixer),
  13732. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13733. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13734. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13735. msm_routing_get_audio_mixer,
  13736. msm_routing_put_audio_mixer),
  13737. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13739. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13740. msm_routing_get_audio_mixer,
  13741. msm_routing_put_audio_mixer),
  13742. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13745. msm_routing_get_audio_mixer,
  13746. msm_routing_put_audio_mixer),
  13747. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13748. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13749. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13750. msm_routing_put_audio_mixer),
  13751. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13752. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13753. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13754. msm_routing_put_audio_mixer),
  13755. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13756. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13757. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13758. msm_routing_put_audio_mixer),
  13759. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13760. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13762. msm_routing_put_audio_mixer),
  13763. };
  13764. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13765. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13767. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13768. msm_routing_put_audio_mixer),
  13769. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13770. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13771. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13772. msm_routing_put_audio_mixer),
  13773. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13775. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13776. msm_routing_put_audio_mixer),
  13777. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13779. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13780. msm_routing_put_audio_mixer),
  13781. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13782. MSM_BACKEND_DAI_INT_FM_TX,
  13783. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13784. msm_routing_put_audio_mixer),
  13785. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13786. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13787. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13788. msm_routing_put_audio_mixer),
  13789. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_AFE_PCM_TX,
  13791. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13792. msm_routing_put_audio_mixer),
  13793. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13794. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13795. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13796. msm_routing_put_audio_mixer),
  13797. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13798. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13799. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13800. msm_routing_put_audio_mixer),
  13801. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13802. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13803. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13804. msm_routing_put_audio_mixer),
  13805. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13807. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13808. msm_routing_put_audio_mixer),
  13809. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13811. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13812. msm_routing_put_audio_mixer),
  13813. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13814. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13815. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13816. msm_routing_put_audio_mixer),
  13817. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13818. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13819. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13820. msm_routing_put_audio_mixer),
  13821. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13822. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13823. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13824. msm_routing_put_audio_mixer),
  13825. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13826. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13827. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13828. msm_routing_put_audio_mixer),
  13829. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13830. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13831. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13832. msm_routing_put_audio_mixer),
  13833. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13834. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13835. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13836. msm_routing_get_audio_mixer,
  13837. msm_routing_put_audio_mixer),
  13838. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13839. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13840. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13841. msm_routing_get_audio_mixer,
  13842. msm_routing_put_audio_mixer),
  13843. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13845. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13846. msm_routing_get_audio_mixer,
  13847. msm_routing_put_audio_mixer),
  13848. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13849. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13850. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13851. msm_routing_get_audio_mixer,
  13852. msm_routing_put_audio_mixer),
  13853. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13854. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13855. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13856. msm_routing_get_audio_mixer,
  13857. msm_routing_put_audio_mixer),
  13858. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13859. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13860. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13861. msm_routing_get_audio_mixer,
  13862. msm_routing_put_audio_mixer),
  13863. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13865. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13866. msm_routing_put_audio_mixer),
  13867. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13869. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13870. msm_routing_put_audio_mixer),
  13871. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13873. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13874. msm_routing_put_audio_mixer),
  13875. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13877. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13878. msm_routing_put_audio_mixer),
  13879. };
  13880. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  13881. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13882. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13883. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13884. msm_routing_put_audio_mixer),
  13885. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13886. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13887. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13888. msm_routing_put_audio_mixer),
  13889. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13890. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13891. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13892. msm_routing_put_audio_mixer),
  13893. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13894. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13895. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13896. msm_routing_put_audio_mixer),
  13897. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13898. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13899. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13900. msm_routing_put_audio_mixer),
  13901. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13902. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13903. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13904. msm_routing_put_audio_mixer),
  13905. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13906. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13907. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13908. msm_routing_put_audio_mixer),
  13909. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13910. MSM_BACKEND_DAI_INT_FM_TX,
  13911. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13912. msm_routing_put_audio_mixer),
  13913. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13914. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13915. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13916. msm_routing_put_audio_mixer),
  13917. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_AFE_PCM_TX,
  13919. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13920. msm_routing_put_audio_mixer),
  13921. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13922. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13923. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13924. msm_routing_put_audio_mixer),
  13925. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13926. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13927. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13928. msm_routing_put_audio_mixer),
  13929. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13930. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13931. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13932. msm_routing_put_audio_mixer),
  13933. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13934. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13935. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13936. msm_routing_put_audio_mixer),
  13937. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13938. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13939. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13940. msm_routing_put_audio_mixer),
  13941. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13942. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13943. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13944. msm_routing_put_audio_mixer),
  13945. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13946. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13947. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13948. msm_routing_put_audio_mixer),
  13949. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13950. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13951. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13952. msm_routing_put_audio_mixer),
  13953. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13954. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13955. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13956. msm_routing_get_audio_mixer,
  13957. msm_routing_put_audio_mixer),
  13958. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13959. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13960. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13961. msm_routing_get_audio_mixer,
  13962. msm_routing_put_audio_mixer),
  13963. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13964. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13965. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13966. msm_routing_get_audio_mixer,
  13967. msm_routing_put_audio_mixer),
  13968. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13969. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13970. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13971. msm_routing_get_audio_mixer,
  13972. msm_routing_put_audio_mixer),
  13973. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13974. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13975. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13976. msm_routing_get_audio_mixer,
  13977. msm_routing_put_audio_mixer),
  13978. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13979. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13980. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13981. msm_routing_get_audio_mixer,
  13982. msm_routing_put_audio_mixer),
  13983. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13985. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13986. msm_routing_put_audio_mixer),
  13987. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13988. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13989. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13990. msm_routing_put_audio_mixer),
  13991. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13992. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13993. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13994. msm_routing_put_audio_mixer),
  13995. };
  13996. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  13997. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14000. msm_routing_put_audio_mixer),
  14001. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14003. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14004. msm_routing_put_audio_mixer),
  14005. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14007. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14008. msm_routing_put_audio_mixer),
  14009. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14011. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14012. msm_routing_put_audio_mixer),
  14013. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_INT_FM_TX,
  14015. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14016. msm_routing_put_audio_mixer),
  14017. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14019. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14020. msm_routing_put_audio_mixer),
  14021. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_AFE_PCM_TX,
  14023. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14035. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14036. msm_routing_put_audio_mixer),
  14037. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14039. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14040. msm_routing_put_audio_mixer),
  14041. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14043. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14044. msm_routing_put_audio_mixer),
  14045. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14047. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14048. msm_routing_put_audio_mixer),
  14049. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14051. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14052. msm_routing_put_audio_mixer),
  14053. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14055. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14056. msm_routing_put_audio_mixer),
  14057. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14059. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14060. msm_routing_put_audio_mixer),
  14061. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14062. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14063. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14064. msm_routing_put_audio_mixer),
  14065. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14066. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14067. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14068. msm_routing_put_audio_mixer),
  14069. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14071. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14072. msm_routing_get_audio_mixer,
  14073. msm_routing_put_audio_mixer),
  14074. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14075. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14076. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14077. msm_routing_get_audio_mixer,
  14078. msm_routing_put_audio_mixer),
  14079. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14080. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14081. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14082. msm_routing_get_audio_mixer,
  14083. msm_routing_put_audio_mixer),
  14084. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14085. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14086. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14087. msm_routing_get_audio_mixer,
  14088. msm_routing_put_audio_mixer),
  14089. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14091. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14092. msm_routing_get_audio_mixer,
  14093. msm_routing_put_audio_mixer),
  14094. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14095. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14096. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14097. msm_routing_get_audio_mixer,
  14098. msm_routing_put_audio_mixer),
  14099. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14100. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14101. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14102. msm_routing_put_audio_mixer),
  14103. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14104. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14105. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14106. msm_routing_put_audio_mixer),
  14107. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14108. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14109. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14110. msm_routing_put_audio_mixer),
  14111. };
  14112. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14113. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14115. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14116. msm_routing_put_audio_mixer),
  14117. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14118. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14119. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14120. msm_routing_put_audio_mixer),
  14121. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14122. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14123. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14124. msm_routing_put_audio_mixer),
  14125. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14126. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14127. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14128. msm_routing_put_audio_mixer),
  14129. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14130. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14131. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14132. msm_routing_put_audio_mixer),
  14133. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14134. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14135. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14136. msm_routing_put_audio_mixer),
  14137. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14138. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14139. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14140. msm_routing_put_audio_mixer),
  14141. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14143. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14144. msm_routing_put_audio_mixer),
  14145. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14147. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14148. msm_routing_put_audio_mixer),
  14149. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14150. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14151. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14152. msm_routing_put_audio_mixer),
  14153. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14154. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14155. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14156. msm_routing_put_audio_mixer),
  14157. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14159. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14160. msm_routing_put_audio_mixer),
  14161. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14162. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14163. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14164. msm_routing_put_audio_mixer),
  14165. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14166. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14167. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14168. msm_routing_put_audio_mixer),
  14169. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14170. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14171. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14172. msm_routing_put_audio_mixer),
  14173. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14174. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14175. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14176. msm_routing_put_audio_mixer),
  14177. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14178. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14179. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14180. msm_routing_put_audio_mixer),
  14181. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14182. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14183. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14184. msm_routing_put_audio_mixer),
  14185. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14186. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14187. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14188. msm_routing_put_audio_mixer),
  14189. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14190. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14191. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14192. msm_routing_put_audio_mixer),
  14193. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14194. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14195. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14196. msm_routing_put_audio_mixer),
  14197. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14199. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14200. msm_routing_put_audio_mixer),
  14201. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14203. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14204. msm_routing_put_audio_mixer),
  14205. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14207. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14208. msm_routing_put_audio_mixer),
  14209. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14211. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14212. msm_routing_put_audio_mixer),
  14213. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14215. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14216. msm_routing_put_audio_mixer),
  14217. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14219. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14220. msm_routing_put_audio_mixer),
  14221. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14223. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14224. msm_routing_put_audio_mixer),
  14225. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14227. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14228. msm_routing_put_audio_mixer),
  14229. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14231. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14232. msm_routing_put_audio_mixer),
  14233. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14235. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14236. msm_routing_put_audio_mixer),
  14237. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14239. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14240. msm_routing_put_audio_mixer),
  14241. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14243. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14244. msm_routing_put_audio_mixer),
  14245. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14247. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14248. msm_routing_put_audio_mixer),
  14249. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14251. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14252. msm_routing_put_audio_mixer),
  14253. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14255. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14256. msm_routing_put_audio_mixer),
  14257. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14259. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14260. msm_routing_put_audio_mixer),
  14261. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14262. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14263. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14264. msm_routing_put_audio_mixer),
  14265. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14267. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14268. msm_routing_put_audio_mixer),
  14269. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14271. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14272. msm_routing_put_audio_mixer),
  14273. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14275. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14276. msm_routing_put_audio_mixer),
  14277. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14278. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14279. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14280. msm_routing_put_audio_mixer),
  14281. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14282. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14283. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14284. msm_routing_put_audio_mixer),
  14285. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14286. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14287. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14288. msm_routing_put_audio_mixer),
  14289. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14290. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14291. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14292. msm_routing_put_audio_mixer),
  14293. };
  14294. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14295. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14296. MSM_BACKEND_DAI_AUXPCM_TX,
  14297. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14298. msm_routing_put_audio_mixer),
  14299. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14300. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14301. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14302. msm_routing_put_audio_mixer),
  14303. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14304. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14305. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14306. msm_routing_put_audio_mixer),
  14307. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14308. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14309. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14310. msm_routing_put_audio_mixer),
  14311. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14312. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14313. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14314. msm_routing_put_audio_mixer),
  14315. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14316. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14317. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14318. msm_routing_put_audio_mixer),
  14319. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14320. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14321. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14322. msm_routing_put_audio_mixer),
  14323. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14324. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14325. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14326. msm_routing_put_audio_mixer),
  14327. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14329. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14330. msm_routing_put_audio_mixer),
  14331. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14333. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14334. msm_routing_put_audio_mixer),
  14335. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14336. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14337. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14338. msm_routing_put_audio_mixer),
  14339. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14340. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14341. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14342. msm_routing_put_audio_mixer),
  14343. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14344. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14345. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14346. msm_routing_put_audio_mixer),
  14347. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14348. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14349. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14350. msm_routing_put_audio_mixer),
  14351. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14352. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14353. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14354. msm_routing_put_audio_mixer),
  14355. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14356. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14357. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14358. msm_routing_put_audio_mixer),
  14359. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14360. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14361. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14362. msm_routing_put_audio_mixer),
  14363. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14364. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14365. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14366. msm_routing_put_audio_mixer),
  14367. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14369. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14370. msm_routing_put_audio_mixer),
  14371. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14372. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14373. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14374. msm_routing_put_audio_mixer),
  14375. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14377. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14378. msm_routing_put_audio_mixer),
  14379. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14381. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14382. msm_routing_put_audio_mixer),
  14383. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14384. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14385. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14386. msm_routing_put_audio_mixer),
  14387. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14388. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14389. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14390. msm_routing_put_audio_mixer),
  14391. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14392. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14393. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14394. msm_routing_put_audio_mixer),
  14395. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14396. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14397. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14398. msm_routing_put_audio_mixer),
  14399. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14400. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14401. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14402. msm_routing_put_audio_mixer),
  14403. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14404. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14405. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14406. msm_routing_put_audio_mixer),
  14407. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14409. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14410. msm_routing_put_audio_mixer),
  14411. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14413. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14414. msm_routing_put_audio_mixer),
  14415. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14416. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14417. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14418. msm_routing_put_audio_mixer),
  14419. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14420. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14421. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14422. msm_routing_put_audio_mixer),
  14423. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14424. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14425. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14426. msm_routing_put_audio_mixer),
  14427. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14429. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14430. msm_routing_put_audio_mixer),
  14431. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14432. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14433. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14434. msm_routing_put_audio_mixer),
  14435. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14437. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14438. msm_routing_put_audio_mixer),
  14439. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14440. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14441. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, 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_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14446. msm_routing_put_audio_mixer),
  14447. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14448. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14449. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14450. msm_routing_put_audio_mixer),
  14451. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14452. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14453. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14454. msm_routing_put_audio_mixer),
  14455. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14456. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14457. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14458. msm_routing_put_audio_mixer),
  14459. };
  14460. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14461. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14463. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14464. msm_routing_put_audio_mixer),
  14465. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14467. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14468. msm_routing_put_audio_mixer),
  14469. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14470. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14471. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14472. msm_routing_put_audio_mixer),
  14473. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14474. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14475. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14476. msm_routing_put_audio_mixer),
  14477. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14479. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14480. msm_routing_put_audio_mixer),
  14481. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14483. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14484. msm_routing_put_audio_mixer),
  14485. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14486. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14487. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14488. msm_routing_put_audio_mixer),
  14489. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14490. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14491. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14492. msm_routing_put_audio_mixer),
  14493. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14494. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14495. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14496. msm_routing_put_audio_mixer),
  14497. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14499. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14500. msm_routing_put_audio_mixer),
  14501. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14502. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14503. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14504. msm_routing_put_audio_mixer),
  14505. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14507. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14508. msm_routing_put_audio_mixer),
  14509. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14511. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14512. msm_routing_put_audio_mixer),
  14513. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14514. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14515. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14516. msm_routing_put_audio_mixer),
  14517. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14518. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14519. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14520. msm_routing_put_audio_mixer),
  14521. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14522. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14523. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14524. msm_routing_put_audio_mixer),
  14525. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14526. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14527. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14528. msm_routing_put_audio_mixer),
  14529. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14530. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14531. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14532. msm_routing_put_audio_mixer),
  14533. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14534. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14535. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14536. msm_routing_put_audio_mixer),
  14537. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14538. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14539. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14540. msm_routing_put_audio_mixer),
  14541. };
  14542. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  14543. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14544. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14545. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14546. msm_routing_put_audio_mixer),
  14547. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14548. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14549. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14550. msm_routing_put_audio_mixer),
  14551. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14553. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14554. msm_routing_put_audio_mixer),
  14555. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14556. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14557. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14558. msm_routing_put_audio_mixer),
  14559. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14560. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14561. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14562. msm_routing_put_audio_mixer),
  14563. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14564. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14565. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14566. msm_routing_put_audio_mixer),
  14567. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14568. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14569. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14570. msm_routing_put_audio_mixer),
  14571. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14572. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14573. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14574. msm_routing_put_audio_mixer),
  14575. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14576. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14577. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14578. msm_routing_put_audio_mixer),
  14579. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14581. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14582. msm_routing_put_audio_mixer),
  14583. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14584. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14585. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14586. msm_routing_put_audio_mixer),
  14587. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14588. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14589. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14590. msm_routing_put_audio_mixer),
  14591. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14592. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14593. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14594. msm_routing_put_audio_mixer),
  14595. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14596. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14597. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14598. msm_routing_put_audio_mixer),
  14599. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14600. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14601. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14602. msm_routing_put_audio_mixer),
  14603. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14605. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14606. msm_routing_put_audio_mixer),
  14607. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14609. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14610. msm_routing_put_audio_mixer),
  14611. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14612. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14613. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14614. msm_routing_put_audio_mixer),
  14615. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14616. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14617. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14618. msm_routing_put_audio_mixer),
  14619. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14620. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14621. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  14622. msm_routing_put_audio_mixer),
  14623. };
  14624. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  14625. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14626. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14627. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14628. msm_routing_put_audio_mixer),
  14629. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14630. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14631. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14632. msm_routing_put_audio_mixer),
  14633. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14635. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14636. msm_routing_put_audio_mixer),
  14637. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14638. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14639. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14640. msm_routing_put_audio_mixer),
  14641. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14642. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14643. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14644. msm_routing_put_audio_mixer),
  14645. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14646. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14647. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14648. msm_routing_put_audio_mixer),
  14649. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14650. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14651. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14652. msm_routing_put_audio_mixer),
  14653. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14655. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14656. msm_routing_put_audio_mixer),
  14657. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14658. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14659. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14660. msm_routing_put_audio_mixer),
  14661. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14662. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14663. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14664. msm_routing_put_audio_mixer),
  14665. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14667. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14668. msm_routing_put_audio_mixer),
  14669. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14671. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14672. msm_routing_put_audio_mixer),
  14673. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14675. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14676. msm_routing_put_audio_mixer),
  14677. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14678. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14679. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14680. msm_routing_put_audio_mixer),
  14681. };
  14682. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  14683. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14685. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14686. msm_routing_put_audio_mixer),
  14687. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14688. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14689. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14690. msm_routing_put_audio_mixer),
  14691. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14692. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14693. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14694. msm_routing_put_audio_mixer),
  14695. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14696. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14697. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14698. msm_routing_put_audio_mixer),
  14699. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14700. MSM_BACKEND_DAI_INT_FM_TX,
  14701. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14702. msm_routing_put_audio_mixer),
  14703. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14704. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14705. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14706. msm_routing_put_audio_mixer),
  14707. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14708. MSM_BACKEND_DAI_AFE_PCM_TX,
  14709. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14710. msm_routing_put_audio_mixer),
  14711. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14712. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14713. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14714. msm_routing_put_audio_mixer),
  14715. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14716. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14717. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14718. msm_routing_put_audio_mixer),
  14719. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14720. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14721. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14722. msm_routing_put_audio_mixer),
  14723. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14725. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14726. msm_routing_put_audio_mixer),
  14727. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14728. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14729. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14730. msm_routing_put_audio_mixer),
  14731. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14732. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14733. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14734. msm_routing_put_audio_mixer),
  14735. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14737. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14738. msm_routing_put_audio_mixer),
  14739. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14740. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14741. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14742. msm_routing_put_audio_mixer),
  14743. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14744. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14745. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14746. msm_routing_put_audio_mixer),
  14747. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14748. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14749. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14750. msm_routing_put_audio_mixer),
  14751. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14752. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14753. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14754. msm_routing_put_audio_mixer),
  14755. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14756. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14757. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14758. msm_routing_get_audio_mixer,
  14759. msm_routing_put_audio_mixer),
  14760. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14761. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14762. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14763. msm_routing_get_audio_mixer,
  14764. msm_routing_put_audio_mixer),
  14765. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14767. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14768. msm_routing_get_audio_mixer,
  14769. msm_routing_put_audio_mixer),
  14770. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14771. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14772. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14773. msm_routing_get_audio_mixer,
  14774. msm_routing_put_audio_mixer),
  14775. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14777. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14778. msm_routing_get_audio_mixer,
  14779. msm_routing_put_audio_mixer),
  14780. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14781. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14782. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14783. msm_routing_get_audio_mixer,
  14784. msm_routing_put_audio_mixer),
  14785. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14786. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14787. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14788. msm_routing_put_audio_mixer),
  14789. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14790. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14791. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14792. msm_routing_put_audio_mixer),
  14793. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14794. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14795. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14796. msm_routing_put_audio_mixer),
  14797. };
  14798. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  14799. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14800. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14801. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14802. msm_routing_put_audio_mixer),
  14803. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14804. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14805. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14806. msm_routing_put_audio_mixer),
  14807. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14808. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14809. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14810. msm_routing_put_audio_mixer),
  14811. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14812. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14813. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14814. msm_routing_put_audio_mixer),
  14815. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14816. MSM_BACKEND_DAI_INT_FM_TX,
  14817. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14818. msm_routing_put_audio_mixer),
  14819. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14820. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14821. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14822. msm_routing_put_audio_mixer),
  14823. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14824. MSM_BACKEND_DAI_AFE_PCM_TX,
  14825. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14826. msm_routing_put_audio_mixer),
  14827. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14829. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14830. msm_routing_put_audio_mixer),
  14831. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14833. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14834. msm_routing_put_audio_mixer),
  14835. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14837. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14838. msm_routing_put_audio_mixer),
  14839. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14840. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14841. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14842. msm_routing_put_audio_mixer),
  14843. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14844. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14845. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14846. msm_routing_put_audio_mixer),
  14847. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14848. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14849. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14850. msm_routing_put_audio_mixer),
  14851. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14852. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14853. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14854. msm_routing_put_audio_mixer),
  14855. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14856. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14857. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14858. msm_routing_put_audio_mixer),
  14859. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14860. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14861. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14862. msm_routing_put_audio_mixer),
  14863. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14864. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14865. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14866. msm_routing_put_audio_mixer),
  14867. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14868. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14869. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14870. msm_routing_put_audio_mixer),
  14871. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14872. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14873. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14874. msm_routing_get_audio_mixer,
  14875. msm_routing_put_audio_mixer),
  14876. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14877. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14878. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14879. msm_routing_get_audio_mixer,
  14880. msm_routing_put_audio_mixer),
  14881. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14882. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14883. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14884. msm_routing_get_audio_mixer,
  14885. msm_routing_put_audio_mixer),
  14886. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14887. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14888. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14889. msm_routing_get_audio_mixer,
  14890. msm_routing_put_audio_mixer),
  14891. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14892. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14893. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14894. msm_routing_get_audio_mixer,
  14895. msm_routing_put_audio_mixer),
  14896. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14897. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14898. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14899. msm_routing_get_audio_mixer,
  14900. msm_routing_put_audio_mixer),
  14901. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14902. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14903. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14904. msm_routing_put_audio_mixer),
  14905. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14907. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14908. msm_routing_put_audio_mixer),
  14909. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14910. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14911. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14912. msm_routing_put_audio_mixer),
  14913. };
  14914. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  14915. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14916. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14917. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14918. msm_routing_put_audio_mixer),
  14919. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14920. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14921. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14922. msm_routing_put_audio_mixer),
  14923. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14924. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14925. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14926. msm_routing_put_audio_mixer),
  14927. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14928. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14929. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14930. msm_routing_put_audio_mixer),
  14931. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14932. MSM_BACKEND_DAI_INT_FM_TX,
  14933. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14934. msm_routing_put_audio_mixer),
  14935. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14936. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14937. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14938. msm_routing_put_audio_mixer),
  14939. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_AFE_PCM_TX,
  14941. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14942. msm_routing_put_audio_mixer),
  14943. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14945. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14946. msm_routing_put_audio_mixer),
  14947. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14949. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14950. msm_routing_put_audio_mixer),
  14951. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14953. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14954. msm_routing_put_audio_mixer),
  14955. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14957. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14958. msm_routing_put_audio_mixer),
  14959. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14961. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14962. msm_routing_put_audio_mixer),
  14963. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14964. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14965. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14966. msm_routing_put_audio_mixer),
  14967. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14968. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14969. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14970. msm_routing_put_audio_mixer),
  14971. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14972. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14973. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14974. msm_routing_put_audio_mixer),
  14975. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14976. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14977. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14978. msm_routing_put_audio_mixer),
  14979. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14981. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14982. msm_routing_put_audio_mixer),
  14983. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14984. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14985. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14986. msm_routing_get_audio_mixer,
  14987. msm_routing_put_audio_mixer),
  14988. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14989. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14990. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14991. msm_routing_get_audio_mixer,
  14992. msm_routing_put_audio_mixer),
  14993. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14994. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14995. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14996. msm_routing_get_audio_mixer,
  14997. msm_routing_put_audio_mixer),
  14998. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14999. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15000. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15001. msm_routing_get_audio_mixer,
  15002. msm_routing_put_audio_mixer),
  15003. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15005. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15006. msm_routing_get_audio_mixer,
  15007. msm_routing_put_audio_mixer),
  15008. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15009. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15010. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15011. msm_routing_get_audio_mixer,
  15012. msm_routing_put_audio_mixer),
  15013. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15014. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15015. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15016. msm_routing_put_audio_mixer),
  15017. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15018. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15019. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15020. msm_routing_put_audio_mixer),
  15021. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15023. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15024. msm_routing_put_audio_mixer),
  15025. };
  15026. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15027. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15028. MSM_BACKEND_DAI_PRI_I2S_RX,
  15029. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15030. msm_routing_put_voice_mixer),
  15031. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15032. MSM_BACKEND_DAI_PRI_I2S_RX,
  15033. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15034. msm_routing_put_voice_mixer),
  15035. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15036. MSM_BACKEND_DAI_PRI_I2S_RX,
  15037. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15038. msm_routing_put_voice_mixer),
  15039. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_PRI_I2S_RX,
  15041. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15042. msm_routing_put_voice_mixer),
  15043. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_PRI_I2S_RX,
  15045. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15046. msm_routing_put_voice_mixer),
  15047. };
  15048. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15049. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15050. MSM_BACKEND_DAI_SEC_I2S_RX,
  15051. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15052. msm_routing_put_voice_mixer),
  15053. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15054. MSM_BACKEND_DAI_SEC_I2S_RX,
  15055. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15056. msm_routing_put_voice_mixer),
  15057. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15058. MSM_BACKEND_DAI_SEC_I2S_RX,
  15059. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15060. msm_routing_put_voice_mixer),
  15061. };
  15062. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15063. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15064. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15065. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15066. msm_routing_put_voice_mixer),
  15067. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15068. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15069. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15070. msm_routing_put_voice_mixer),
  15071. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15073. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15074. msm_routing_put_voice_mixer),
  15075. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15076. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15077. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15078. msm_routing_put_voice_mixer),
  15079. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15080. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15081. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15082. msm_routing_put_voice_mixer),
  15083. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15085. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15086. msm_routing_put_voice_mixer),
  15087. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15089. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15090. msm_routing_put_voice_mixer),
  15091. };
  15092. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15093. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15094. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15095. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15096. msm_routing_put_voice_mixer),
  15097. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15098. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15099. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15100. msm_routing_put_voice_mixer),
  15101. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15103. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15104. msm_routing_put_voice_mixer),
  15105. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15106. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15107. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15108. msm_routing_put_voice_mixer),
  15109. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15111. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15112. msm_routing_put_voice_mixer),
  15113. };
  15114. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15115. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15116. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15117. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15118. msm_routing_put_voice_mixer),
  15119. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15120. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15121. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15122. msm_routing_put_voice_mixer),
  15123. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15124. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15125. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15126. msm_routing_put_voice_mixer),
  15127. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15129. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15130. msm_routing_put_voice_mixer),
  15131. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15132. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15133. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15134. msm_routing_put_voice_mixer),
  15135. };
  15136. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15137. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15138. MSM_BACKEND_DAI_USB_RX,
  15139. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15140. msm_routing_put_voice_mixer),
  15141. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15142. MSM_BACKEND_DAI_USB_RX,
  15143. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15144. msm_routing_put_voice_mixer),
  15145. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15146. MSM_BACKEND_DAI_USB_RX,
  15147. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15148. msm_routing_put_voice_mixer),
  15149. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15150. MSM_BACKEND_DAI_USB_RX,
  15151. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15152. msm_routing_put_voice_mixer),
  15153. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15154. MSM_BACKEND_DAI_USB_RX,
  15155. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15156. msm_routing_put_voice_mixer),
  15157. };
  15158. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15159. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15160. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15161. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15162. msm_routing_put_voice_mixer),
  15163. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15165. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15166. msm_routing_put_voice_mixer),
  15167. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15168. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15169. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15170. msm_routing_put_voice_mixer),
  15171. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15172. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15173. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15174. msm_routing_put_voice_mixer),
  15175. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15176. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15177. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15178. msm_routing_put_voice_mixer),
  15179. };
  15180. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15181. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15182. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15183. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15184. msm_routing_put_voice_mixer),
  15185. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15186. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15187. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15188. msm_routing_put_voice_mixer),
  15189. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15190. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15191. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15192. msm_routing_put_voice_mixer),
  15193. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15194. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15195. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15196. msm_routing_put_voice_mixer),
  15197. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15198. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15199. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15200. msm_routing_put_voice_mixer),
  15201. };
  15202. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15203. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15204. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15205. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15206. msm_routing_put_voice_mixer),
  15207. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15208. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15209. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15210. msm_routing_put_voice_mixer),
  15211. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15213. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15214. msm_routing_put_voice_mixer),
  15215. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15216. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15217. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15218. msm_routing_put_voice_mixer),
  15219. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15220. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15221. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15222. msm_routing_put_voice_mixer),
  15223. };
  15224. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  15225. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15226. MSM_BACKEND_DAI_MI2S_RX,
  15227. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15228. msm_routing_put_voice_mixer),
  15229. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15230. MSM_BACKEND_DAI_MI2S_RX,
  15231. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15232. msm_routing_put_voice_mixer),
  15233. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15234. MSM_BACKEND_DAI_MI2S_RX,
  15235. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15236. msm_routing_put_voice_mixer),
  15237. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15238. MSM_BACKEND_DAI_MI2S_RX,
  15239. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15240. msm_routing_put_voice_mixer),
  15241. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15242. MSM_BACKEND_DAI_MI2S_RX,
  15243. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15244. msm_routing_put_voice_mixer),
  15245. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_MI2S_RX,
  15247. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15248. msm_routing_put_voice_mixer),
  15249. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15250. MSM_BACKEND_DAI_MI2S_RX,
  15251. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15252. msm_routing_put_voice_mixer),
  15253. };
  15254. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  15255. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15256. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15257. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15258. msm_routing_put_voice_mixer),
  15259. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15260. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15261. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15262. msm_routing_put_voice_mixer),
  15263. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15264. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15265. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15266. msm_routing_put_voice_mixer),
  15267. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15268. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15269. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15270. msm_routing_put_voice_mixer),
  15271. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15272. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15273. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15274. msm_routing_put_voice_mixer),
  15275. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15276. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15277. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15278. msm_routing_put_voice_mixer),
  15279. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15280. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15281. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15282. msm_routing_put_voice_mixer),
  15283. };
  15284. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  15285. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15287. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15288. msm_routing_put_voice_mixer),
  15289. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15290. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15291. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15292. msm_routing_put_voice_mixer),
  15293. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15294. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15295. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15296. msm_routing_put_voice_mixer),
  15297. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15298. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15299. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15300. msm_routing_put_voice_mixer),
  15301. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15302. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15303. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15304. msm_routing_put_voice_mixer),
  15305. };
  15306. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  15307. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15308. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15309. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15310. msm_routing_put_voice_mixer),
  15311. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15313. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15314. msm_routing_put_voice_mixer),
  15315. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15316. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15317. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15318. msm_routing_put_voice_mixer),
  15319. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15320. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15321. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15322. msm_routing_put_voice_mixer),
  15323. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15324. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15325. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15326. msm_routing_put_voice_mixer),
  15327. };
  15328. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  15329. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15330. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15331. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15332. msm_routing_put_voice_mixer),
  15333. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15334. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15335. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15336. msm_routing_put_voice_mixer),
  15337. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15338. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15339. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15340. msm_routing_put_voice_mixer),
  15341. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15342. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15343. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15344. msm_routing_put_voice_mixer),
  15345. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15346. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15347. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15348. msm_routing_put_voice_mixer),
  15349. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15350. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15351. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15352. msm_routing_put_voice_mixer),
  15353. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15354. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15355. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15356. msm_routing_put_voice_mixer),
  15357. };
  15358. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  15359. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15360. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15361. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15362. msm_routing_put_voice_mixer),
  15363. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15365. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15366. msm_routing_put_voice_mixer),
  15367. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15368. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15369. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15370. msm_routing_put_voice_mixer),
  15371. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15372. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15373. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15374. msm_routing_put_voice_mixer),
  15375. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15376. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15377. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15378. msm_routing_put_voice_mixer),
  15379. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15380. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15381. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15382. msm_routing_put_voice_mixer),
  15383. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15384. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15385. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15386. msm_routing_put_voice_mixer),
  15387. };
  15388. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  15389. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15390. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15391. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15392. msm_routing_put_voice_mixer),
  15393. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15394. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15395. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15396. msm_routing_put_voice_stub_mixer),
  15397. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15398. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15399. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15400. msm_routing_put_voice_stub_mixer),
  15401. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15402. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15403. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15404. msm_routing_put_voice_mixer),
  15405. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15406. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15407. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15408. msm_routing_put_voice_mixer),
  15409. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15410. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15411. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15412. msm_routing_put_voice_mixer),
  15413. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15414. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15415. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15416. msm_routing_put_voice_mixer),
  15417. };
  15418. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  15419. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15420. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15421. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15422. msm_routing_put_voice_mixer),
  15423. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15424. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15425. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15426. msm_routing_put_voice_mixer),
  15427. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15428. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15429. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15430. msm_routing_put_voice_mixer),
  15431. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15432. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15433. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15434. msm_routing_put_voice_mixer),
  15435. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15436. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15437. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15438. msm_routing_put_voice_mixer),
  15439. };
  15440. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15441. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15442. MSM_BACKEND_DAI_AFE_PCM_RX,
  15443. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15444. msm_routing_put_voice_mixer),
  15445. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15446. MSM_BACKEND_DAI_AFE_PCM_RX,
  15447. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15448. msm_routing_put_voice_mixer),
  15449. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15450. MSM_BACKEND_DAI_AFE_PCM_RX,
  15451. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15452. msm_routing_put_voice_mixer),
  15453. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15454. MSM_BACKEND_DAI_AFE_PCM_RX,
  15455. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15456. msm_routing_put_voice_mixer),
  15457. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15458. MSM_BACKEND_DAI_AFE_PCM_RX,
  15459. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15460. msm_routing_put_voice_mixer),
  15461. };
  15462. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15463. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15464. MSM_BACKEND_DAI_AUXPCM_RX,
  15465. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15466. msm_routing_put_voice_mixer),
  15467. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15468. MSM_BACKEND_DAI_AUXPCM_RX,
  15469. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15470. msm_routing_put_voice_mixer),
  15471. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15472. MSM_BACKEND_DAI_AUXPCM_RX,
  15473. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15474. msm_routing_put_voice_mixer),
  15475. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15476. MSM_BACKEND_DAI_AUXPCM_RX,
  15477. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15478. msm_routing_put_voice_mixer),
  15479. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15480. MSM_BACKEND_DAI_AUXPCM_RX,
  15481. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15482. msm_routing_put_voice_mixer),
  15483. };
  15484. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15485. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15486. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15487. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15488. msm_routing_put_voice_mixer),
  15489. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15490. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15491. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15492. msm_routing_put_voice_mixer),
  15493. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15494. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15495. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15496. msm_routing_put_voice_mixer),
  15497. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15498. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15499. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15500. msm_routing_put_voice_mixer),
  15501. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15502. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15503. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15504. msm_routing_put_voice_mixer),
  15505. };
  15506. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  15507. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15508. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15509. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15510. msm_routing_put_voice_mixer),
  15511. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15512. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15513. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15514. msm_routing_put_voice_mixer),
  15515. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15516. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15517. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15518. msm_routing_put_voice_mixer),
  15519. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15520. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15521. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15522. msm_routing_put_voice_mixer),
  15523. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15524. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15525. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15526. msm_routing_put_voice_mixer),
  15527. };
  15528. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  15529. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15530. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15531. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15532. msm_routing_put_voice_mixer),
  15533. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15534. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15535. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15536. msm_routing_put_voice_mixer),
  15537. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15538. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15539. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15540. msm_routing_put_voice_mixer),
  15541. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15542. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15543. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15544. msm_routing_put_voice_mixer),
  15545. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15546. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15547. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15548. msm_routing_put_voice_mixer),
  15549. };
  15550. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  15551. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15552. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15553. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15554. msm_routing_put_voice_mixer),
  15555. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15556. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15557. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15558. msm_routing_put_voice_mixer),
  15559. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15560. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15561. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15562. msm_routing_put_voice_mixer),
  15563. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15564. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15565. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15566. msm_routing_put_voice_mixer),
  15567. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15568. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15569. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15570. msm_routing_put_voice_mixer),
  15571. };
  15572. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  15573. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15574. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15575. msm_routing_put_voice_mixer),
  15576. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15577. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15578. msm_routing_put_voice_mixer),
  15579. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15580. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15581. msm_routing_put_voice_mixer),
  15582. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15583. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15584. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15585. msm_routing_put_voice_mixer),
  15586. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15587. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15588. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15589. msm_routing_put_voice_mixer),
  15590. };
  15591. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  15592. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15593. MSM_BACKEND_DAI_HDMI_RX,
  15594. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15595. msm_routing_put_voice_mixer),
  15596. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_HDMI_RX,
  15598. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15599. msm_routing_put_voice_mixer),
  15600. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15601. MSM_BACKEND_DAI_HDMI_RX,
  15602. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15603. msm_routing_put_voice_mixer),
  15604. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15605. MSM_BACKEND_DAI_HDMI_RX,
  15606. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15607. msm_routing_put_voice_mixer),
  15608. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15609. MSM_BACKEND_DAI_HDMI_RX,
  15610. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15611. msm_routing_put_voice_mixer),
  15612. };
  15613. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  15614. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15615. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15616. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15617. msm_routing_put_voice_mixer),
  15618. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15619. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15620. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15621. msm_routing_put_voice_mixer),
  15622. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15623. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15624. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15625. msm_routing_put_voice_mixer),
  15626. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15627. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15628. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15629. msm_routing_put_voice_mixer),
  15630. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15631. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15632. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15633. msm_routing_put_voice_mixer),
  15634. };
  15635. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  15636. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15637. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15638. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15639. msm_routing_put_voice_mixer),
  15640. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15641. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15642. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15643. msm_routing_put_voice_mixer),
  15644. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15645. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15646. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15647. msm_routing_put_voice_mixer),
  15648. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15649. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15650. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15651. msm_routing_put_voice_mixer),
  15652. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15653. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15654. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15655. msm_routing_put_voice_mixer),
  15656. };
  15657. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  15658. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15660. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15661. msm_routing_put_voice_mixer),
  15662. };
  15663. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  15664. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15665. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15666. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15667. msm_routing_put_voice_mixer),
  15668. };
  15669. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  15670. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15671. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15672. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15673. msm_routing_put_voice_mixer),
  15674. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15675. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15676. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15677. msm_routing_put_voice_mixer),
  15678. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15679. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15680. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15681. msm_routing_put_voice_mixer),
  15682. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15683. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15684. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15685. msm_routing_put_voice_mixer),
  15686. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15687. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15688. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15689. msm_routing_put_voice_mixer),
  15690. };
  15691. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  15692. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15693. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15694. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15695. msm_routing_put_voice_mixer),
  15696. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15697. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15698. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15699. msm_routing_put_voice_mixer),
  15700. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15701. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15702. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15703. msm_routing_put_voice_mixer),
  15704. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15705. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15706. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15707. msm_routing_put_voice_mixer),
  15708. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15709. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15710. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15711. msm_routing_put_voice_mixer),
  15712. };
  15713. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  15714. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15715. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15716. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15717. msm_routing_put_voice_mixer),
  15718. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15719. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15720. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15721. msm_routing_put_voice_mixer),
  15722. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15723. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15724. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15725. msm_routing_put_voice_mixer),
  15726. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15727. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15728. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15729. msm_routing_put_voice_mixer),
  15730. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15731. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15732. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15733. msm_routing_put_voice_mixer),
  15734. };
  15735. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  15736. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15737. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15738. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15739. msm_routing_put_voice_mixer),
  15740. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15741. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15742. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15743. msm_routing_put_voice_mixer),
  15744. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15745. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15746. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15747. msm_routing_put_voice_mixer),
  15748. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15749. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15750. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15751. msm_routing_put_voice_mixer),
  15752. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15753. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15754. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15755. msm_routing_put_voice_mixer),
  15756. };
  15757. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  15758. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15759. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15760. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15761. msm_routing_put_voice_mixer),
  15762. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15763. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15764. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15765. msm_routing_put_voice_mixer),
  15766. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15767. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15768. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15769. msm_routing_put_voice_mixer),
  15770. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15771. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15772. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15773. msm_routing_put_voice_mixer),
  15774. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15775. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15776. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15777. msm_routing_put_voice_mixer),
  15778. };
  15779. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  15780. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15781. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15782. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15783. msm_routing_put_voice_mixer),
  15784. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15785. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15786. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15787. msm_routing_put_voice_mixer),
  15788. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15789. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15790. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15791. msm_routing_put_voice_mixer),
  15792. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15793. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15794. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15795. msm_routing_put_voice_mixer),
  15796. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15797. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15798. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15799. msm_routing_put_voice_mixer),
  15800. };
  15801. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  15802. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15803. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15804. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15805. msm_routing_put_voice_mixer),
  15806. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15807. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15808. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15809. msm_routing_put_voice_mixer),
  15810. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15811. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15812. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15813. msm_routing_put_voice_mixer),
  15814. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15815. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15816. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15817. msm_routing_put_voice_mixer),
  15818. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15819. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15820. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15821. msm_routing_put_voice_mixer),
  15822. };
  15823. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  15824. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15825. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15826. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15827. msm_routing_put_voice_mixer),
  15828. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15829. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15830. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15831. msm_routing_put_voice_mixer),
  15832. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15833. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15834. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15835. msm_routing_put_voice_mixer),
  15836. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15837. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15838. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15839. msm_routing_put_voice_mixer),
  15840. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15841. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15842. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15843. msm_routing_put_voice_mixer),
  15844. };
  15845. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  15846. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15847. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15848. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15849. msm_routing_put_voice_mixer),
  15850. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15851. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15852. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15853. msm_routing_put_voice_mixer),
  15854. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15855. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15856. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15857. msm_routing_put_voice_mixer),
  15858. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15860. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15861. msm_routing_put_voice_mixer),
  15862. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15863. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15864. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15865. msm_routing_put_voice_mixer),
  15866. };
  15867. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  15868. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15869. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15870. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15871. msm_routing_put_voice_mixer),
  15872. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15873. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15874. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15875. msm_routing_put_voice_mixer),
  15876. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15877. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15878. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15879. msm_routing_put_voice_mixer),
  15880. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15881. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15882. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15883. msm_routing_put_voice_mixer),
  15884. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15885. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15886. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15887. msm_routing_put_voice_mixer),
  15888. };
  15889. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  15890. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15892. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15893. msm_routing_put_voice_mixer),
  15894. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15895. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15896. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15897. msm_routing_put_voice_stub_mixer),
  15898. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15899. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15900. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15901. msm_routing_put_voice_stub_mixer),
  15902. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15903. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15904. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15905. msm_routing_put_voice_mixer),
  15906. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15907. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15908. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15909. msm_routing_put_voice_mixer),
  15910. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15911. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15912. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15913. msm_routing_put_voice_mixer),
  15914. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15916. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15917. msm_routing_put_voice_mixer),
  15918. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15919. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15920. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15921. msm_routing_put_voice_mixer),
  15922. };
  15923. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  15924. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15925. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15926. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15927. msm_routing_put_voice_mixer),
  15928. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15929. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15930. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15931. msm_routing_put_voice_stub_mixer),
  15932. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15933. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15934. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15935. msm_routing_put_voice_stub_mixer),
  15936. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15937. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15938. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15939. msm_routing_put_voice_mixer),
  15940. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15941. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15942. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15943. msm_routing_put_voice_mixer),
  15944. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15945. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15946. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15947. msm_routing_put_voice_mixer),
  15948. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15949. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15950. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15951. msm_routing_put_voice_mixer),
  15952. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15953. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15954. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15955. msm_routing_put_voice_mixer),
  15956. };
  15957. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  15958. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15959. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15960. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15961. msm_routing_put_voice_mixer),
  15962. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15963. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15964. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15965. msm_routing_put_voice_stub_mixer),
  15966. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15967. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15968. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15969. msm_routing_put_voice_stub_mixer),
  15970. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15972. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15973. msm_routing_put_voice_mixer),
  15974. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15975. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15976. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15977. msm_routing_put_voice_mixer),
  15978. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15980. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15981. msm_routing_put_voice_mixer),
  15982. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15983. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15984. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15985. msm_routing_put_voice_mixer),
  15986. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15987. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15988. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15989. msm_routing_put_voice_mixer),
  15990. };
  15991. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  15992. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15993. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15994. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15995. msm_routing_put_voice_mixer),
  15996. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15997. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15998. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15999. msm_routing_put_voice_stub_mixer),
  16000. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16001. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16002. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16003. msm_routing_put_voice_stub_mixer),
  16004. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16005. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16006. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16007. msm_routing_put_voice_mixer),
  16008. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16009. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16010. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16011. msm_routing_put_voice_mixer),
  16012. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16013. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16014. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16015. msm_routing_put_voice_mixer),
  16016. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16017. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16018. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16019. msm_routing_put_voice_mixer),
  16020. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16021. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16022. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16023. msm_routing_put_voice_mixer),
  16024. };
  16025. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16026. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16027. MSM_BACKEND_DAI_EXTPROC_RX,
  16028. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16029. msm_routing_put_voice_mixer),
  16030. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16031. MSM_BACKEND_DAI_EXTPROC_RX,
  16032. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16033. msm_routing_put_voice_mixer),
  16034. };
  16035. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16036. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16038. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16039. msm_routing_put_voice_mixer),
  16040. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16042. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16043. msm_routing_put_voice_mixer),
  16044. };
  16045. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  16046. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16047. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16048. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16049. msm_routing_put_voice_mixer),
  16050. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16051. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16052. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16053. msm_routing_put_voice_mixer),
  16054. };
  16055. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16056. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16057. MSM_BACKEND_DAI_PRI_I2S_TX,
  16058. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16059. msm_routing_put_voice_mixer),
  16060. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16061. MSM_BACKEND_DAI_MI2S_TX,
  16062. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16063. msm_routing_put_voice_mixer),
  16064. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16065. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16066. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16067. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16068. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16069. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16070. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16071. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16072. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16073. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16074. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16075. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16076. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16077. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16078. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16079. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16080. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16081. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16082. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16083. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16084. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16085. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16086. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16087. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16088. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16089. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16090. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16091. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16092. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16093. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16094. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16095. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16096. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16097. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16098. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16099. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16100. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16101. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16102. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16103. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16104. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16105. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16106. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16107. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16108. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16109. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16110. MSM_BACKEND_DAI_USB_TX,
  16111. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16112. msm_routing_put_voice_mixer),
  16113. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16114. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16115. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16116. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16117. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16118. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16119. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16120. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16121. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16122. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16123. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16124. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16125. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16126. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16127. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16128. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16129. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16130. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16131. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16132. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16133. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16134. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16135. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16136. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16137. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16139. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16140. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16142. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16143. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16144. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16145. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16146. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16147. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16148. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16149. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16150. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16151. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16152. };
  16153. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16154. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_PRI_I2S_TX,
  16156. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16157. msm_routing_put_voice_mixer),
  16158. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16159. MSM_BACKEND_DAI_MI2S_TX,
  16160. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16161. msm_routing_put_voice_mixer),
  16162. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16164. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16165. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16166. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16167. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16168. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16169. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16170. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16171. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16172. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16173. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16174. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16175. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16176. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16177. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16178. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16179. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16180. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16181. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16182. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16183. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16184. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16185. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16186. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16187. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16188. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16189. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  16190. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16191. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16192. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  16193. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16194. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16195. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16196. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16197. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16198. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  16199. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16200. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16201. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  16202. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16203. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16204. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  16205. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16206. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16207. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  16208. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16209. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16210. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16211. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16212. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16213. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16214. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16215. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16216. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16217. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16218. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16219. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  16220. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  16221. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16222. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  16223. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  16224. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16225. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16226. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16227. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16228. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  16229. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16230. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16231. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  16232. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  16233. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16234. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  16235. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  16236. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16237. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16238. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16239. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16240. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  16241. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16242. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16243. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  16244. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16245. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16246. };
  16247. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  16248. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  16249. MSM_BACKEND_DAI_PRI_I2S_TX,
  16250. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16251. msm_routing_put_voice_mixer),
  16252. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_MI2S_TX,
  16254. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16255. msm_routing_put_voice_mixer),
  16256. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16258. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16259. msm_routing_put_voice_mixer),
  16260. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  16261. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16262. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16263. msm_routing_put_voice_mixer),
  16264. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  16265. MSM_BACKEND_DAI_AFE_PCM_TX,
  16266. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16267. msm_routing_put_voice_mixer),
  16268. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16269. MSM_BACKEND_DAI_AUXPCM_TX,
  16270. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16271. msm_routing_put_voice_mixer),
  16272. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16273. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16274. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16275. msm_routing_put_voice_mixer),
  16276. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16277. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16278. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16279. msm_routing_put_voice_mixer),
  16280. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16281. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16282. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16283. msm_routing_put_voice_mixer),
  16284. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16285. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16286. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16287. msm_routing_put_voice_mixer),
  16288. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16289. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16290. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16291. msm_routing_put_voice_mixer),
  16292. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  16293. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16294. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16295. msm_routing_put_voice_mixer),
  16296. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  16297. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16298. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16299. msm_routing_put_voice_mixer),
  16300. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  16301. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16302. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16303. msm_routing_put_voice_mixer),
  16304. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  16305. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16306. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16307. msm_routing_put_voice_mixer),
  16308. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  16309. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16310. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16311. msm_routing_put_voice_mixer),
  16312. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  16313. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16314. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16315. msm_routing_put_voice_mixer),
  16316. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  16317. MSM_BACKEND_DAI_USB_TX,
  16318. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16319. msm_routing_put_voice_mixer),
  16320. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16321. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16322. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16323. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16324. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16325. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16326. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16327. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16328. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16329. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16330. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16331. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16332. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16333. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16334. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16335. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16336. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16337. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16338. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  16339. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  16340. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16341. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  16342. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  16343. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16344. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  16345. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  16346. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16347. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16348. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16349. msm_routing_put_voice_mixer),
  16350. };
  16351. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  16352. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16353. MSM_BACKEND_DAI_EXTPROC_TX,
  16354. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16355. msm_routing_put_voice_stub_mixer),
  16356. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16357. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16358. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16359. msm_routing_put_voice_stub_mixer),
  16360. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16361. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16362. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16363. msm_routing_put_voice_stub_mixer),
  16364. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16365. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16366. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16367. msm_routing_put_voice_stub_mixer),
  16368. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16369. MSM_BACKEND_DAI_MI2S_TX,
  16370. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16371. msm_routing_put_voice_stub_mixer),
  16372. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16373. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16374. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16375. msm_routing_put_voice_stub_mixer),
  16376. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16377. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16378. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16379. msm_routing_put_voice_stub_mixer),
  16380. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16381. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16382. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16383. msm_routing_put_voice_stub_mixer),
  16384. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16385. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16386. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16387. msm_routing_put_voice_stub_mixer),
  16388. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16389. MSM_BACKEND_DAI_AUXPCM_TX,
  16390. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16391. msm_routing_put_voice_stub_mixer),
  16392. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16393. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16394. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16395. msm_routing_put_voice_stub_mixer),
  16396. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16397. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16398. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16399. msm_routing_put_voice_stub_mixer),
  16400. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16401. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16402. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16403. msm_routing_put_voice_stub_mixer),
  16404. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16405. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16406. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16407. msm_routing_put_voice_stub_mixer),
  16408. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16409. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16410. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16411. msm_routing_put_voice_stub_mixer),
  16412. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16413. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16414. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16415. msm_routing_put_voice_stub_mixer),
  16416. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16417. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16418. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16419. msm_routing_put_voice_stub_mixer),
  16420. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16421. MSM_BACKEND_DAI_AFE_PCM_TX,
  16422. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16423. msm_routing_put_voice_stub_mixer),
  16424. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16425. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16426. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16427. msm_routing_put_voice_stub_mixer),
  16428. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16429. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16430. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16431. msm_routing_put_voice_stub_mixer),
  16432. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16433. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16434. 1, 0, msm_routing_get_voice_stub_mixer,
  16435. msm_routing_put_voice_stub_mixer),
  16436. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16437. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16438. 1, 0, msm_routing_get_voice_stub_mixer,
  16439. msm_routing_put_voice_stub_mixer),
  16440. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16441. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16442. 1, 0, msm_routing_get_voice_stub_mixer,
  16443. msm_routing_put_voice_stub_mixer),
  16444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16446. 1, 0, msm_routing_get_voice_stub_mixer,
  16447. msm_routing_put_voice_stub_mixer),
  16448. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16449. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16450. 1, 0, msm_routing_get_voice_stub_mixer,
  16451. msm_routing_put_voice_stub_mixer),
  16452. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16454. 1, 0, msm_routing_get_voice_stub_mixer,
  16455. msm_routing_put_voice_stub_mixer),
  16456. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16457. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16458. 1, 0, msm_routing_get_voice_stub_mixer,
  16459. msm_routing_put_voice_stub_mixer),
  16460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16462. 1, 0, msm_routing_get_voice_stub_mixer,
  16463. msm_routing_put_voice_stub_mixer),
  16464. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16465. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16466. 1, 0, msm_routing_get_voice_stub_mixer,
  16467. msm_routing_put_voice_stub_mixer),
  16468. };
  16469. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16470. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16471. MSM_BACKEND_DAI_EXTPROC_TX,
  16472. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16473. msm_routing_put_voice_stub_mixer),
  16474. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16475. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16476. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16477. msm_routing_put_voice_stub_mixer),
  16478. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16479. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16480. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16481. msm_routing_put_voice_stub_mixer),
  16482. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16483. MSM_BACKEND_DAI_AUXPCM_TX,
  16484. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16485. msm_routing_put_voice_stub_mixer),
  16486. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16487. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16488. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16489. msm_routing_put_voice_stub_mixer),
  16490. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16491. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16492. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16493. msm_routing_put_voice_stub_mixer),
  16494. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16495. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16496. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16497. msm_routing_put_voice_stub_mixer),
  16498. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16499. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16500. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16501. msm_routing_put_voice_stub_mixer),
  16502. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16503. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16504. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16505. msm_routing_put_voice_stub_mixer),
  16506. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16507. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16508. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16509. msm_routing_put_voice_stub_mixer),
  16510. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16511. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16512. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16513. msm_routing_put_voice_stub_mixer),
  16514. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16515. MSM_BACKEND_DAI_AFE_PCM_TX,
  16516. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16517. msm_routing_put_voice_stub_mixer),
  16518. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16519. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16520. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16521. msm_routing_put_voice_stub_mixer),
  16522. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16523. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16524. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16525. msm_routing_put_voice_stub_mixer),
  16526. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16527. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16528. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16529. msm_routing_put_voice_stub_mixer),
  16530. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16531. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16532. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16533. msm_routing_put_voice_stub_mixer),
  16534. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16535. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16536. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16537. msm_routing_put_voice_stub_mixer),
  16538. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16539. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16540. 1, 0, msm_routing_get_voice_stub_mixer,
  16541. msm_routing_put_voice_stub_mixer),
  16542. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16543. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16544. 1, 0, msm_routing_get_voice_stub_mixer,
  16545. msm_routing_put_voice_stub_mixer),
  16546. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16547. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16548. 1, 0, msm_routing_get_voice_stub_mixer,
  16549. msm_routing_put_voice_stub_mixer),
  16550. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16551. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16552. 1, 0, msm_routing_get_voice_stub_mixer,
  16553. msm_routing_put_voice_stub_mixer),
  16554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16556. 1, 0, msm_routing_get_voice_stub_mixer,
  16557. msm_routing_put_voice_stub_mixer),
  16558. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16559. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16560. 1, 0, msm_routing_get_voice_stub_mixer,
  16561. msm_routing_put_voice_stub_mixer),
  16562. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16563. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  16564. 1, 0, msm_routing_get_voice_stub_mixer,
  16565. msm_routing_put_voice_stub_mixer),
  16566. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16567. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  16568. 1, 0, msm_routing_get_voice_stub_mixer,
  16569. msm_routing_put_voice_stub_mixer),
  16570. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16571. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  16572. 1, 0, msm_routing_get_voice_stub_mixer,
  16573. msm_routing_put_voice_stub_mixer),
  16574. };
  16575. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  16576. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16577. MSM_BACKEND_DAI_EXTPROC_TX,
  16578. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16579. msm_routing_put_voice_stub_mixer),
  16580. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16581. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16582. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16583. msm_routing_put_voice_stub_mixer),
  16584. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16585. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16586. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16587. msm_routing_put_voice_stub_mixer),
  16588. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16589. MSM_BACKEND_DAI_AUXPCM_TX,
  16590. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16591. msm_routing_put_voice_stub_mixer),
  16592. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16593. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16594. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16595. msm_routing_put_voice_stub_mixer),
  16596. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16597. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16598. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16599. msm_routing_put_voice_stub_mixer),
  16600. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16601. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16602. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16603. msm_routing_put_voice_stub_mixer),
  16604. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16605. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16606. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16607. msm_routing_put_voice_stub_mixer),
  16608. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16609. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16610. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16611. msm_routing_put_voice_stub_mixer),
  16612. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16613. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16614. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16615. msm_routing_put_voice_stub_mixer),
  16616. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16617. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16618. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16619. msm_routing_put_voice_stub_mixer),
  16620. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16621. MSM_BACKEND_DAI_AFE_PCM_TX,
  16622. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16623. msm_routing_put_voice_stub_mixer),
  16624. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16625. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16626. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16627. msm_routing_put_voice_stub_mixer),
  16628. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16629. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16630. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16631. msm_routing_put_voice_stub_mixer),
  16632. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16633. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16634. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16635. msm_routing_put_voice_stub_mixer),
  16636. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16637. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16638. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16639. msm_routing_put_voice_stub_mixer),
  16640. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16641. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16642. 1, 0, msm_routing_get_voice_stub_mixer,
  16643. msm_routing_put_voice_stub_mixer),
  16644. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16645. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16646. 1, 0, msm_routing_get_voice_stub_mixer,
  16647. msm_routing_put_voice_stub_mixer),
  16648. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16649. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16650. 1, 0, msm_routing_get_voice_stub_mixer,
  16651. msm_routing_put_voice_stub_mixer),
  16652. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16653. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16654. 1, 0, msm_routing_get_voice_stub_mixer,
  16655. msm_routing_put_voice_stub_mixer),
  16656. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16657. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16658. 1, 0, msm_routing_get_voice_stub_mixer,
  16659. msm_routing_put_voice_stub_mixer),
  16660. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16661. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16662. 1, 0, msm_routing_get_voice_stub_mixer,
  16663. msm_routing_put_voice_stub_mixer),
  16664. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16665. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  16666. 1, 0, msm_routing_get_voice_stub_mixer,
  16667. msm_routing_put_voice_stub_mixer),
  16668. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16669. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  16670. 1, 0, msm_routing_get_voice_stub_mixer,
  16671. msm_routing_put_voice_stub_mixer),
  16672. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16673. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  16674. 1, 0, msm_routing_get_voice_stub_mixer,
  16675. msm_routing_put_voice_stub_mixer),
  16676. };
  16677. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  16678. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  16679. MSM_BACKEND_DAI_PRI_I2S_TX,
  16680. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16681. msm_routing_put_voice_mixer),
  16682. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  16683. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16684. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16685. msm_routing_put_voice_mixer),
  16686. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  16687. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16688. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  16689. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16690. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  16691. MSM_BACKEND_DAI_AFE_PCM_TX,
  16692. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16693. msm_routing_put_voice_mixer),
  16694. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16695. MSM_BACKEND_DAI_AUXPCM_TX,
  16696. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16697. msm_routing_put_voice_mixer),
  16698. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16699. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16700. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16701. msm_routing_put_voice_mixer),
  16702. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16703. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16704. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16705. msm_routing_put_voice_mixer),
  16706. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16707. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16708. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16709. msm_routing_put_voice_mixer),
  16710. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16711. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16712. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16713. msm_routing_put_voice_mixer),
  16714. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16715. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16716. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16717. msm_routing_put_voice_mixer),
  16718. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  16719. MSM_BACKEND_DAI_MI2S_TX,
  16720. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16721. msm_routing_put_voice_mixer),
  16722. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16723. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16724. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16725. msm_routing_put_voice_mixer),
  16726. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16727. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16728. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16729. msm_routing_put_voice_mixer),
  16730. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16731. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16732. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16733. msm_routing_put_voice_mixer),
  16734. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  16735. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16736. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16737. msm_routing_put_voice_mixer),
  16738. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  16739. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16740. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16741. msm_routing_put_voice_mixer),
  16742. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  16743. MSM_BACKEND_DAI_USB_TX,
  16744. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16745. msm_routing_put_voice_mixer),
  16746. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16747. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16748. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16749. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16750. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16751. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16752. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16753. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16754. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16755. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16756. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16757. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16758. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16759. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16760. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16761. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16762. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16763. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16764. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  16765. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  16766. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16767. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  16768. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  16769. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16770. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  16771. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  16772. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16773. };
  16774. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  16775. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16776. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16777. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16778. msm_routing_put_port_mixer),
  16779. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16780. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16781. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16782. msm_routing_put_port_mixer),
  16783. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16784. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16785. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16786. msm_routing_put_port_mixer),
  16787. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16788. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16789. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16790. msm_routing_put_port_mixer),
  16791. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16792. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16793. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16794. msm_routing_put_port_mixer),
  16795. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16796. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16797. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16798. msm_routing_put_port_mixer),
  16799. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16800. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16801. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16802. msm_routing_put_port_mixer),
  16803. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16804. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16805. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16806. msm_routing_put_port_mixer),
  16807. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16808. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16809. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16810. msm_routing_put_port_mixer),
  16811. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16812. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16813. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16814. msm_routing_put_port_mixer),
  16815. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16816. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16817. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16818. msm_routing_put_port_mixer),
  16819. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16820. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16821. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16822. msm_routing_put_port_mixer),
  16823. };
  16824. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  16825. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16826. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16827. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16828. msm_routing_put_port_mixer),
  16829. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16830. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16831. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16832. msm_routing_put_port_mixer),
  16833. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16834. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16835. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16836. msm_routing_put_port_mixer),
  16837. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16838. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16839. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16840. msm_routing_put_port_mixer),
  16841. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16842. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16843. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16844. msm_routing_put_port_mixer),
  16845. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16846. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16847. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16848. msm_routing_put_port_mixer),
  16849. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16850. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16851. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16852. msm_routing_put_port_mixer),
  16853. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16854. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16855. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16856. msm_routing_put_port_mixer),
  16857. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16858. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16859. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16860. msm_routing_put_port_mixer),
  16861. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16862. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16863. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16864. msm_routing_put_port_mixer),
  16865. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16866. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16867. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16868. msm_routing_put_port_mixer),
  16869. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16870. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16871. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16872. msm_routing_put_port_mixer),
  16873. };
  16874. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  16875. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16876. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16877. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16878. msm_routing_put_port_mixer),
  16879. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16880. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16881. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16882. msm_routing_put_port_mixer),
  16883. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16884. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16885. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16886. msm_routing_put_port_mixer),
  16887. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16888. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16889. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16890. msm_routing_put_port_mixer),
  16891. };
  16892. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  16893. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16894. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16895. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16896. msm_routing_put_port_mixer),
  16897. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16898. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16899. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16900. msm_routing_put_port_mixer),
  16901. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16902. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16903. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16904. msm_routing_put_port_mixer),
  16905. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16906. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16907. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16908. msm_routing_put_port_mixer),
  16909. };
  16910. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  16911. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16912. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16913. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16914. msm_routing_put_port_mixer),
  16915. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16916. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16917. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16918. msm_routing_put_port_mixer),
  16919. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16920. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16921. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16922. msm_routing_put_port_mixer),
  16923. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16924. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16925. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16926. msm_routing_put_port_mixer),
  16927. };
  16928. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  16929. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16930. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16931. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16932. msm_routing_put_port_mixer),
  16933. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16934. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16935. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16936. msm_routing_put_port_mixer),
  16937. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16938. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16939. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16940. msm_routing_put_port_mixer),
  16941. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16942. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16943. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16944. msm_routing_put_port_mixer),
  16945. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16946. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16947. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16948. msm_routing_put_port_mixer),
  16949. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16950. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16951. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16952. msm_routing_put_port_mixer),
  16953. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16955. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16956. msm_routing_put_port_mixer),
  16957. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16958. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16959. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16960. msm_routing_put_port_mixer),
  16961. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16962. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16963. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16964. msm_routing_put_port_mixer),
  16965. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16966. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16967. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16968. msm_routing_put_port_mixer),
  16969. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16970. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16971. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16972. msm_routing_put_port_mixer),
  16973. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16974. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16975. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16976. msm_routing_put_port_mixer),
  16977. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16978. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16979. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16980. msm_routing_put_port_mixer),
  16981. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16982. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16983. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16984. msm_routing_put_port_mixer),
  16985. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16986. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16987. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16988. msm_routing_put_port_mixer),
  16989. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16990. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16991. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16992. msm_routing_put_port_mixer),
  16993. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16994. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16995. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16996. msm_routing_put_port_mixer),
  16997. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16998. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16999. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17000. msm_routing_put_port_mixer),
  17001. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17002. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17003. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17004. msm_routing_put_port_mixer),
  17005. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17006. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17007. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17008. msm_routing_put_port_mixer),
  17009. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17010. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17011. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17012. msm_routing_put_port_mixer),
  17013. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17014. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17015. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17016. msm_routing_put_port_mixer),
  17017. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17018. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17019. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17020. msm_routing_put_port_mixer),
  17021. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17022. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17023. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17024. msm_routing_put_port_mixer),
  17025. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17026. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17027. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17028. msm_routing_put_port_mixer),
  17029. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17030. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17031. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17032. msm_routing_put_port_mixer),
  17033. };
  17034. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17035. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17036. MSM_BACKEND_DAI_AUXPCM_RX,
  17037. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17038. msm_routing_put_port_mixer),
  17039. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17040. MSM_BACKEND_DAI_AUXPCM_RX,
  17041. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17042. msm_routing_put_port_mixer),
  17043. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17044. MSM_BACKEND_DAI_AUXPCM_RX,
  17045. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17046. msm_routing_put_port_mixer),
  17047. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17048. MSM_BACKEND_DAI_AUXPCM_RX,
  17049. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17050. msm_routing_put_port_mixer),
  17051. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17052. MSM_BACKEND_DAI_AUXPCM_RX,
  17053. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17054. msm_routing_put_port_mixer),
  17055. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17056. MSM_BACKEND_DAI_AUXPCM_RX,
  17057. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17058. msm_routing_put_port_mixer),
  17059. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17060. MSM_BACKEND_DAI_AUXPCM_RX,
  17061. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17062. msm_routing_put_port_mixer),
  17063. };
  17064. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17065. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17066. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17067. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17068. msm_routing_put_port_mixer),
  17069. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17070. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17071. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17072. msm_routing_put_port_mixer),
  17073. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17074. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17075. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17076. msm_routing_put_port_mixer),
  17077. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17078. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17079. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17080. msm_routing_put_port_mixer),
  17081. };
  17082. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17083. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17084. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17085. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17086. msm_routing_put_port_mixer),
  17087. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17088. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17089. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17090. msm_routing_put_port_mixer),
  17091. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17092. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17093. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17094. msm_routing_put_port_mixer),
  17095. };
  17096. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17097. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17098. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17099. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17100. msm_routing_put_port_mixer),
  17101. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17102. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17103. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17104. msm_routing_put_port_mixer),
  17105. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17106. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17107. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17108. msm_routing_put_port_mixer),
  17109. };
  17110. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17111. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17112. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17113. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17114. msm_routing_put_port_mixer),
  17115. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17116. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17117. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17118. msm_routing_put_port_mixer),
  17119. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17120. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17121. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17122. msm_routing_put_port_mixer),
  17123. };
  17124. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17125. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17126. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17127. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17128. msm_routing_put_port_mixer),
  17129. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17130. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17131. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17132. msm_routing_put_port_mixer),
  17133. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17134. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17135. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17136. msm_routing_put_port_mixer),
  17137. };
  17138. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17139. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17140. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17141. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17142. msm_routing_put_port_mixer),
  17143. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17144. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17145. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17146. msm_routing_put_port_mixer),
  17147. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17148. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17149. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17150. msm_routing_put_port_mixer),
  17151. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17152. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17153. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17154. msm_routing_put_port_mixer),
  17155. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17156. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17157. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17158. msm_routing_put_port_mixer),
  17159. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17160. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17161. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17162. msm_routing_put_port_mixer),
  17163. };
  17164. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17165. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17166. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17167. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17168. msm_routing_put_port_mixer),
  17169. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17170. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17171. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17172. msm_routing_put_port_mixer),
  17173. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17174. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17175. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17176. msm_routing_put_port_mixer),
  17177. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17178. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17179. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17180. msm_routing_put_port_mixer),
  17181. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  17182. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17183. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  17184. msm_routing_put_port_mixer),
  17185. };
  17186. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  17187. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17188. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17189. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17190. msm_routing_put_port_mixer),
  17191. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17192. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17193. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17194. msm_routing_put_port_mixer),
  17195. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17196. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17197. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17198. msm_routing_put_port_mixer),
  17199. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17200. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17201. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17202. msm_routing_put_port_mixer),
  17203. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17204. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17205. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17206. msm_routing_put_port_mixer),
  17207. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17208. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17209. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17210. msm_routing_put_port_mixer),
  17211. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17212. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17213. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17214. msm_routing_put_port_mixer),
  17215. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17216. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17217. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17218. msm_routing_put_port_mixer),
  17219. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17220. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17221. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17222. msm_routing_put_port_mixer),
  17223. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17224. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17225. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17226. msm_routing_put_port_mixer),
  17227. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17228. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17229. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17230. msm_routing_put_port_mixer),
  17231. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17232. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17233. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17234. msm_routing_put_port_mixer),
  17235. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17236. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17237. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17238. msm_routing_put_port_mixer),
  17239. };
  17240. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  17241. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17242. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17243. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17244. msm_routing_put_port_mixer),
  17245. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17246. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17247. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17248. msm_routing_put_port_mixer),
  17249. };
  17250. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  17251. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17252. MSM_BACKEND_DAI_AFE_PCM_RX,
  17253. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17254. msm_routing_put_port_mixer),
  17255. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17256. MSM_BACKEND_DAI_AFE_PCM_RX,
  17257. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17258. msm_routing_put_port_mixer),
  17259. };
  17260. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  17261. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17262. MSM_BACKEND_DAI_HDMI_RX,
  17263. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17264. msm_routing_put_port_mixer),
  17265. };
  17266. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  17267. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17268. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  17269. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17270. msm_routing_put_port_mixer),
  17271. };
  17272. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  17273. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17274. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  17275. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17276. msm_routing_put_port_mixer),
  17277. };
  17278. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  17279. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17280. MSM_BACKEND_DAI_SEC_I2S_RX,
  17281. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17282. msm_routing_put_port_mixer),
  17283. };
  17284. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  17285. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17286. MSM_BACKEND_DAI_MI2S_RX,
  17287. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17288. msm_routing_put_port_mixer),
  17289. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17290. MSM_BACKEND_DAI_MI2S_RX,
  17291. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17292. msm_routing_put_port_mixer),
  17293. };
  17294. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  17295. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17296. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17297. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17298. msm_routing_put_port_mixer),
  17299. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17300. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17301. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17302. msm_routing_put_port_mixer),
  17303. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17304. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17305. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17306. msm_routing_put_port_mixer),
  17307. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17308. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17309. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17310. msm_routing_put_port_mixer),
  17311. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17312. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17313. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17314. msm_routing_put_port_mixer),
  17315. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17316. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17317. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17318. msm_routing_put_port_mixer),
  17319. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17320. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17321. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17322. msm_routing_put_port_mixer),
  17323. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17324. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17325. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17326. msm_routing_put_port_mixer),
  17327. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17328. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17329. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17330. msm_routing_put_port_mixer),
  17331. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17332. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17333. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17334. msm_routing_put_port_mixer),
  17335. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17336. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17337. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17338. msm_routing_put_port_mixer),
  17339. };
  17340. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  17341. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17342. MSM_BACKEND_DAI_USB_RX,
  17343. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  17344. msm_routing_put_port_mixer),
  17345. };
  17346. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  17347. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17348. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17349. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17350. msm_routing_put_port_mixer),
  17351. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17352. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17353. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17354. msm_routing_put_port_mixer),
  17355. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17356. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17357. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17358. msm_routing_put_port_mixer),
  17359. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17360. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17361. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17362. msm_routing_put_port_mixer),
  17363. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17364. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17365. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17366. msm_routing_put_port_mixer),
  17367. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17368. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17369. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17370. msm_routing_put_port_mixer),
  17371. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17372. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17373. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17374. msm_routing_put_port_mixer),
  17375. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17376. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17377. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17378. msm_routing_put_port_mixer),
  17379. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17380. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17381. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17382. msm_routing_put_port_mixer),
  17383. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17384. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17385. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17386. msm_routing_put_port_mixer),
  17387. };
  17388. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  17389. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17390. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17391. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17392. msm_routing_put_port_mixer),
  17393. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17394. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17395. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17396. msm_routing_put_port_mixer),
  17397. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17398. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17399. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17400. msm_routing_put_port_mixer),
  17401. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17402. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17403. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17404. msm_routing_put_port_mixer),
  17405. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17406. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17407. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17408. msm_routing_put_port_mixer),
  17409. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17410. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17411. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17412. msm_routing_put_port_mixer),
  17413. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17414. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17415. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17416. msm_routing_put_port_mixer),
  17417. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17418. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17419. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17420. msm_routing_put_port_mixer),
  17421. };
  17422. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  17423. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17424. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17425. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17426. msm_routing_put_port_mixer),
  17427. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17428. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17429. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17430. msm_routing_put_port_mixer),
  17431. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17432. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17433. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17434. msm_routing_put_port_mixer),
  17435. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17436. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17437. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17438. msm_routing_put_port_mixer),
  17439. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17440. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17441. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17442. msm_routing_put_port_mixer),
  17443. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17444. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17445. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17446. msm_routing_put_port_mixer),
  17447. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17448. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17449. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17450. msm_routing_put_port_mixer),
  17451. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17452. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17453. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17454. msm_routing_put_port_mixer),
  17455. };
  17456. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17457. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17458. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17459. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17460. msm_routing_get_port_mixer,
  17461. msm_routing_put_port_mixer),
  17462. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17463. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17464. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17465. msm_routing_get_port_mixer,
  17466. msm_routing_put_port_mixer),
  17467. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17468. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17469. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17470. msm_routing_get_port_mixer,
  17471. msm_routing_put_port_mixer),
  17472. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17473. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17474. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17475. msm_routing_get_port_mixer,
  17476. msm_routing_put_port_mixer),
  17477. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17478. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17479. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17480. msm_routing_get_port_mixer,
  17481. msm_routing_put_port_mixer),
  17482. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17483. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17484. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17485. msm_routing_get_port_mixer,
  17486. msm_routing_put_port_mixer),
  17487. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17488. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17489. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17490. msm_routing_get_port_mixer,
  17491. msm_routing_put_port_mixer),
  17492. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17493. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17494. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17495. msm_routing_get_port_mixer,
  17496. msm_routing_put_port_mixer),
  17497. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17498. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17499. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17500. msm_routing_get_port_mixer,
  17501. msm_routing_put_port_mixer),
  17502. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17503. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17504. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17505. msm_routing_get_port_mixer,
  17506. msm_routing_put_port_mixer),
  17507. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17508. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17509. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17510. msm_routing_get_port_mixer,
  17511. msm_routing_put_port_mixer),
  17512. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17513. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17514. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17515. msm_routing_get_port_mixer,
  17516. msm_routing_put_port_mixer),
  17517. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17518. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17519. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17520. msm_routing_get_port_mixer,
  17521. msm_routing_put_port_mixer),
  17522. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17523. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17524. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17525. msm_routing_get_port_mixer,
  17526. msm_routing_put_port_mixer),
  17527. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17528. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17529. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17530. msm_routing_get_port_mixer,
  17531. msm_routing_put_port_mixer),
  17532. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17533. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17534. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17535. msm_routing_get_port_mixer,
  17536. msm_routing_put_port_mixer),
  17537. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17538. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17539. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17540. msm_routing_get_port_mixer,
  17541. msm_routing_put_port_mixer),
  17542. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17543. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17544. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17545. msm_routing_get_port_mixer,
  17546. msm_routing_put_port_mixer),
  17547. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17548. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17549. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17550. msm_routing_get_port_mixer,
  17551. msm_routing_put_port_mixer),
  17552. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17553. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17554. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17555. msm_routing_get_port_mixer,
  17556. msm_routing_put_port_mixer),
  17557. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17559. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17560. msm_routing_get_port_mixer,
  17561. msm_routing_put_port_mixer),
  17562. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17563. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17564. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17565. msm_routing_get_port_mixer,
  17566. msm_routing_put_port_mixer),
  17567. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17568. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17569. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17570. msm_routing_get_port_mixer,
  17571. msm_routing_put_port_mixer),
  17572. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17573. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17574. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17575. msm_routing_get_port_mixer,
  17576. msm_routing_put_port_mixer),
  17577. };
  17578. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  17579. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17580. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17581. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17582. msm_routing_get_port_mixer,
  17583. msm_routing_put_port_mixer),
  17584. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17585. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17586. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17587. msm_routing_get_port_mixer,
  17588. msm_routing_put_port_mixer),
  17589. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17590. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17591. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17592. msm_routing_get_port_mixer,
  17593. msm_routing_put_port_mixer),
  17594. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17595. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17596. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17597. msm_routing_get_port_mixer,
  17598. msm_routing_put_port_mixer),
  17599. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17600. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17601. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17602. msm_routing_get_port_mixer,
  17603. msm_routing_put_port_mixer),
  17604. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17605. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17606. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17607. msm_routing_get_port_mixer,
  17608. msm_routing_put_port_mixer),
  17609. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17610. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17611. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17612. msm_routing_get_port_mixer,
  17613. msm_routing_put_port_mixer),
  17614. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17615. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17616. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17617. msm_routing_get_port_mixer,
  17618. msm_routing_put_port_mixer),
  17619. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17620. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17621. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17622. msm_routing_get_port_mixer,
  17623. msm_routing_put_port_mixer),
  17624. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17625. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17626. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17627. msm_routing_get_port_mixer,
  17628. msm_routing_put_port_mixer),
  17629. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17630. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17631. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17632. msm_routing_get_port_mixer,
  17633. msm_routing_put_port_mixer),
  17634. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17635. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17636. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17637. msm_routing_get_port_mixer,
  17638. msm_routing_put_port_mixer),
  17639. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17640. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17641. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17642. msm_routing_get_port_mixer,
  17643. msm_routing_put_port_mixer),
  17644. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17645. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17646. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17647. msm_routing_get_port_mixer,
  17648. msm_routing_put_port_mixer),
  17649. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17650. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17651. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17652. msm_routing_get_port_mixer,
  17653. msm_routing_put_port_mixer),
  17654. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17655. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17656. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17657. msm_routing_get_port_mixer,
  17658. msm_routing_put_port_mixer),
  17659. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17660. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17661. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17662. msm_routing_get_port_mixer,
  17663. msm_routing_put_port_mixer),
  17664. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17665. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17666. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17667. msm_routing_get_port_mixer,
  17668. msm_routing_put_port_mixer),
  17669. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17670. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17671. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17672. msm_routing_get_port_mixer,
  17673. msm_routing_put_port_mixer),
  17674. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17675. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17676. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17677. msm_routing_get_port_mixer,
  17678. msm_routing_put_port_mixer),
  17679. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17680. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17681. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17682. msm_routing_get_port_mixer,
  17683. msm_routing_put_port_mixer),
  17684. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17685. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17686. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17687. msm_routing_get_port_mixer,
  17688. msm_routing_put_port_mixer),
  17689. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17690. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17691. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17692. msm_routing_get_port_mixer,
  17693. msm_routing_put_port_mixer),
  17694. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17695. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17696. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17697. msm_routing_get_port_mixer,
  17698. msm_routing_put_port_mixer),
  17699. };
  17700. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  17701. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17702. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17703. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17704. msm_routing_get_port_mixer,
  17705. msm_routing_put_port_mixer),
  17706. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17707. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17708. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17709. msm_routing_get_port_mixer,
  17710. msm_routing_put_port_mixer),
  17711. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17712. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17713. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17714. msm_routing_get_port_mixer,
  17715. msm_routing_put_port_mixer),
  17716. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17717. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17718. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17719. msm_routing_get_port_mixer,
  17720. msm_routing_put_port_mixer),
  17721. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17722. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17723. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17724. msm_routing_get_port_mixer,
  17725. msm_routing_put_port_mixer),
  17726. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17727. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17728. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17729. msm_routing_get_port_mixer,
  17730. msm_routing_put_port_mixer),
  17731. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17732. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17733. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17734. msm_routing_get_port_mixer,
  17735. msm_routing_put_port_mixer),
  17736. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17737. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17738. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17739. msm_routing_get_port_mixer,
  17740. msm_routing_put_port_mixer),
  17741. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17742. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17743. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17744. msm_routing_get_port_mixer,
  17745. msm_routing_put_port_mixer),
  17746. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17747. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17748. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17749. msm_routing_get_port_mixer,
  17750. msm_routing_put_port_mixer),
  17751. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17752. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17753. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17754. msm_routing_get_port_mixer,
  17755. msm_routing_put_port_mixer),
  17756. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17757. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17758. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17759. msm_routing_get_port_mixer,
  17760. msm_routing_put_port_mixer),
  17761. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17762. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17763. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17764. msm_routing_get_port_mixer,
  17765. msm_routing_put_port_mixer),
  17766. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17767. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17768. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17769. msm_routing_get_port_mixer,
  17770. msm_routing_put_port_mixer),
  17771. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17772. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17773. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17774. msm_routing_get_port_mixer,
  17775. msm_routing_put_port_mixer),
  17776. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17777. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17778. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17779. msm_routing_get_port_mixer,
  17780. msm_routing_put_port_mixer),
  17781. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17782. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17783. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17784. msm_routing_get_port_mixer,
  17785. msm_routing_put_port_mixer),
  17786. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17787. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17788. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17789. msm_routing_get_port_mixer,
  17790. msm_routing_put_port_mixer),
  17791. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17792. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17793. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17794. msm_routing_get_port_mixer,
  17795. msm_routing_put_port_mixer),
  17796. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17797. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17798. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17799. msm_routing_get_port_mixer,
  17800. msm_routing_put_port_mixer),
  17801. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17802. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17803. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17804. msm_routing_get_port_mixer,
  17805. msm_routing_put_port_mixer),
  17806. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17807. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17808. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17809. msm_routing_get_port_mixer,
  17810. msm_routing_put_port_mixer),
  17811. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17812. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17813. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17814. msm_routing_get_port_mixer,
  17815. msm_routing_put_port_mixer),
  17816. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17817. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17818. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17819. msm_routing_get_port_mixer,
  17820. msm_routing_put_port_mixer),
  17821. };
  17822. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  17823. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17824. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17825. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17826. msm_routing_get_port_mixer,
  17827. msm_routing_put_port_mixer),
  17828. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17829. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17830. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17831. msm_routing_get_port_mixer,
  17832. msm_routing_put_port_mixer),
  17833. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17834. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17835. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17836. msm_routing_get_port_mixer,
  17837. msm_routing_put_port_mixer),
  17838. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17839. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17840. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17841. msm_routing_get_port_mixer,
  17842. msm_routing_put_port_mixer),
  17843. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17844. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17845. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17846. msm_routing_get_port_mixer,
  17847. msm_routing_put_port_mixer),
  17848. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17849. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17850. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17851. msm_routing_get_port_mixer,
  17852. msm_routing_put_port_mixer),
  17853. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17854. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17855. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17856. msm_routing_get_port_mixer,
  17857. msm_routing_put_port_mixer),
  17858. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17859. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17860. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17861. msm_routing_get_port_mixer,
  17862. msm_routing_put_port_mixer),
  17863. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17864. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17865. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17866. msm_routing_get_port_mixer,
  17867. msm_routing_put_port_mixer),
  17868. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17869. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17870. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17871. msm_routing_get_port_mixer,
  17872. msm_routing_put_port_mixer),
  17873. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17874. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17875. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17876. msm_routing_get_port_mixer,
  17877. msm_routing_put_port_mixer),
  17878. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17879. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17880. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17881. msm_routing_get_port_mixer,
  17882. msm_routing_put_port_mixer),
  17883. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17884. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17885. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17886. msm_routing_get_port_mixer,
  17887. msm_routing_put_port_mixer),
  17888. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17889. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17890. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17891. msm_routing_get_port_mixer,
  17892. msm_routing_put_port_mixer),
  17893. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17894. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17895. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17896. msm_routing_get_port_mixer,
  17897. msm_routing_put_port_mixer),
  17898. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17899. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17900. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17901. msm_routing_get_port_mixer,
  17902. msm_routing_put_port_mixer),
  17903. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17904. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17905. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17906. msm_routing_get_port_mixer,
  17907. msm_routing_put_port_mixer),
  17908. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17909. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17910. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17911. msm_routing_get_port_mixer,
  17912. msm_routing_put_port_mixer),
  17913. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17914. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17915. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17916. msm_routing_get_port_mixer,
  17917. msm_routing_put_port_mixer),
  17918. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17919. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17920. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17921. msm_routing_get_port_mixer,
  17922. msm_routing_put_port_mixer),
  17923. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17924. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17925. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17926. msm_routing_get_port_mixer,
  17927. msm_routing_put_port_mixer),
  17928. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17929. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17930. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17931. msm_routing_get_port_mixer,
  17932. msm_routing_put_port_mixer),
  17933. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17934. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17935. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17936. msm_routing_get_port_mixer,
  17937. msm_routing_put_port_mixer),
  17938. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17939. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17940. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17941. msm_routing_get_port_mixer,
  17942. msm_routing_put_port_mixer),
  17943. };
  17944. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  17945. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17946. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17947. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17948. msm_routing_get_port_mixer,
  17949. msm_routing_put_port_mixer),
  17950. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17951. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17952. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17953. msm_routing_get_port_mixer,
  17954. msm_routing_put_port_mixer),
  17955. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17956. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17957. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17958. msm_routing_get_port_mixer,
  17959. msm_routing_put_port_mixer),
  17960. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17961. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17962. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17963. msm_routing_get_port_mixer,
  17964. msm_routing_put_port_mixer),
  17965. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17966. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17967. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17968. msm_routing_get_port_mixer,
  17969. msm_routing_put_port_mixer),
  17970. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17971. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17972. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17973. msm_routing_get_port_mixer,
  17974. msm_routing_put_port_mixer),
  17975. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17976. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17977. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17978. msm_routing_get_port_mixer,
  17979. msm_routing_put_port_mixer),
  17980. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17981. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17982. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17983. msm_routing_get_port_mixer,
  17984. msm_routing_put_port_mixer),
  17985. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17986. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17987. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17988. msm_routing_get_port_mixer,
  17989. msm_routing_put_port_mixer),
  17990. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17991. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17992. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17993. msm_routing_get_port_mixer,
  17994. msm_routing_put_port_mixer),
  17995. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17996. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17997. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17998. msm_routing_get_port_mixer,
  17999. msm_routing_put_port_mixer),
  18000. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18001. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18002. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18003. msm_routing_get_port_mixer,
  18004. msm_routing_put_port_mixer),
  18005. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18006. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18007. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18008. msm_routing_get_port_mixer,
  18009. msm_routing_put_port_mixer),
  18010. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18011. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18012. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18013. msm_routing_get_port_mixer,
  18014. msm_routing_put_port_mixer),
  18015. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18016. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18017. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18018. msm_routing_get_port_mixer,
  18019. msm_routing_put_port_mixer),
  18020. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18021. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18022. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18023. msm_routing_get_port_mixer,
  18024. msm_routing_put_port_mixer),
  18025. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18026. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18027. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18028. msm_routing_get_port_mixer,
  18029. msm_routing_put_port_mixer),
  18030. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18031. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18032. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18033. msm_routing_get_port_mixer,
  18034. msm_routing_put_port_mixer),
  18035. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18036. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18037. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18038. msm_routing_get_port_mixer,
  18039. msm_routing_put_port_mixer),
  18040. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18041. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18042. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18043. msm_routing_get_port_mixer,
  18044. msm_routing_put_port_mixer),
  18045. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18046. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18047. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18048. msm_routing_get_port_mixer,
  18049. msm_routing_put_port_mixer),
  18050. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18051. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18052. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18053. msm_routing_get_port_mixer,
  18054. msm_routing_put_port_mixer),
  18055. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18056. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18057. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18058. msm_routing_get_port_mixer,
  18059. msm_routing_put_port_mixer),
  18060. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18061. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18062. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18063. msm_routing_get_port_mixer,
  18064. msm_routing_put_port_mixer),
  18065. };
  18066. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18067. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18068. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18069. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18070. msm_routing_get_port_mixer,
  18071. msm_routing_put_port_mixer),
  18072. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18073. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18074. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18075. msm_routing_get_port_mixer,
  18076. msm_routing_put_port_mixer),
  18077. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18078. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18079. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18080. msm_routing_get_port_mixer,
  18081. msm_routing_put_port_mixer),
  18082. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18083. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18084. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18085. msm_routing_get_port_mixer,
  18086. msm_routing_put_port_mixer),
  18087. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18088. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18089. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18090. msm_routing_get_port_mixer,
  18091. msm_routing_put_port_mixer),
  18092. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18093. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18094. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18095. msm_routing_get_port_mixer,
  18096. msm_routing_put_port_mixer),
  18097. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18098. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18099. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18100. msm_routing_get_port_mixer,
  18101. msm_routing_put_port_mixer),
  18102. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18103. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18104. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18105. msm_routing_get_port_mixer,
  18106. msm_routing_put_port_mixer),
  18107. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18108. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18109. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18110. msm_routing_get_port_mixer,
  18111. msm_routing_put_port_mixer),
  18112. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18113. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18114. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18115. msm_routing_get_port_mixer,
  18116. msm_routing_put_port_mixer),
  18117. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18118. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18119. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18120. msm_routing_get_port_mixer,
  18121. msm_routing_put_port_mixer),
  18122. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18123. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18124. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18125. msm_routing_get_port_mixer,
  18126. msm_routing_put_port_mixer),
  18127. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18128. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18129. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18130. msm_routing_get_port_mixer,
  18131. msm_routing_put_port_mixer),
  18132. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18133. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18134. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18135. msm_routing_get_port_mixer,
  18136. msm_routing_put_port_mixer),
  18137. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18138. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18139. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18140. msm_routing_get_port_mixer,
  18141. msm_routing_put_port_mixer),
  18142. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18143. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18144. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18145. msm_routing_get_port_mixer,
  18146. msm_routing_put_port_mixer),
  18147. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18148. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18149. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18150. msm_routing_get_port_mixer,
  18151. msm_routing_put_port_mixer),
  18152. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18153. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18154. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18155. msm_routing_get_port_mixer,
  18156. msm_routing_put_port_mixer),
  18157. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18158. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18159. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18160. msm_routing_get_port_mixer,
  18161. msm_routing_put_port_mixer),
  18162. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18163. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18164. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18165. msm_routing_get_port_mixer,
  18166. msm_routing_put_port_mixer),
  18167. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18168. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18169. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18170. msm_routing_get_port_mixer,
  18171. msm_routing_put_port_mixer),
  18172. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18173. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18174. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18175. msm_routing_get_port_mixer,
  18176. msm_routing_put_port_mixer),
  18177. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18178. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18179. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18180. msm_routing_get_port_mixer,
  18181. msm_routing_put_port_mixer),
  18182. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18183. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18184. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18185. msm_routing_get_port_mixer,
  18186. msm_routing_put_port_mixer),
  18187. };
  18188. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  18189. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18190. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18191. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18192. msm_routing_get_port_mixer,
  18193. msm_routing_put_port_mixer),
  18194. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18195. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18196. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18197. msm_routing_get_port_mixer,
  18198. msm_routing_put_port_mixer),
  18199. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18200. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18201. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18202. msm_routing_get_port_mixer,
  18203. msm_routing_put_port_mixer),
  18204. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18205. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18206. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18207. msm_routing_get_port_mixer,
  18208. msm_routing_put_port_mixer),
  18209. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18210. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18211. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18212. msm_routing_get_port_mixer,
  18213. msm_routing_put_port_mixer),
  18214. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18215. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18216. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18217. msm_routing_get_port_mixer,
  18218. msm_routing_put_port_mixer),
  18219. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18220. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18221. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18222. msm_routing_get_port_mixer,
  18223. msm_routing_put_port_mixer),
  18224. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18225. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18226. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18227. msm_routing_get_port_mixer,
  18228. msm_routing_put_port_mixer),
  18229. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18230. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18231. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18232. msm_routing_get_port_mixer,
  18233. msm_routing_put_port_mixer),
  18234. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18235. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18236. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18237. msm_routing_get_port_mixer,
  18238. msm_routing_put_port_mixer),
  18239. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18240. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18241. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18242. msm_routing_get_port_mixer,
  18243. msm_routing_put_port_mixer),
  18244. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18245. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18246. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18247. msm_routing_get_port_mixer,
  18248. msm_routing_put_port_mixer),
  18249. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18250. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18251. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18252. msm_routing_get_port_mixer,
  18253. msm_routing_put_port_mixer),
  18254. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18255. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18256. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18257. msm_routing_get_port_mixer,
  18258. msm_routing_put_port_mixer),
  18259. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18260. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18261. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18262. msm_routing_get_port_mixer,
  18263. msm_routing_put_port_mixer),
  18264. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18265. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18266. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18267. msm_routing_get_port_mixer,
  18268. msm_routing_put_port_mixer),
  18269. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18270. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18271. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18272. msm_routing_get_port_mixer,
  18273. msm_routing_put_port_mixer),
  18274. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18275. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18276. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18277. msm_routing_get_port_mixer,
  18278. msm_routing_put_port_mixer),
  18279. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18280. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18281. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18282. msm_routing_get_port_mixer,
  18283. msm_routing_put_port_mixer),
  18284. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18285. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18286. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18287. msm_routing_get_port_mixer,
  18288. msm_routing_put_port_mixer),
  18289. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18290. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18291. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18292. msm_routing_get_port_mixer,
  18293. msm_routing_put_port_mixer),
  18294. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18295. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18296. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18297. msm_routing_get_port_mixer,
  18298. msm_routing_put_port_mixer),
  18299. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18300. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18301. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18302. msm_routing_get_port_mixer,
  18303. msm_routing_put_port_mixer),
  18304. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18305. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18306. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18307. msm_routing_get_port_mixer,
  18308. msm_routing_put_port_mixer),
  18309. };
  18310. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  18311. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18312. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18313. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18314. msm_routing_get_port_mixer,
  18315. msm_routing_put_port_mixer),
  18316. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18317. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18318. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18319. msm_routing_get_port_mixer,
  18320. msm_routing_put_port_mixer),
  18321. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18322. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18323. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18324. msm_routing_get_port_mixer,
  18325. msm_routing_put_port_mixer),
  18326. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18327. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18328. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18329. msm_routing_get_port_mixer,
  18330. msm_routing_put_port_mixer),
  18331. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18332. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18333. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18334. msm_routing_get_port_mixer,
  18335. msm_routing_put_port_mixer),
  18336. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18337. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18338. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18339. msm_routing_get_port_mixer,
  18340. msm_routing_put_port_mixer),
  18341. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18342. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18343. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18344. msm_routing_get_port_mixer,
  18345. msm_routing_put_port_mixer),
  18346. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18347. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18348. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18349. msm_routing_get_port_mixer,
  18350. msm_routing_put_port_mixer),
  18351. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18352. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18353. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18354. msm_routing_get_port_mixer,
  18355. msm_routing_put_port_mixer),
  18356. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18357. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18358. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18359. msm_routing_get_port_mixer,
  18360. msm_routing_put_port_mixer),
  18361. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18362. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18363. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18364. msm_routing_get_port_mixer,
  18365. msm_routing_put_port_mixer),
  18366. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18367. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18368. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18369. msm_routing_get_port_mixer,
  18370. msm_routing_put_port_mixer),
  18371. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18372. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18373. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18374. msm_routing_get_port_mixer,
  18375. msm_routing_put_port_mixer),
  18376. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18377. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18378. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18379. msm_routing_get_port_mixer,
  18380. msm_routing_put_port_mixer),
  18381. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18382. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18383. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18384. msm_routing_get_port_mixer,
  18385. msm_routing_put_port_mixer),
  18386. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18387. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18388. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18389. msm_routing_get_port_mixer,
  18390. msm_routing_put_port_mixer),
  18391. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18392. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18393. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18394. msm_routing_get_port_mixer,
  18395. msm_routing_put_port_mixer),
  18396. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18397. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18398. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18399. msm_routing_get_port_mixer,
  18400. msm_routing_put_port_mixer),
  18401. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18402. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18403. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18404. msm_routing_get_port_mixer,
  18405. msm_routing_put_port_mixer),
  18406. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18407. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18408. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18409. msm_routing_get_port_mixer,
  18410. msm_routing_put_port_mixer),
  18411. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18412. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18413. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18414. msm_routing_get_port_mixer,
  18415. msm_routing_put_port_mixer),
  18416. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18417. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18418. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18419. msm_routing_get_port_mixer,
  18420. msm_routing_put_port_mixer),
  18421. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18422. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18423. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18424. msm_routing_get_port_mixer,
  18425. msm_routing_put_port_mixer),
  18426. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18427. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18428. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18429. msm_routing_get_port_mixer,
  18430. msm_routing_put_port_mixer),
  18431. };
  18432. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  18433. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18434. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  18435. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18436. msm_routing_get_port_mixer,
  18437. msm_routing_put_port_mixer),
  18438. };
  18439. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  18440. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18441. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18442. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18443. msm_routing_get_port_mixer,
  18444. msm_routing_put_port_mixer),
  18445. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18446. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18447. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18448. msm_routing_get_port_mixer,
  18449. msm_routing_put_port_mixer),
  18450. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18451. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18452. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18453. msm_routing_get_port_mixer,
  18454. msm_routing_put_port_mixer),
  18455. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18456. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18457. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18458. msm_routing_get_port_mixer,
  18459. msm_routing_put_port_mixer),
  18460. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18461. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18462. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18463. msm_routing_get_port_mixer,
  18464. msm_routing_put_port_mixer),
  18465. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18466. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18467. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18468. msm_routing_get_port_mixer,
  18469. msm_routing_put_port_mixer),
  18470. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18471. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18472. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18473. msm_routing_get_port_mixer,
  18474. msm_routing_put_port_mixer),
  18475. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18476. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18477. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18478. msm_routing_get_port_mixer,
  18479. msm_routing_put_port_mixer),
  18480. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18481. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18482. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18483. msm_routing_get_port_mixer,
  18484. msm_routing_put_port_mixer),
  18485. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18486. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18487. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18488. msm_routing_get_port_mixer,
  18489. msm_routing_put_port_mixer),
  18490. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18491. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18492. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18493. msm_routing_get_port_mixer,
  18494. msm_routing_put_port_mixer),
  18495. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18496. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18497. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18498. msm_routing_get_port_mixer,
  18499. msm_routing_put_port_mixer),
  18500. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18501. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18502. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18503. msm_routing_get_port_mixer,
  18504. msm_routing_put_port_mixer),
  18505. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18506. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18507. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18508. msm_routing_get_port_mixer,
  18509. msm_routing_put_port_mixer),
  18510. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18511. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18512. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18513. msm_routing_get_port_mixer,
  18514. msm_routing_put_port_mixer),
  18515. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18516. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18517. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18518. msm_routing_get_port_mixer,
  18519. msm_routing_put_port_mixer),
  18520. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18521. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18522. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18523. msm_routing_get_port_mixer,
  18524. msm_routing_put_port_mixer),
  18525. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18526. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18527. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18528. msm_routing_get_port_mixer,
  18529. msm_routing_put_port_mixer),
  18530. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18531. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18532. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18533. msm_routing_get_port_mixer,
  18534. msm_routing_put_port_mixer),
  18535. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18536. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18537. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18538. msm_routing_get_port_mixer,
  18539. msm_routing_put_port_mixer),
  18540. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18541. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18542. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18543. msm_routing_get_port_mixer,
  18544. msm_routing_put_port_mixer),
  18545. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18546. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18547. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18548. msm_routing_get_port_mixer,
  18549. msm_routing_put_port_mixer),
  18550. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18551. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18552. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18553. msm_routing_get_port_mixer,
  18554. msm_routing_put_port_mixer),
  18555. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18556. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18557. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18558. msm_routing_get_port_mixer,
  18559. msm_routing_put_port_mixer),
  18560. };
  18561. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  18562. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18563. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18564. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18565. msm_routing_get_port_mixer,
  18566. msm_routing_put_port_mixer),
  18567. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18568. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18569. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18570. msm_routing_get_port_mixer,
  18571. msm_routing_put_port_mixer),
  18572. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18573. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18574. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18575. msm_routing_get_port_mixer,
  18576. msm_routing_put_port_mixer),
  18577. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18578. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18579. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18580. msm_routing_get_port_mixer,
  18581. msm_routing_put_port_mixer),
  18582. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18583. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18584. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18585. msm_routing_get_port_mixer,
  18586. msm_routing_put_port_mixer),
  18587. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18588. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18589. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18590. msm_routing_get_port_mixer,
  18591. msm_routing_put_port_mixer),
  18592. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18593. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18594. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18595. msm_routing_get_port_mixer,
  18596. msm_routing_put_port_mixer),
  18597. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18598. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18599. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18600. msm_routing_get_port_mixer,
  18601. msm_routing_put_port_mixer),
  18602. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18603. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18604. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18605. msm_routing_get_port_mixer,
  18606. msm_routing_put_port_mixer),
  18607. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18608. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18609. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18610. msm_routing_get_port_mixer,
  18611. msm_routing_put_port_mixer),
  18612. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18613. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18614. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18615. msm_routing_get_port_mixer,
  18616. msm_routing_put_port_mixer),
  18617. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18618. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18619. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18620. msm_routing_get_port_mixer,
  18621. msm_routing_put_port_mixer),
  18622. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18623. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18624. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18625. msm_routing_get_port_mixer,
  18626. msm_routing_put_port_mixer),
  18627. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18628. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18629. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18630. msm_routing_get_port_mixer,
  18631. msm_routing_put_port_mixer),
  18632. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18633. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18634. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18635. msm_routing_get_port_mixer,
  18636. msm_routing_put_port_mixer),
  18637. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18638. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18639. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18640. msm_routing_get_port_mixer,
  18641. msm_routing_put_port_mixer),
  18642. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18643. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18644. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18645. msm_routing_get_port_mixer,
  18646. msm_routing_put_port_mixer),
  18647. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18648. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18649. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18650. msm_routing_get_port_mixer,
  18651. msm_routing_put_port_mixer),
  18652. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18653. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18654. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18655. msm_routing_get_port_mixer,
  18656. msm_routing_put_port_mixer),
  18657. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18658. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18659. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18660. msm_routing_get_port_mixer,
  18661. msm_routing_put_port_mixer),
  18662. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18663. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18664. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18665. msm_routing_get_port_mixer,
  18666. msm_routing_put_port_mixer),
  18667. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18668. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18669. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18670. msm_routing_get_port_mixer,
  18671. msm_routing_put_port_mixer),
  18672. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18673. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18674. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18675. msm_routing_get_port_mixer,
  18676. msm_routing_put_port_mixer),
  18677. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18678. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18679. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18680. msm_routing_get_port_mixer,
  18681. msm_routing_put_port_mixer),
  18682. };
  18683. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  18684. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18685. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18686. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18687. msm_routing_get_port_mixer,
  18688. msm_routing_put_port_mixer),
  18689. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18690. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18691. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18692. msm_routing_get_port_mixer,
  18693. msm_routing_put_port_mixer),
  18694. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18695. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18696. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18697. msm_routing_get_port_mixer,
  18698. msm_routing_put_port_mixer),
  18699. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18700. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18701. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18702. msm_routing_get_port_mixer,
  18703. msm_routing_put_port_mixer),
  18704. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18705. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18706. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18707. msm_routing_get_port_mixer,
  18708. msm_routing_put_port_mixer),
  18709. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18710. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18711. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18712. msm_routing_get_port_mixer,
  18713. msm_routing_put_port_mixer),
  18714. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18715. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18716. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18717. msm_routing_get_port_mixer,
  18718. msm_routing_put_port_mixer),
  18719. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18720. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18721. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18722. msm_routing_get_port_mixer,
  18723. msm_routing_put_port_mixer),
  18724. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18725. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18726. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18727. msm_routing_get_port_mixer,
  18728. msm_routing_put_port_mixer),
  18729. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18730. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18731. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18732. msm_routing_get_port_mixer,
  18733. msm_routing_put_port_mixer),
  18734. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18735. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18736. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18737. msm_routing_get_port_mixer,
  18738. msm_routing_put_port_mixer),
  18739. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18740. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18741. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18742. msm_routing_get_port_mixer,
  18743. msm_routing_put_port_mixer),
  18744. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18745. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18746. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18747. msm_routing_get_port_mixer,
  18748. msm_routing_put_port_mixer),
  18749. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18750. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18751. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18752. msm_routing_get_port_mixer,
  18753. msm_routing_put_port_mixer),
  18754. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18755. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18756. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18757. msm_routing_get_port_mixer,
  18758. msm_routing_put_port_mixer),
  18759. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18760. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18761. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18762. msm_routing_get_port_mixer,
  18763. msm_routing_put_port_mixer),
  18764. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18765. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18766. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18767. msm_routing_get_port_mixer,
  18768. msm_routing_put_port_mixer),
  18769. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18770. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18771. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18772. msm_routing_get_port_mixer,
  18773. msm_routing_put_port_mixer),
  18774. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18775. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18776. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18777. msm_routing_get_port_mixer,
  18778. msm_routing_put_port_mixer),
  18779. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18780. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18781. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18782. msm_routing_get_port_mixer,
  18783. msm_routing_put_port_mixer),
  18784. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18785. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18786. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18787. msm_routing_get_port_mixer,
  18788. msm_routing_put_port_mixer),
  18789. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18790. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18791. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18792. msm_routing_get_port_mixer,
  18793. msm_routing_put_port_mixer),
  18794. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18795. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18796. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18797. msm_routing_get_port_mixer,
  18798. msm_routing_put_port_mixer),
  18799. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18800. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18801. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18802. msm_routing_get_port_mixer,
  18803. msm_routing_put_port_mixer),
  18804. };
  18805. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  18806. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18807. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18808. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18809. msm_routing_get_port_mixer,
  18810. msm_routing_put_port_mixer),
  18811. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18812. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18813. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18814. msm_routing_get_port_mixer,
  18815. msm_routing_put_port_mixer),
  18816. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18817. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18818. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18819. msm_routing_get_port_mixer,
  18820. msm_routing_put_port_mixer),
  18821. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18822. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18823. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18824. msm_routing_get_port_mixer,
  18825. msm_routing_put_port_mixer),
  18826. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18827. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18828. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18829. msm_routing_get_port_mixer,
  18830. msm_routing_put_port_mixer),
  18831. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18832. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18833. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18834. msm_routing_get_port_mixer,
  18835. msm_routing_put_port_mixer),
  18836. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18837. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18838. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18839. msm_routing_get_port_mixer,
  18840. msm_routing_put_port_mixer),
  18841. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18842. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18843. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18844. msm_routing_get_port_mixer,
  18845. msm_routing_put_port_mixer),
  18846. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18847. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18848. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18849. msm_routing_get_port_mixer,
  18850. msm_routing_put_port_mixer),
  18851. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18852. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18853. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18854. msm_routing_get_port_mixer,
  18855. msm_routing_put_port_mixer),
  18856. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18857. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18858. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18859. msm_routing_get_port_mixer,
  18860. msm_routing_put_port_mixer),
  18861. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18862. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18863. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18864. msm_routing_get_port_mixer,
  18865. msm_routing_put_port_mixer),
  18866. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18867. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18868. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18869. msm_routing_get_port_mixer,
  18870. msm_routing_put_port_mixer),
  18871. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18872. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18873. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18874. msm_routing_get_port_mixer,
  18875. msm_routing_put_port_mixer),
  18876. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18877. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18878. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18879. msm_routing_get_port_mixer,
  18880. msm_routing_put_port_mixer),
  18881. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18882. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18883. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18884. msm_routing_get_port_mixer,
  18885. msm_routing_put_port_mixer),
  18886. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18887. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18888. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18889. msm_routing_get_port_mixer,
  18890. msm_routing_put_port_mixer),
  18891. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18892. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18893. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18894. msm_routing_get_port_mixer,
  18895. msm_routing_put_port_mixer),
  18896. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18897. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18898. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18899. msm_routing_get_port_mixer,
  18900. msm_routing_put_port_mixer),
  18901. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18902. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18903. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18904. msm_routing_get_port_mixer,
  18905. msm_routing_put_port_mixer),
  18906. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18907. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18908. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18909. msm_routing_get_port_mixer,
  18910. msm_routing_put_port_mixer),
  18911. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18912. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18913. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18914. msm_routing_get_port_mixer,
  18915. msm_routing_put_port_mixer),
  18916. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18917. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18918. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18919. msm_routing_get_port_mixer,
  18920. msm_routing_put_port_mixer),
  18921. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18922. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18923. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18924. msm_routing_get_port_mixer,
  18925. msm_routing_put_port_mixer),
  18926. };
  18927. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  18928. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18929. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18930. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18931. msm_routing_get_port_mixer,
  18932. msm_routing_put_port_mixer),
  18933. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18934. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18935. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18936. msm_routing_get_port_mixer,
  18937. msm_routing_put_port_mixer),
  18938. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18939. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18940. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18941. msm_routing_get_port_mixer,
  18942. msm_routing_put_port_mixer),
  18943. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18944. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18945. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18946. msm_routing_get_port_mixer,
  18947. msm_routing_put_port_mixer),
  18948. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18949. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18950. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18951. msm_routing_get_port_mixer,
  18952. msm_routing_put_port_mixer),
  18953. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18954. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18955. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18956. msm_routing_get_port_mixer,
  18957. msm_routing_put_port_mixer),
  18958. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18959. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18960. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18961. msm_routing_get_port_mixer,
  18962. msm_routing_put_port_mixer),
  18963. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18964. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18965. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18966. msm_routing_get_port_mixer,
  18967. msm_routing_put_port_mixer),
  18968. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18969. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18970. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18971. msm_routing_get_port_mixer,
  18972. msm_routing_put_port_mixer),
  18973. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18974. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18975. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18976. msm_routing_get_port_mixer,
  18977. msm_routing_put_port_mixer),
  18978. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18979. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18980. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18981. msm_routing_get_port_mixer,
  18982. msm_routing_put_port_mixer),
  18983. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18984. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18985. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18986. msm_routing_get_port_mixer,
  18987. msm_routing_put_port_mixer),
  18988. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18989. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18990. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18991. msm_routing_get_port_mixer,
  18992. msm_routing_put_port_mixer),
  18993. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18994. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18995. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18996. msm_routing_get_port_mixer,
  18997. msm_routing_put_port_mixer),
  18998. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18999. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19000. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19001. msm_routing_get_port_mixer,
  19002. msm_routing_put_port_mixer),
  19003. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19004. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19005. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19006. msm_routing_get_port_mixer,
  19007. msm_routing_put_port_mixer),
  19008. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19009. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19010. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19011. msm_routing_get_port_mixer,
  19012. msm_routing_put_port_mixer),
  19013. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19014. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19015. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19016. msm_routing_get_port_mixer,
  19017. msm_routing_put_port_mixer),
  19018. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19019. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19020. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19021. msm_routing_get_port_mixer,
  19022. msm_routing_put_port_mixer),
  19023. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19024. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19025. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19026. msm_routing_get_port_mixer,
  19027. msm_routing_put_port_mixer),
  19028. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19029. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19030. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19031. msm_routing_get_port_mixer,
  19032. msm_routing_put_port_mixer),
  19033. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19034. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19035. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19036. msm_routing_get_port_mixer,
  19037. msm_routing_put_port_mixer),
  19038. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19039. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19040. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19041. msm_routing_get_port_mixer,
  19042. msm_routing_put_port_mixer),
  19043. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19044. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19045. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19046. msm_routing_get_port_mixer,
  19047. msm_routing_put_port_mixer),
  19048. };
  19049. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19050. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19051. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19052. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19053. msm_routing_get_port_mixer,
  19054. msm_routing_put_port_mixer),
  19055. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19056. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19057. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19058. msm_routing_get_port_mixer,
  19059. msm_routing_put_port_mixer),
  19060. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19061. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19062. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19063. msm_routing_get_port_mixer,
  19064. msm_routing_put_port_mixer),
  19065. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19066. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19067. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19068. msm_routing_get_port_mixer,
  19069. msm_routing_put_port_mixer),
  19070. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19071. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19072. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19073. msm_routing_get_port_mixer,
  19074. msm_routing_put_port_mixer),
  19075. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19076. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19077. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19078. msm_routing_get_port_mixer,
  19079. msm_routing_put_port_mixer),
  19080. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19081. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19082. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19083. msm_routing_get_port_mixer,
  19084. msm_routing_put_port_mixer),
  19085. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19086. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19087. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19088. msm_routing_get_port_mixer,
  19089. msm_routing_put_port_mixer),
  19090. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19091. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19092. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19093. msm_routing_get_port_mixer,
  19094. msm_routing_put_port_mixer),
  19095. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19096. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19097. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19098. msm_routing_get_port_mixer,
  19099. msm_routing_put_port_mixer),
  19100. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19101. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19102. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19103. msm_routing_get_port_mixer,
  19104. msm_routing_put_port_mixer),
  19105. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19106. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19107. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19108. msm_routing_get_port_mixer,
  19109. msm_routing_put_port_mixer),
  19110. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19111. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19112. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19113. msm_routing_get_port_mixer,
  19114. msm_routing_put_port_mixer),
  19115. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19116. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19117. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19118. msm_routing_get_port_mixer,
  19119. msm_routing_put_port_mixer),
  19120. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19121. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19122. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19123. msm_routing_get_port_mixer,
  19124. msm_routing_put_port_mixer),
  19125. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19126. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19127. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19128. msm_routing_get_port_mixer,
  19129. msm_routing_put_port_mixer),
  19130. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19131. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19132. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19133. msm_routing_get_port_mixer,
  19134. msm_routing_put_port_mixer),
  19135. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19136. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19137. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19138. msm_routing_get_port_mixer,
  19139. msm_routing_put_port_mixer),
  19140. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19141. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19142. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19143. msm_routing_get_port_mixer,
  19144. msm_routing_put_port_mixer),
  19145. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19146. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19147. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19148. msm_routing_get_port_mixer,
  19149. msm_routing_put_port_mixer),
  19150. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19151. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19152. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19153. msm_routing_get_port_mixer,
  19154. msm_routing_put_port_mixer),
  19155. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19156. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19157. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19158. msm_routing_get_port_mixer,
  19159. msm_routing_put_port_mixer),
  19160. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19161. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19162. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19163. msm_routing_get_port_mixer,
  19164. msm_routing_put_port_mixer),
  19165. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19166. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19167. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19168. msm_routing_get_port_mixer,
  19169. msm_routing_put_port_mixer),
  19170. };
  19171. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19172. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19173. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19174. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19175. msm_routing_get_port_mixer,
  19176. msm_routing_put_port_mixer),
  19177. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19178. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19179. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19180. msm_routing_get_port_mixer,
  19181. msm_routing_put_port_mixer),
  19182. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19183. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19184. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19185. msm_routing_get_port_mixer,
  19186. msm_routing_put_port_mixer),
  19187. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19188. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19189. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19190. msm_routing_get_port_mixer,
  19191. msm_routing_put_port_mixer),
  19192. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19193. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19194. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19195. msm_routing_get_port_mixer,
  19196. msm_routing_put_port_mixer),
  19197. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19198. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19199. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19200. msm_routing_get_port_mixer,
  19201. msm_routing_put_port_mixer),
  19202. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19203. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19204. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19205. msm_routing_get_port_mixer,
  19206. msm_routing_put_port_mixer),
  19207. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19208. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19209. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19210. msm_routing_get_port_mixer,
  19211. msm_routing_put_port_mixer),
  19212. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19213. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19214. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19215. msm_routing_get_port_mixer,
  19216. msm_routing_put_port_mixer),
  19217. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19218. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19219. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19220. msm_routing_get_port_mixer,
  19221. msm_routing_put_port_mixer),
  19222. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19223. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19224. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19225. msm_routing_get_port_mixer,
  19226. msm_routing_put_port_mixer),
  19227. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19228. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19229. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19230. msm_routing_get_port_mixer,
  19231. msm_routing_put_port_mixer),
  19232. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19233. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19234. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19235. msm_routing_get_port_mixer,
  19236. msm_routing_put_port_mixer),
  19237. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19238. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19239. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19240. msm_routing_get_port_mixer,
  19241. msm_routing_put_port_mixer),
  19242. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19243. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19244. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19245. msm_routing_get_port_mixer,
  19246. msm_routing_put_port_mixer),
  19247. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19248. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19249. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19250. msm_routing_get_port_mixer,
  19251. msm_routing_put_port_mixer),
  19252. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19253. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19254. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19255. msm_routing_get_port_mixer,
  19256. msm_routing_put_port_mixer),
  19257. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19258. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19259. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19260. msm_routing_get_port_mixer,
  19261. msm_routing_put_port_mixer),
  19262. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19263. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19264. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19265. msm_routing_get_port_mixer,
  19266. msm_routing_put_port_mixer),
  19267. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19268. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19269. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19270. msm_routing_get_port_mixer,
  19271. msm_routing_put_port_mixer),
  19272. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19273. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19274. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19275. msm_routing_get_port_mixer,
  19276. msm_routing_put_port_mixer),
  19277. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19278. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19279. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19280. msm_routing_get_port_mixer,
  19281. msm_routing_put_port_mixer),
  19282. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19283. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19284. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19285. msm_routing_get_port_mixer,
  19286. msm_routing_put_port_mixer),
  19287. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19288. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19289. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19290. msm_routing_get_port_mixer,
  19291. msm_routing_put_port_mixer),
  19292. };
  19293. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  19294. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19295. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19296. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19297. msm_routing_get_port_mixer,
  19298. msm_routing_put_port_mixer),
  19299. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19300. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19301. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19302. msm_routing_get_port_mixer,
  19303. msm_routing_put_port_mixer),
  19304. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19305. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19306. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19307. msm_routing_get_port_mixer,
  19308. msm_routing_put_port_mixer),
  19309. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19310. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19311. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19312. msm_routing_get_port_mixer,
  19313. msm_routing_put_port_mixer),
  19314. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19315. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19316. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19317. msm_routing_get_port_mixer,
  19318. msm_routing_put_port_mixer),
  19319. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19320. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19321. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19322. msm_routing_get_port_mixer,
  19323. msm_routing_put_port_mixer),
  19324. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19325. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19326. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19327. msm_routing_get_port_mixer,
  19328. msm_routing_put_port_mixer),
  19329. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19330. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19331. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19332. msm_routing_get_port_mixer,
  19333. msm_routing_put_port_mixer),
  19334. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19335. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19336. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19337. msm_routing_get_port_mixer,
  19338. msm_routing_put_port_mixer),
  19339. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19340. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19341. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19342. msm_routing_get_port_mixer,
  19343. msm_routing_put_port_mixer),
  19344. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19345. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19346. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19347. msm_routing_get_port_mixer,
  19348. msm_routing_put_port_mixer),
  19349. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19350. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19351. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19352. msm_routing_get_port_mixer,
  19353. msm_routing_put_port_mixer),
  19354. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19355. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19356. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19357. msm_routing_get_port_mixer,
  19358. msm_routing_put_port_mixer),
  19359. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19360. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19361. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19362. msm_routing_get_port_mixer,
  19363. msm_routing_put_port_mixer),
  19364. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19365. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19366. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19367. msm_routing_get_port_mixer,
  19368. msm_routing_put_port_mixer),
  19369. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19370. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19371. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19372. msm_routing_get_port_mixer,
  19373. msm_routing_put_port_mixer),
  19374. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19375. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19376. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19377. msm_routing_get_port_mixer,
  19378. msm_routing_put_port_mixer),
  19379. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19380. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19381. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19382. msm_routing_get_port_mixer,
  19383. msm_routing_put_port_mixer),
  19384. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19385. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19386. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19387. msm_routing_get_port_mixer,
  19388. msm_routing_put_port_mixer),
  19389. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19390. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19391. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19392. msm_routing_get_port_mixer,
  19393. msm_routing_put_port_mixer),
  19394. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19395. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19396. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19397. msm_routing_get_port_mixer,
  19398. msm_routing_put_port_mixer),
  19399. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19400. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19401. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19402. msm_routing_get_port_mixer,
  19403. msm_routing_put_port_mixer),
  19404. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19405. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19406. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19407. msm_routing_get_port_mixer,
  19408. msm_routing_put_port_mixer),
  19409. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19410. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19411. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19412. msm_routing_get_port_mixer,
  19413. msm_routing_put_port_mixer),
  19414. };
  19415. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  19416. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19417. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19418. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19419. msm_routing_get_port_mixer,
  19420. msm_routing_put_port_mixer),
  19421. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19422. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19423. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19424. msm_routing_get_port_mixer,
  19425. msm_routing_put_port_mixer),
  19426. };
  19427. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  19428. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19429. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19430. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19431. msm_routing_get_port_mixer,
  19432. msm_routing_put_port_mixer),
  19433. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19434. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19435. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19436. msm_routing_get_port_mixer,
  19437. msm_routing_put_port_mixer),
  19438. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19439. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19440. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19441. msm_routing_get_port_mixer,
  19442. msm_routing_put_port_mixer),
  19443. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19444. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19445. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19446. msm_routing_get_port_mixer,
  19447. msm_routing_put_port_mixer),
  19448. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19449. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19450. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19451. msm_routing_get_port_mixer,
  19452. msm_routing_put_port_mixer),
  19453. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19454. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19455. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19456. msm_routing_get_port_mixer,
  19457. msm_routing_put_port_mixer),
  19458. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19459. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19460. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19461. msm_routing_get_port_mixer,
  19462. msm_routing_put_port_mixer),
  19463. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19464. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19465. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19466. msm_routing_get_port_mixer,
  19467. msm_routing_put_port_mixer),
  19468. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19469. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19470. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19471. msm_routing_get_port_mixer,
  19472. msm_routing_put_port_mixer),
  19473. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19474. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19475. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19476. msm_routing_get_port_mixer,
  19477. msm_routing_put_port_mixer),
  19478. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19479. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19480. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19481. msm_routing_get_port_mixer,
  19482. msm_routing_put_port_mixer),
  19483. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19484. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19485. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19486. msm_routing_get_port_mixer,
  19487. msm_routing_put_port_mixer),
  19488. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19489. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19490. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19491. msm_routing_get_port_mixer,
  19492. msm_routing_put_port_mixer),
  19493. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19494. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19495. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19496. msm_routing_get_port_mixer,
  19497. msm_routing_put_port_mixer),
  19498. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19499. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19500. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19501. msm_routing_get_port_mixer,
  19502. msm_routing_put_port_mixer),
  19503. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19504. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19505. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19506. msm_routing_get_port_mixer,
  19507. msm_routing_put_port_mixer),
  19508. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19509. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19510. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19511. msm_routing_get_port_mixer,
  19512. msm_routing_put_port_mixer),
  19513. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19514. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19515. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19516. msm_routing_get_port_mixer,
  19517. msm_routing_put_port_mixer),
  19518. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19519. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19520. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19521. msm_routing_get_port_mixer,
  19522. msm_routing_put_port_mixer),
  19523. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19524. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19525. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19526. msm_routing_get_port_mixer,
  19527. msm_routing_put_port_mixer),
  19528. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19529. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19530. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19531. msm_routing_get_port_mixer,
  19532. msm_routing_put_port_mixer),
  19533. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19534. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19535. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19536. msm_routing_get_port_mixer,
  19537. msm_routing_put_port_mixer),
  19538. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19539. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19540. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19541. msm_routing_get_port_mixer,
  19542. msm_routing_put_port_mixer),
  19543. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19544. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19545. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19546. msm_routing_get_port_mixer,
  19547. msm_routing_put_port_mixer),
  19548. };
  19549. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  19550. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19551. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19552. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19553. msm_routing_get_port_mixer,
  19554. msm_routing_put_port_mixer),
  19555. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19556. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19557. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19558. msm_routing_get_port_mixer,
  19559. msm_routing_put_port_mixer),
  19560. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19561. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19562. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19563. msm_routing_get_port_mixer,
  19564. msm_routing_put_port_mixer),
  19565. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19566. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19567. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19568. msm_routing_get_port_mixer,
  19569. msm_routing_put_port_mixer),
  19570. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19571. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19572. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19573. msm_routing_get_port_mixer,
  19574. msm_routing_put_port_mixer),
  19575. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19576. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19577. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19578. msm_routing_get_port_mixer,
  19579. msm_routing_put_port_mixer),
  19580. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19581. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19582. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19583. msm_routing_get_port_mixer,
  19584. msm_routing_put_port_mixer),
  19585. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19586. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19587. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19588. msm_routing_get_port_mixer,
  19589. msm_routing_put_port_mixer),
  19590. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19591. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19592. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19593. msm_routing_get_port_mixer,
  19594. msm_routing_put_port_mixer),
  19595. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19596. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19597. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19598. msm_routing_get_port_mixer,
  19599. msm_routing_put_port_mixer),
  19600. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19601. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19602. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19603. msm_routing_get_port_mixer,
  19604. msm_routing_put_port_mixer),
  19605. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19606. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19607. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19608. msm_routing_get_port_mixer,
  19609. msm_routing_put_port_mixer),
  19610. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19611. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19612. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19613. msm_routing_get_port_mixer,
  19614. msm_routing_put_port_mixer),
  19615. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19616. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19617. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19618. msm_routing_get_port_mixer,
  19619. msm_routing_put_port_mixer),
  19620. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19621. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19622. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19623. msm_routing_get_port_mixer,
  19624. msm_routing_put_port_mixer),
  19625. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19626. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19627. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19628. msm_routing_get_port_mixer,
  19629. msm_routing_put_port_mixer),
  19630. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19631. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19632. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19633. msm_routing_get_port_mixer,
  19634. msm_routing_put_port_mixer),
  19635. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19636. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19637. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19638. msm_routing_get_port_mixer,
  19639. msm_routing_put_port_mixer),
  19640. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19641. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19642. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19643. msm_routing_get_port_mixer,
  19644. msm_routing_put_port_mixer),
  19645. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19646. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19647. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19648. msm_routing_get_port_mixer,
  19649. msm_routing_put_port_mixer),
  19650. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19651. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19652. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19653. msm_routing_get_port_mixer,
  19654. msm_routing_put_port_mixer),
  19655. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19656. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19657. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19658. msm_routing_get_port_mixer,
  19659. msm_routing_put_port_mixer),
  19660. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19661. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19662. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19663. msm_routing_get_port_mixer,
  19664. msm_routing_put_port_mixer),
  19665. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19666. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19667. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19668. msm_routing_get_port_mixer,
  19669. msm_routing_put_port_mixer),
  19670. };
  19671. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  19672. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19673. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19674. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19675. msm_routing_get_port_mixer,
  19676. msm_routing_put_port_mixer),
  19677. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19678. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19679. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19680. msm_routing_get_port_mixer,
  19681. msm_routing_put_port_mixer),
  19682. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19683. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19684. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19685. msm_routing_get_port_mixer,
  19686. msm_routing_put_port_mixer),
  19687. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19688. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19689. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19690. msm_routing_get_port_mixer,
  19691. msm_routing_put_port_mixer),
  19692. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19693. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19694. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19695. msm_routing_get_port_mixer,
  19696. msm_routing_put_port_mixer),
  19697. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19698. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19699. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19700. msm_routing_get_port_mixer,
  19701. msm_routing_put_port_mixer),
  19702. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19703. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19704. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19705. msm_routing_get_port_mixer,
  19706. msm_routing_put_port_mixer),
  19707. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19708. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19709. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19710. msm_routing_get_port_mixer,
  19711. msm_routing_put_port_mixer),
  19712. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19713. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19714. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19715. msm_routing_get_port_mixer,
  19716. msm_routing_put_port_mixer),
  19717. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19718. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19719. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19720. msm_routing_get_port_mixer,
  19721. msm_routing_put_port_mixer),
  19722. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19723. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19724. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19725. msm_routing_get_port_mixer,
  19726. msm_routing_put_port_mixer),
  19727. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19728. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19729. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19730. msm_routing_get_port_mixer,
  19731. msm_routing_put_port_mixer),
  19732. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19733. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19734. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19735. msm_routing_get_port_mixer,
  19736. msm_routing_put_port_mixer),
  19737. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19738. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19739. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19740. msm_routing_get_port_mixer,
  19741. msm_routing_put_port_mixer),
  19742. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19743. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19744. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19745. msm_routing_get_port_mixer,
  19746. msm_routing_put_port_mixer),
  19747. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19748. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19749. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19750. msm_routing_get_port_mixer,
  19751. msm_routing_put_port_mixer),
  19752. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19753. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19754. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19755. msm_routing_get_port_mixer,
  19756. msm_routing_put_port_mixer),
  19757. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19758. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19759. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19760. msm_routing_get_port_mixer,
  19761. msm_routing_put_port_mixer),
  19762. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19763. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19764. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19765. msm_routing_get_port_mixer,
  19766. msm_routing_put_port_mixer),
  19767. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19768. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19769. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19770. msm_routing_get_port_mixer,
  19771. msm_routing_put_port_mixer),
  19772. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19773. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19774. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19775. msm_routing_get_port_mixer,
  19776. msm_routing_put_port_mixer),
  19777. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19778. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19779. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19780. msm_routing_get_port_mixer,
  19781. msm_routing_put_port_mixer),
  19782. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19783. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19784. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19785. msm_routing_get_port_mixer,
  19786. msm_routing_put_port_mixer),
  19787. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19788. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19789. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19790. msm_routing_get_port_mixer,
  19791. msm_routing_put_port_mixer),
  19792. };
  19793. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  19794. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19795. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19796. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19797. msm_routing_get_port_mixer,
  19798. msm_routing_put_port_mixer),
  19799. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19800. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19801. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19802. msm_routing_get_port_mixer,
  19803. msm_routing_put_port_mixer),
  19804. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19805. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19806. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19807. msm_routing_get_port_mixer,
  19808. msm_routing_put_port_mixer),
  19809. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19810. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19811. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19812. msm_routing_get_port_mixer,
  19813. msm_routing_put_port_mixer),
  19814. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19815. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19816. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19817. msm_routing_get_port_mixer,
  19818. msm_routing_put_port_mixer),
  19819. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19820. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19821. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19822. msm_routing_get_port_mixer,
  19823. msm_routing_put_port_mixer),
  19824. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19825. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19826. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19827. msm_routing_get_port_mixer,
  19828. msm_routing_put_port_mixer),
  19829. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19830. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19831. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19832. msm_routing_get_port_mixer,
  19833. msm_routing_put_port_mixer),
  19834. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19835. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19836. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19837. msm_routing_get_port_mixer,
  19838. msm_routing_put_port_mixer),
  19839. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19840. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19841. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19842. msm_routing_get_port_mixer,
  19843. msm_routing_put_port_mixer),
  19844. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19845. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19846. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19847. msm_routing_get_port_mixer,
  19848. msm_routing_put_port_mixer),
  19849. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19850. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19851. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19852. msm_routing_get_port_mixer,
  19853. msm_routing_put_port_mixer),
  19854. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19855. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19856. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19857. msm_routing_get_port_mixer,
  19858. msm_routing_put_port_mixer),
  19859. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19860. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19861. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19862. msm_routing_get_port_mixer,
  19863. msm_routing_put_port_mixer),
  19864. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19865. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19866. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19867. msm_routing_get_port_mixer,
  19868. msm_routing_put_port_mixer),
  19869. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19870. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19871. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19872. msm_routing_get_port_mixer,
  19873. msm_routing_put_port_mixer),
  19874. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19875. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19876. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19877. msm_routing_get_port_mixer,
  19878. msm_routing_put_port_mixer),
  19879. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19880. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19881. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19882. msm_routing_get_port_mixer,
  19883. msm_routing_put_port_mixer),
  19884. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19885. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19886. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19887. msm_routing_get_port_mixer,
  19888. msm_routing_put_port_mixer),
  19889. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19890. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19891. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19892. msm_routing_get_port_mixer,
  19893. msm_routing_put_port_mixer),
  19894. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19895. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19896. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19897. msm_routing_get_port_mixer,
  19898. msm_routing_put_port_mixer),
  19899. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19900. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19901. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19902. msm_routing_get_port_mixer,
  19903. msm_routing_put_port_mixer),
  19904. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19905. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19906. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19907. msm_routing_get_port_mixer,
  19908. msm_routing_put_port_mixer),
  19909. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19910. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19911. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19912. msm_routing_get_port_mixer,
  19913. msm_routing_put_port_mixer),
  19914. };
  19915. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  19916. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19917. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19918. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19919. msm_routing_get_port_mixer,
  19920. msm_routing_put_port_mixer),
  19921. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19922. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19923. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19924. msm_routing_get_port_mixer,
  19925. msm_routing_put_port_mixer),
  19926. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19927. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19928. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19929. msm_routing_get_port_mixer,
  19930. msm_routing_put_port_mixer),
  19931. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19932. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19933. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19934. msm_routing_get_port_mixer,
  19935. msm_routing_put_port_mixer),
  19936. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19937. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19938. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19939. msm_routing_get_port_mixer,
  19940. msm_routing_put_port_mixer),
  19941. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19942. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19943. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19944. msm_routing_get_port_mixer,
  19945. msm_routing_put_port_mixer),
  19946. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19947. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19948. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19949. msm_routing_get_port_mixer,
  19950. msm_routing_put_port_mixer),
  19951. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19952. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19953. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19954. msm_routing_get_port_mixer,
  19955. msm_routing_put_port_mixer),
  19956. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19957. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19958. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19959. msm_routing_get_port_mixer,
  19960. msm_routing_put_port_mixer),
  19961. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19962. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19963. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19964. msm_routing_get_port_mixer,
  19965. msm_routing_put_port_mixer),
  19966. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19967. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19968. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19969. msm_routing_get_port_mixer,
  19970. msm_routing_put_port_mixer),
  19971. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19972. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19973. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19974. msm_routing_get_port_mixer,
  19975. msm_routing_put_port_mixer),
  19976. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19977. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19978. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19979. msm_routing_get_port_mixer,
  19980. msm_routing_put_port_mixer),
  19981. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19982. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19983. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19984. msm_routing_get_port_mixer,
  19985. msm_routing_put_port_mixer),
  19986. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19987. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19988. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19989. msm_routing_get_port_mixer,
  19990. msm_routing_put_port_mixer),
  19991. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19992. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19993. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19994. msm_routing_get_port_mixer,
  19995. msm_routing_put_port_mixer),
  19996. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19997. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19998. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19999. msm_routing_get_port_mixer,
  20000. msm_routing_put_port_mixer),
  20001. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20002. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20003. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20004. msm_routing_get_port_mixer,
  20005. msm_routing_put_port_mixer),
  20006. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20007. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20008. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20009. msm_routing_get_port_mixer,
  20010. msm_routing_put_port_mixer),
  20011. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20012. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20013. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20014. msm_routing_get_port_mixer,
  20015. msm_routing_put_port_mixer),
  20016. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20017. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20018. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20019. msm_routing_get_port_mixer,
  20020. msm_routing_put_port_mixer),
  20021. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20022. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20023. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20024. msm_routing_get_port_mixer,
  20025. msm_routing_put_port_mixer),
  20026. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20027. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20028. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20029. msm_routing_get_port_mixer,
  20030. msm_routing_put_port_mixer),
  20031. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20032. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20033. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20034. msm_routing_get_port_mixer,
  20035. msm_routing_put_port_mixer),
  20036. };
  20037. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20038. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20039. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20040. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20041. msm_routing_get_port_mixer,
  20042. msm_routing_put_port_mixer),
  20043. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20044. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20045. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20046. msm_routing_get_port_mixer,
  20047. msm_routing_put_port_mixer),
  20048. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20049. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20050. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20051. msm_routing_get_port_mixer,
  20052. msm_routing_put_port_mixer),
  20053. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20054. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20055. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20056. msm_routing_get_port_mixer,
  20057. msm_routing_put_port_mixer),
  20058. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20059. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20060. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20061. msm_routing_get_port_mixer,
  20062. msm_routing_put_port_mixer),
  20063. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20064. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20065. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20066. msm_routing_get_port_mixer,
  20067. msm_routing_put_port_mixer),
  20068. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20069. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20070. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20071. msm_routing_get_port_mixer,
  20072. msm_routing_put_port_mixer),
  20073. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20074. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20075. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20076. msm_routing_get_port_mixer,
  20077. msm_routing_put_port_mixer),
  20078. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20079. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20080. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20081. msm_routing_get_port_mixer,
  20082. msm_routing_put_port_mixer),
  20083. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20084. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20085. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20086. msm_routing_get_port_mixer,
  20087. msm_routing_put_port_mixer),
  20088. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20089. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20090. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20091. msm_routing_get_port_mixer,
  20092. msm_routing_put_port_mixer),
  20093. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20094. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20095. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20096. msm_routing_get_port_mixer,
  20097. msm_routing_put_port_mixer),
  20098. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20099. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20100. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20101. msm_routing_get_port_mixer,
  20102. msm_routing_put_port_mixer),
  20103. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20104. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20105. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20106. msm_routing_get_port_mixer,
  20107. msm_routing_put_port_mixer),
  20108. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20109. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20110. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20111. msm_routing_get_port_mixer,
  20112. msm_routing_put_port_mixer),
  20113. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20114. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20115. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20116. msm_routing_get_port_mixer,
  20117. msm_routing_put_port_mixer),
  20118. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20119. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20120. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20121. msm_routing_get_port_mixer,
  20122. msm_routing_put_port_mixer),
  20123. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20124. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20125. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20126. msm_routing_get_port_mixer,
  20127. msm_routing_put_port_mixer),
  20128. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20129. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20130. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20131. msm_routing_get_port_mixer,
  20132. msm_routing_put_port_mixer),
  20133. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20134. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20135. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20136. msm_routing_get_port_mixer,
  20137. msm_routing_put_port_mixer),
  20138. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20139. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20140. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20141. msm_routing_get_port_mixer,
  20142. msm_routing_put_port_mixer),
  20143. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20144. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20145. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20146. msm_routing_get_port_mixer,
  20147. msm_routing_put_port_mixer),
  20148. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20149. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20150. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20151. msm_routing_get_port_mixer,
  20152. msm_routing_put_port_mixer),
  20153. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20154. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20155. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20156. msm_routing_get_port_mixer,
  20157. msm_routing_put_port_mixer),
  20158. };
  20159. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20160. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20161. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20162. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20163. msm_routing_get_port_mixer,
  20164. msm_routing_put_port_mixer),
  20165. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20166. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20167. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20168. msm_routing_get_port_mixer,
  20169. msm_routing_put_port_mixer),
  20170. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20171. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20172. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20173. msm_routing_get_port_mixer,
  20174. msm_routing_put_port_mixer),
  20175. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20176. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20177. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20178. msm_routing_get_port_mixer,
  20179. msm_routing_put_port_mixer),
  20180. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20181. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20182. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20183. msm_routing_get_port_mixer,
  20184. msm_routing_put_port_mixer),
  20185. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20186. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20187. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20188. msm_routing_get_port_mixer,
  20189. msm_routing_put_port_mixer),
  20190. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20191. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20192. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20193. msm_routing_get_port_mixer,
  20194. msm_routing_put_port_mixer),
  20195. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20196. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20197. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20198. msm_routing_get_port_mixer,
  20199. msm_routing_put_port_mixer),
  20200. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20201. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20202. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20203. msm_routing_get_port_mixer,
  20204. msm_routing_put_port_mixer),
  20205. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20206. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20207. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20208. msm_routing_get_port_mixer,
  20209. msm_routing_put_port_mixer),
  20210. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20211. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20212. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20213. msm_routing_get_port_mixer,
  20214. msm_routing_put_port_mixer),
  20215. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20216. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20217. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20218. msm_routing_get_port_mixer,
  20219. msm_routing_put_port_mixer),
  20220. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20221. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20222. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20223. msm_routing_get_port_mixer,
  20224. msm_routing_put_port_mixer),
  20225. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20226. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20227. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20228. msm_routing_get_port_mixer,
  20229. msm_routing_put_port_mixer),
  20230. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20231. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20232. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20233. msm_routing_get_port_mixer,
  20234. msm_routing_put_port_mixer),
  20235. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20236. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20237. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20238. msm_routing_get_port_mixer,
  20239. msm_routing_put_port_mixer),
  20240. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20241. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20242. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20243. msm_routing_get_port_mixer,
  20244. msm_routing_put_port_mixer),
  20245. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20246. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20247. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20248. msm_routing_get_port_mixer,
  20249. msm_routing_put_port_mixer),
  20250. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20251. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20252. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20253. msm_routing_get_port_mixer,
  20254. msm_routing_put_port_mixer),
  20255. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20256. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20257. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20258. msm_routing_get_port_mixer,
  20259. msm_routing_put_port_mixer),
  20260. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20261. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20262. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20263. msm_routing_get_port_mixer,
  20264. msm_routing_put_port_mixer),
  20265. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20266. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20267. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20268. msm_routing_get_port_mixer,
  20269. msm_routing_put_port_mixer),
  20270. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20271. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20272. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20273. msm_routing_get_port_mixer,
  20274. msm_routing_put_port_mixer),
  20275. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20276. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20277. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20278. msm_routing_get_port_mixer,
  20279. msm_routing_put_port_mixer),
  20280. };
  20281. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  20282. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20283. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20284. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20285. msm_routing_get_port_mixer,
  20286. msm_routing_put_port_mixer),
  20287. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20288. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20289. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20290. msm_routing_get_port_mixer,
  20291. msm_routing_put_port_mixer),
  20292. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20293. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20294. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20295. msm_routing_get_port_mixer,
  20296. msm_routing_put_port_mixer),
  20297. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20298. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20299. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20300. msm_routing_get_port_mixer,
  20301. msm_routing_put_port_mixer),
  20302. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20303. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20304. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20305. msm_routing_get_port_mixer,
  20306. msm_routing_put_port_mixer),
  20307. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20308. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20309. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20310. msm_routing_get_port_mixer,
  20311. msm_routing_put_port_mixer),
  20312. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20313. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20314. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20315. msm_routing_get_port_mixer,
  20316. msm_routing_put_port_mixer),
  20317. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20318. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20319. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20320. msm_routing_get_port_mixer,
  20321. msm_routing_put_port_mixer),
  20322. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20323. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20324. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20325. msm_routing_get_port_mixer,
  20326. msm_routing_put_port_mixer),
  20327. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20328. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20329. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20330. msm_routing_get_port_mixer,
  20331. msm_routing_put_port_mixer),
  20332. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20333. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20334. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20335. msm_routing_get_port_mixer,
  20336. msm_routing_put_port_mixer),
  20337. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20338. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20339. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20340. msm_routing_get_port_mixer,
  20341. msm_routing_put_port_mixer),
  20342. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20343. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20344. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20345. msm_routing_get_port_mixer,
  20346. msm_routing_put_port_mixer),
  20347. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20348. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20349. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20350. msm_routing_get_port_mixer,
  20351. msm_routing_put_port_mixer),
  20352. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20353. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20354. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20355. msm_routing_get_port_mixer,
  20356. msm_routing_put_port_mixer),
  20357. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20358. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20359. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20360. msm_routing_get_port_mixer,
  20361. msm_routing_put_port_mixer),
  20362. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20363. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20364. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20365. msm_routing_get_port_mixer,
  20366. msm_routing_put_port_mixer),
  20367. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20368. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20369. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20370. msm_routing_get_port_mixer,
  20371. msm_routing_put_port_mixer),
  20372. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20373. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20374. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20375. msm_routing_get_port_mixer,
  20376. msm_routing_put_port_mixer),
  20377. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20378. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20379. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20380. msm_routing_get_port_mixer,
  20381. msm_routing_put_port_mixer),
  20382. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20383. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20384. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20385. msm_routing_get_port_mixer,
  20386. msm_routing_put_port_mixer),
  20387. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20388. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20389. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20390. msm_routing_get_port_mixer,
  20391. msm_routing_put_port_mixer),
  20392. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20393. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20394. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20395. msm_routing_get_port_mixer,
  20396. msm_routing_put_port_mixer),
  20397. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20398. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20399. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20400. msm_routing_get_port_mixer,
  20401. msm_routing_put_port_mixer),
  20402. };
  20403. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  20404. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  20405. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20406. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  20407. msm_routing_get_port_mixer,
  20408. msm_routing_put_port_mixer),
  20409. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20410. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20411. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20412. msm_routing_get_port_mixer,
  20413. msm_routing_put_port_mixer),
  20414. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20415. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20416. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20417. msm_routing_get_port_mixer,
  20418. msm_routing_put_port_mixer),
  20419. };
  20420. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  20421. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20422. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20423. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20424. msm_routing_put_port_mixer),
  20425. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20426. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20427. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20428. msm_routing_put_port_mixer),
  20429. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20430. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20431. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20432. msm_routing_put_port_mixer),
  20433. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20434. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20435. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20436. msm_routing_put_port_mixer),
  20437. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20438. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20439. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20440. msm_routing_put_port_mixer),
  20441. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20442. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20443. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20444. msm_routing_put_port_mixer),
  20445. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20446. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20447. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20448. msm_routing_put_port_mixer),
  20449. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20450. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20451. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20452. msm_routing_put_port_mixer),
  20453. };
  20454. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20455. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20456. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20457. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20458. msm_routing_put_port_mixer),
  20459. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20460. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20461. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20462. msm_routing_put_port_mixer),
  20463. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20464. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20465. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20466. msm_routing_put_port_mixer),
  20467. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20468. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20469. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20470. msm_routing_put_port_mixer),
  20471. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20472. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20473. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20474. msm_routing_put_port_mixer),
  20475. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20476. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20477. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20478. msm_routing_put_port_mixer),
  20479. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20480. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20481. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20482. msm_routing_put_port_mixer),
  20483. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20484. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20485. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20486. msm_routing_put_port_mixer),
  20487. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20488. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20489. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20490. msm_routing_put_port_mixer),
  20491. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20492. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20493. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  20494. msm_routing_put_port_mixer),
  20495. };
  20496. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  20497. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20498. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20499. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20500. msm_routing_put_listen_mixer),
  20501. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20502. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20503. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20504. msm_routing_put_listen_mixer),
  20505. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20506. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20507. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20508. msm_routing_put_listen_mixer),
  20509. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20510. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20511. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20512. msm_routing_put_listen_mixer),
  20513. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20514. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20515. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20516. msm_routing_put_listen_mixer),
  20517. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20518. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20519. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20520. msm_routing_put_listen_mixer),
  20521. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20522. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20523. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20524. msm_routing_put_listen_mixer),
  20525. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20526. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20527. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20528. msm_routing_put_listen_mixer),
  20529. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20530. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20531. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20532. msm_routing_put_listen_mixer),
  20533. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20534. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20535. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20536. msm_routing_put_listen_mixer),
  20537. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20538. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20539. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20540. msm_routing_put_listen_mixer),
  20541. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20542. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20543. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20544. msm_routing_put_listen_mixer),
  20545. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20546. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20547. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20548. msm_routing_put_listen_mixer),
  20549. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20550. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20551. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20552. msm_routing_put_listen_mixer),
  20553. };
  20554. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  20555. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20556. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20557. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20558. msm_routing_put_listen_mixer),
  20559. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  20560. SND_SOC_NOPM,
  20561. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20562. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20563. msm_routing_put_listen_mixer),
  20564. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20565. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20566. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20567. msm_routing_put_listen_mixer),
  20568. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20569. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20570. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20571. msm_routing_put_listen_mixer),
  20572. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20573. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20574. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20575. msm_routing_put_listen_mixer),
  20576. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20577. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20578. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20579. msm_routing_put_listen_mixer),
  20580. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20581. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20582. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20583. msm_routing_put_listen_mixer),
  20584. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20585. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20586. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20587. msm_routing_put_listen_mixer),
  20588. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20589. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20590. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20591. msm_routing_put_listen_mixer),
  20592. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20593. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20594. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20595. msm_routing_put_listen_mixer),
  20596. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20597. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20598. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20599. msm_routing_put_listen_mixer),
  20600. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20601. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20602. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20603. msm_routing_put_listen_mixer),
  20604. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20605. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20606. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20607. msm_routing_put_listen_mixer),
  20608. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20609. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20610. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20611. msm_routing_put_listen_mixer),
  20612. };
  20613. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  20614. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20615. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20616. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20617. msm_routing_put_listen_mixer),
  20618. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20619. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20620. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20621. msm_routing_put_listen_mixer),
  20622. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20623. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20624. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20625. msm_routing_put_listen_mixer),
  20626. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20627. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20628. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20629. msm_routing_put_listen_mixer),
  20630. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20631. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20632. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20633. msm_routing_put_listen_mixer),
  20634. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20635. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20636. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20637. msm_routing_put_listen_mixer),
  20638. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20639. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20640. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20641. msm_routing_put_listen_mixer),
  20642. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20643. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20644. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20645. msm_routing_put_listen_mixer),
  20646. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20647. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20648. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20649. msm_routing_put_listen_mixer),
  20650. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20651. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20652. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20653. msm_routing_put_listen_mixer),
  20654. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20655. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20656. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20657. msm_routing_put_listen_mixer),
  20658. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20659. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20660. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20661. msm_routing_put_listen_mixer),
  20662. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20663. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20664. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20665. msm_routing_put_listen_mixer),
  20666. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20667. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20668. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20669. msm_routing_put_listen_mixer),
  20670. };
  20671. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  20672. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20673. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20674. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20675. msm_routing_put_listen_mixer),
  20676. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20677. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20678. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20679. msm_routing_put_listen_mixer),
  20680. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20681. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20682. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20683. msm_routing_put_listen_mixer),
  20684. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20685. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20686. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20687. msm_routing_put_listen_mixer),
  20688. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20689. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20690. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20691. msm_routing_put_listen_mixer),
  20692. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20693. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20694. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20695. msm_routing_put_listen_mixer),
  20696. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20697. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20698. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20699. msm_routing_put_listen_mixer),
  20700. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20701. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20702. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20703. msm_routing_put_listen_mixer),
  20704. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20705. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20706. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20707. msm_routing_put_listen_mixer),
  20708. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20709. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20710. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20711. msm_routing_put_listen_mixer),
  20712. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20713. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20714. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20715. msm_routing_put_listen_mixer),
  20716. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20717. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20718. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20719. msm_routing_put_listen_mixer),
  20720. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20721. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20722. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20723. msm_routing_put_listen_mixer),
  20724. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20725. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20726. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20727. msm_routing_put_listen_mixer),
  20728. };
  20729. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  20730. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20731. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20732. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20733. msm_routing_put_listen_mixer),
  20734. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20735. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20736. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20737. msm_routing_put_listen_mixer),
  20738. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20739. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20740. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20741. msm_routing_put_listen_mixer),
  20742. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20743. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20744. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20745. msm_routing_put_listen_mixer),
  20746. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20747. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20748. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20749. msm_routing_put_listen_mixer),
  20750. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20751. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20752. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20753. msm_routing_put_listen_mixer),
  20754. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20755. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20756. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20757. msm_routing_put_listen_mixer),
  20758. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20759. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20760. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20761. msm_routing_put_listen_mixer),
  20762. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20763. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20764. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20765. msm_routing_put_listen_mixer),
  20766. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20767. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20768. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20769. msm_routing_put_listen_mixer),
  20770. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20771. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20772. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20773. msm_routing_put_listen_mixer),
  20774. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20775. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20776. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20777. msm_routing_put_listen_mixer),
  20778. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20779. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20780. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20781. msm_routing_put_listen_mixer),
  20782. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20783. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20784. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20785. msm_routing_put_listen_mixer),
  20786. };
  20787. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  20788. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20789. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20790. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20791. msm_routing_put_listen_mixer),
  20792. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20793. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20794. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20795. msm_routing_put_listen_mixer),
  20796. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20797. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20798. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20799. msm_routing_put_listen_mixer),
  20800. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20801. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20802. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20803. msm_routing_put_listen_mixer),
  20804. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20805. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20806. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20807. msm_routing_put_listen_mixer),
  20808. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20809. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20810. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20811. msm_routing_put_listen_mixer),
  20812. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20813. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20814. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20815. msm_routing_put_listen_mixer),
  20816. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20817. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20818. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20819. msm_routing_put_listen_mixer),
  20820. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20821. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20822. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20823. msm_routing_put_listen_mixer),
  20824. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20825. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20826. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20827. msm_routing_put_listen_mixer),
  20828. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20829. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20830. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20831. msm_routing_put_listen_mixer),
  20832. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20833. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20834. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20835. msm_routing_put_listen_mixer),
  20836. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20837. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20838. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20839. msm_routing_put_listen_mixer),
  20840. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20841. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20842. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20843. msm_routing_put_listen_mixer),
  20844. };
  20845. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  20846. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20847. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20848. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20849. msm_routing_put_listen_mixer),
  20850. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20851. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20852. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20853. msm_routing_put_listen_mixer),
  20854. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20855. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20856. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20857. msm_routing_put_listen_mixer),
  20858. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20859. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20860. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20861. msm_routing_put_listen_mixer),
  20862. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20863. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20864. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20865. msm_routing_put_listen_mixer),
  20866. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20867. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20868. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20869. msm_routing_put_listen_mixer),
  20870. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20871. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20872. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20873. msm_routing_put_listen_mixer),
  20874. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20875. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20876. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20877. msm_routing_put_listen_mixer),
  20878. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20879. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20880. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20881. msm_routing_put_listen_mixer),
  20882. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20883. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20884. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20885. msm_routing_put_listen_mixer),
  20886. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20887. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20888. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20889. msm_routing_put_listen_mixer),
  20890. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20891. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20892. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20893. msm_routing_put_listen_mixer),
  20894. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20895. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20896. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20897. msm_routing_put_listen_mixer),
  20898. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20899. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20900. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20901. msm_routing_put_listen_mixer),
  20902. };
  20903. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  20904. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20905. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20906. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20907. msm_routing_put_listen_mixer),
  20908. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20909. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20910. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20911. msm_routing_put_listen_mixer),
  20912. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20913. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20914. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20915. msm_routing_put_listen_mixer),
  20916. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20917. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20918. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20919. msm_routing_put_listen_mixer),
  20920. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20921. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20922. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20923. msm_routing_put_listen_mixer),
  20924. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20925. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20926. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20927. msm_routing_put_listen_mixer),
  20928. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20929. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20930. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20931. msm_routing_put_listen_mixer),
  20932. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20933. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20934. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20935. msm_routing_put_listen_mixer),
  20936. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20937. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20938. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20939. msm_routing_put_listen_mixer),
  20940. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20941. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20942. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20943. msm_routing_put_listen_mixer),
  20944. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20945. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20946. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20947. msm_routing_put_listen_mixer),
  20948. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20949. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20950. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20951. msm_routing_put_listen_mixer),
  20952. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20953. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20954. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20955. msm_routing_put_listen_mixer),
  20956. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20957. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  20958. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20959. msm_routing_put_listen_mixer),
  20960. };
  20961. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  20962. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20963. 0, 1, 0, msm_routing_get_switch_mixer,
  20964. msm_routing_put_switch_mixer);
  20965. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  20966. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20967. 0, 1, 0, msm_routing_get_switch_mixer,
  20968. msm_routing_put_switch_mixer);
  20969. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  20970. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20971. 0, 1, 0, msm_routing_get_switch_mixer,
  20972. msm_routing_put_switch_mixer);
  20973. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  20974. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20975. 0, 1, 0, msm_routing_get_switch_mixer,
  20976. msm_routing_put_switch_mixer);
  20977. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  20978. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20979. 0, 1, 0, msm_routing_get_switch_mixer,
  20980. msm_routing_put_switch_mixer);
  20981. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  20982. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20983. 0, 1, 0, msm_routing_get_switch_mixer,
  20984. msm_routing_put_switch_mixer);
  20985. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  20986. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20987. 0, 1, 0, msm_routing_get_switch_mixer,
  20988. msm_routing_put_switch_mixer);
  20989. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  20990. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20991. 0, 1, 0, msm_routing_get_switch_mixer,
  20992. msm_routing_put_switch_mixer);
  20993. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  20994. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20995. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  20996. msm_routing_put_fm_pcmrx_switch_mixer);
  20997. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  20998. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20999. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  21000. msm_routing_put_int0_mi2s_switch_mixer);
  21001. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  21002. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21003. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  21004. msm_routing_put_int4_mi2s_switch_mixer);
  21005. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  21006. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21007. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21008. msm_routing_put_pri_mi2s_switch_mixer);
  21009. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21010. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21011. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21012. msm_routing_put_sec_mi2s_switch_mixer);
  21013. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21014. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21015. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21016. msm_routing_put_tert_mi2s_switch_mixer);
  21017. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21018. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21019. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21020. msm_routing_put_quat_mi2s_switch_mixer);
  21021. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21022. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21023. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21024. msm_routing_put_quin_mi2s_switch_mixer);
  21025. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21026. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21027. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21028. msm_routing_put_sen_mi2s_switch_mixer);
  21029. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21030. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21031. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21032. msm_routing_put_hfp_switch_mixer);
  21033. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21034. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21035. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21036. msm_routing_put_hfp_switch_mixer);
  21037. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21038. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21039. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21040. msm_routing_put_hfp_switch_mixer);
  21041. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21042. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21043. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21044. msm_routing_put_hfp_switch_mixer);
  21045. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21046. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21047. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21048. msm_routing_put_usb_switch_mixer);
  21049. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21050. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21051. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21052. msm_routing_a2dp_switch_mixer_put);
  21053. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21054. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21055. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21056. msm_routing_sco_switch_mixer_put);
  21057. static const struct soc_enum lsm_port_enum =
  21058. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21059. static const char * const lsm_func_text[] = {
  21060. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21061. };
  21062. static const struct soc_enum lsm_func_enum =
  21063. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21064. static const struct snd_kcontrol_new lsm_controls[] = {
  21065. /* kcontrol of lsm_function */
  21066. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21067. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21068. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21069. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21070. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21071. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21072. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21073. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21074. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21075. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21076. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21077. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21078. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21079. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21080. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21081. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21082. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21083. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21084. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21085. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21086. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21087. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21088. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21089. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21090. /* kcontrol of lsm_port */
  21091. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21092. msm_routing_lsm_port_get,
  21093. msm_routing_lsm_port_put),
  21094. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21095. msm_routing_lsm_port_get,
  21096. msm_routing_lsm_port_put),
  21097. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21098. msm_routing_lsm_port_get,
  21099. msm_routing_lsm_port_put),
  21100. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21101. msm_routing_lsm_port_get,
  21102. msm_routing_lsm_port_put),
  21103. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21104. msm_routing_lsm_port_get,
  21105. msm_routing_lsm_port_put),
  21106. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21107. msm_routing_lsm_port_get,
  21108. msm_routing_lsm_port_put),
  21109. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21110. msm_routing_lsm_port_get,
  21111. msm_routing_lsm_port_put),
  21112. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21113. msm_routing_lsm_port_get,
  21114. msm_routing_lsm_port_put),
  21115. };
  21116. static const char * const aanc_slim_0_rx_text[] = {
  21117. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21118. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21119. };
  21120. static const struct soc_enum aanc_slim_0_rx_enum =
  21121. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21122. aanc_slim_0_rx_text);
  21123. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21124. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21125. msm_routing_slim_0_rx_aanc_mux_get,
  21126. msm_routing_slim_0_rx_aanc_mux_put)
  21127. };
  21128. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21129. struct snd_ctl_elem_value *ucontrol)
  21130. {
  21131. ucontrol->value.integer.value[0] = aanc_level;
  21132. return 0;
  21133. }
  21134. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21135. struct snd_ctl_elem_value *ucontrol)
  21136. {
  21137. int ret = 0;
  21138. mutex_lock(&routing_lock);
  21139. aanc_level = ucontrol->value.integer.value[0];
  21140. pr_debug("%s: value: %ld\n",
  21141. __func__, ucontrol->value.integer.value[0]);
  21142. ret = afe_set_aanc_noise_level(aanc_level);
  21143. mutex_unlock(&routing_lock);
  21144. return ret;
  21145. }
  21146. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21147. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21148. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21149. };
  21150. static int msm_routing_get_stereo_to_custom_stereo_control(
  21151. struct snd_kcontrol *kcontrol,
  21152. struct snd_ctl_elem_value *ucontrol)
  21153. {
  21154. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21155. return 0;
  21156. }
  21157. static int msm_routing_put_stereo_to_custom_stereo_control(
  21158. struct snd_kcontrol *kcontrol,
  21159. struct snd_ctl_elem_value *ucontrol)
  21160. {
  21161. int flag = 0, i = 0, rc = 0, idx = 0;
  21162. int be_index = 0, port_id, topo_id;
  21163. unsigned int session_id = 0;
  21164. uint16_t op_FL_ip_FL_weight = 0;
  21165. uint16_t op_FL_ip_FR_weight = 0;
  21166. uint16_t op_FR_ip_FL_weight = 0;
  21167. uint16_t op_FR_ip_FR_weight = 0;
  21168. flag = ucontrol->value.integer.value[0];
  21169. pr_debug("%s E flag %d\n", __func__, flag);
  21170. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21171. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21172. __func__, is_custom_stereo_on, flag);
  21173. return 0;
  21174. }
  21175. is_custom_stereo_on = flag ? true : false;
  21176. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  21177. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21178. port_id = msm_bedais[be_index].port_id;
  21179. if (!msm_bedais[be_index].active)
  21180. continue;
  21181. if ((port_id != SLIMBUS_0_RX) &&
  21182. (port_id != RT_PROXY_PORT_001_RX) &&
  21183. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  21184. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  21185. continue;
  21186. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21187. MSM_FRONTEND_DAI_MM_SIZE) {
  21188. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  21189. LEGACY_PCM_MODE)
  21190. goto skip_send_custom_stereo;
  21191. session_id =
  21192. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  21193. if (is_custom_stereo_on) {
  21194. op_FL_ip_FL_weight =
  21195. Q14_GAIN_ZERO_POINT_FIVE;
  21196. op_FL_ip_FR_weight =
  21197. Q14_GAIN_ZERO_POINT_FIVE;
  21198. op_FR_ip_FL_weight =
  21199. Q14_GAIN_ZERO_POINT_FIVE;
  21200. op_FR_ip_FR_weight =
  21201. Q14_GAIN_ZERO_POINT_FIVE;
  21202. } else {
  21203. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  21204. op_FL_ip_FR_weight = 0;
  21205. op_FR_ip_FL_weight = 0;
  21206. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  21207. }
  21208. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21209. unsigned long copp =
  21210. session_copp_map[i]
  21211. [SESSION_TYPE_RX][be_index];
  21212. if (!test_bit(idx, &copp))
  21213. goto skip_send_custom_stereo;
  21214. topo_id = adm_get_topology_for_port_copp_idx(
  21215. msm_bedais[be_index].port_id, idx);
  21216. if (topo_id < 0)
  21217. pr_debug("%s:Err:custom stereo topo %d",
  21218. __func__, topo_id);
  21219. pr_debug("idx %d\n", idx);
  21220. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  21221. rc = msm_ds2_dap_set_custom_stereo_onoff
  21222. (msm_bedais[be_index].port_id,
  21223. idx, is_custom_stereo_on);
  21224. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  21225. rc = dolby_dap_set_custom_stereo_onoff(
  21226. msm_bedais[be_index].port_id,
  21227. idx, is_custom_stereo_on);
  21228. else
  21229. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  21230. (msm_bedais[be_index].port_id,
  21231. idx, session_id,
  21232. op_FL_ip_FL_weight,
  21233. op_FL_ip_FR_weight,
  21234. op_FR_ip_FL_weight,
  21235. op_FR_ip_FR_weight);
  21236. if (rc < 0)
  21237. skip_send_custom_stereo:
  21238. pr_err("%s: err setting custom stereo\n",
  21239. __func__);
  21240. }
  21241. }
  21242. }
  21243. return 0;
  21244. }
  21245. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  21246. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  21247. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  21248. msm_routing_put_stereo_to_custom_stereo_control),
  21249. };
  21250. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21251. struct snd_ctl_elem_value *ucontrol)
  21252. {
  21253. return 0;
  21254. }
  21255. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  21256. struct snd_ctl_elem_value *ucontrol)
  21257. {
  21258. int i = 0, j;
  21259. int num_app_types = ucontrol->value.integer.value[i++];
  21260. pr_debug("%s\n", __func__);
  21261. memset(app_type_cfg, 0, MAX_APP_TYPES*
  21262. sizeof(struct msm_pcm_routing_app_type_data));
  21263. if (num_app_types > MAX_APP_TYPES) {
  21264. pr_err("%s: number of app types exceed the max supported\n",
  21265. __func__);
  21266. return -EINVAL;
  21267. }
  21268. for (j = 0; j < num_app_types; j++) {
  21269. app_type_cfg[j].app_type =
  21270. ucontrol->value.integer.value[i++];
  21271. app_type_cfg[j].sample_rate =
  21272. ucontrol->value.integer.value[i++];
  21273. app_type_cfg[j].bit_width =
  21274. ucontrol->value.integer.value[i++];
  21275. }
  21276. return 0;
  21277. }
  21278. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  21279. struct snd_ctl_elem_value *ucontrol)
  21280. {
  21281. int j, fe_id, be_id, port_type;
  21282. int ret = 0;
  21283. unsigned long copp;
  21284. struct msm_pcm_routing_bdai_data *bedai;
  21285. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21286. SESSION_TYPE_RX;
  21287. int app_type = ucontrol->value.integer.value[1];
  21288. int gain = (ucontrol->value.integer.value[2] +
  21289. ucontrol->value.integer.value[3])/2;
  21290. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21291. MSM_AFE_PORT_TYPE_TX;
  21292. mutex_lock(&routing_lock);
  21293. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21294. if (is_be_dai_extproc(be_id))
  21295. continue;
  21296. bedai = &msm_bedais[be_id];
  21297. if (afe_get_port_type(bedai->port_id) != port_type)
  21298. continue;
  21299. if (!bedai->active)
  21300. continue;
  21301. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21302. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21303. continue;
  21304. if (app_type !=
  21305. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21306. continue;
  21307. copp = session_copp_map[fe_id][dir][be_id];
  21308. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  21309. if (!test_bit(j, &copp))
  21310. continue;
  21311. ret |= adm_set_volume(bedai->port_id, j, gain);
  21312. }
  21313. }
  21314. }
  21315. mutex_unlock(&routing_lock);
  21316. return ret ? -EINVAL : 0;
  21317. }
  21318. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  21319. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  21320. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  21321. msm_routing_put_app_type_cfg_control),
  21322. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  21323. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  21324. };
  21325. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  21326. struct snd_ctl_elem_value *ucontrol)
  21327. {
  21328. int copp_idx, fe_id, be_id, port_type;
  21329. int ret = 0;
  21330. unsigned long copp;
  21331. struct msm_pcm_routing_bdai_data *bedai;
  21332. u8 *packed_params = NULL;
  21333. struct param_hdr_v3 param_hdr;
  21334. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  21335. sizeof(uint32_t));
  21336. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21337. SESSION_TYPE_RX;
  21338. int app_type = ucontrol->value.integer.value[1];
  21339. int module_id = ucontrol->value.integer.value[2];
  21340. int instance_id = ucontrol->value.integer.value[3];
  21341. int param_id = ucontrol->value.integer.value[4];
  21342. int param_value = ucontrol->value.integer.value[5];
  21343. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21344. MSM_AFE_PORT_TYPE_TX;
  21345. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  21346. __func__, app_type, module_id,
  21347. instance_id, param_id, param_value);
  21348. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  21349. if (!packed_params)
  21350. return -ENOMEM;
  21351. memset(&param_hdr, 0, sizeof(param_hdr));
  21352. param_hdr.module_id = module_id;
  21353. param_hdr.instance_id = instance_id;
  21354. param_hdr.param_id = param_id;
  21355. param_hdr.param_size = sizeof(uint32_t);
  21356. packed_param_size = 0;
  21357. mutex_lock(&routing_lock);
  21358. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21359. if (is_be_dai_extproc(be_id))
  21360. continue;
  21361. bedai = &msm_bedais[be_id];
  21362. if (afe_get_port_type(bedai->port_id) != port_type)
  21363. continue;
  21364. if (!bedai->active)
  21365. continue;
  21366. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21367. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21368. continue;
  21369. if (app_type !=
  21370. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21371. continue;
  21372. copp = session_copp_map[fe_id][dir][be_id];
  21373. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  21374. copp_idx++) {
  21375. if (!test_bit(copp_idx, &copp))
  21376. continue;
  21377. ret = q6common_pack_pp_params(packed_params,
  21378. &param_hdr,
  21379. (u8 *) &param_value,
  21380. &packed_param_size);
  21381. if (ret) {
  21382. pr_err("%s: Failed to pack params, error %d\n",
  21383. __func__, ret);
  21384. goto done;
  21385. }
  21386. ret = adm_set_pp_params(bedai->port_id,
  21387. copp_idx, NULL,
  21388. packed_params,
  21389. packed_param_size);
  21390. if (ret) {
  21391. pr_err("%s: Setting param failed with err=%d\n",
  21392. __func__, ret);
  21393. ret = -EINVAL;
  21394. goto done;
  21395. }
  21396. }
  21397. }
  21398. }
  21399. done:
  21400. mutex_unlock(&routing_lock);
  21401. kfree(packed_params);
  21402. return ret;
  21403. }
  21404. static const struct snd_kcontrol_new module_cfg_controls[] = {
  21405. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  21406. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  21407. };
  21408. static int msm_routing_get_lsm_app_type_cfg_control(
  21409. struct snd_kcontrol *kcontrol,
  21410. struct snd_ctl_elem_value *ucontrol)
  21411. {
  21412. int shift = ((struct soc_multi_mixer_control *)
  21413. kcontrol->private_value)->shift;
  21414. int i = 0, j = 0;
  21415. ucontrol->value.integer.value[i] = num_app_cfg_types;
  21416. for (j = 0; j < num_app_cfg_types; ++j) {
  21417. ucontrol->value.integer.value[++i] =
  21418. lsm_app_type_cfg[j].app_type;
  21419. ucontrol->value.integer.value[++i] =
  21420. lsm_app_type_cfg[j].sample_rate;
  21421. ucontrol->value.integer.value[++i] =
  21422. lsm_app_type_cfg[j].bit_width;
  21423. if (shift == 1)
  21424. ucontrol->value.integer.value[++i] =
  21425. lsm_app_type_cfg[j].num_out_channels;
  21426. }
  21427. return 0;
  21428. }
  21429. static int msm_routing_put_lsm_app_type_cfg_control(
  21430. struct snd_kcontrol *kcontrol,
  21431. struct snd_ctl_elem_value *ucontrol)
  21432. {
  21433. int shift = ((struct soc_multi_mixer_control *)
  21434. kcontrol->private_value)->shift;
  21435. int i = 0, j;
  21436. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  21437. pr_err("%s: number of app types exceed the max supported\n",
  21438. __func__);
  21439. return -EINVAL;
  21440. }
  21441. num_app_cfg_types = ucontrol->value.integer.value[i++];
  21442. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  21443. sizeof(struct msm_pcm_routing_app_type_data));
  21444. for (j = 0; j < num_app_cfg_types; j++) {
  21445. lsm_app_type_cfg[j].app_type =
  21446. ucontrol->value.integer.value[i++];
  21447. lsm_app_type_cfg[j].sample_rate =
  21448. ucontrol->value.integer.value[i++];
  21449. lsm_app_type_cfg[j].bit_width =
  21450. ucontrol->value.integer.value[i++];
  21451. /* Shift of 1 indicates this is V2 mixer control */
  21452. if (shift == 1)
  21453. lsm_app_type_cfg[j].num_out_channels =
  21454. ucontrol->value.integer.value[i++];
  21455. }
  21456. return 0;
  21457. }
  21458. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  21459. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  21460. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21461. msm_routing_put_lsm_app_type_cfg_control),
  21462. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  21463. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21464. msm_routing_put_lsm_app_type_cfg_control),
  21465. };
  21466. static int msm_routing_get_use_ds1_or_ds2_control(
  21467. struct snd_kcontrol *kcontrol,
  21468. struct snd_ctl_elem_value *ucontrol)
  21469. {
  21470. ucontrol->value.integer.value[0] = is_ds2_on;
  21471. return 0;
  21472. }
  21473. static int msm_routing_put_use_ds1_or_ds2_control(
  21474. struct snd_kcontrol *kcontrol,
  21475. struct snd_ctl_elem_value *ucontrol)
  21476. {
  21477. is_ds2_on = ucontrol->value.integer.value[0];
  21478. return 0;
  21479. }
  21480. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  21481. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  21482. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  21483. msm_routing_put_use_ds1_or_ds2_control),
  21484. };
  21485. static int msm_routing_get_hifi_filter_control(
  21486. struct snd_kcontrol *kcontrol,
  21487. struct snd_ctl_elem_value *ucontrol)
  21488. {
  21489. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  21490. return 0;
  21491. }
  21492. static int msm_routing_put_hifi_filter_control(
  21493. struct snd_kcontrol *kcontrol,
  21494. struct snd_ctl_elem_value *ucontrol)
  21495. {
  21496. hifi_filter_enabled = ucontrol->value.integer.value[0];
  21497. return 0;
  21498. }
  21499. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  21500. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  21501. 1, 0, msm_routing_get_hifi_filter_control,
  21502. msm_routing_put_hifi_filter_control),
  21503. };
  21504. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  21505. struct snd_ctl_elem_value *ucontrol) {
  21506. int rc = 0;
  21507. int be_idx = 0;
  21508. char *param_value;
  21509. int *update_param_value;
  21510. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  21511. struct param_hdr_v3 param_hdr;
  21512. param_value = kzalloc(param_size, GFP_KERNEL);
  21513. if (!param_value)
  21514. return -ENOMEM;
  21515. memset(&param_hdr, 0, sizeof(param_hdr));
  21516. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  21517. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  21518. break;
  21519. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  21520. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  21521. param_hdr.instance_id = INSTANCE_ID_0;
  21522. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  21523. param_hdr.param_size = param_size;
  21524. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  21525. NULL, &param_hdr, (u8 *) param_value);
  21526. if (rc) {
  21527. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  21528. kfree(param_value);
  21529. return -EINVAL;
  21530. }
  21531. update_param_value = (int *)param_value;
  21532. ucontrol->value.integer.value[0] = update_param_value[0];
  21533. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  21534. __func__, update_param_value[0]);
  21535. }
  21536. kfree(param_value);
  21537. return 0;
  21538. }
  21539. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  21540. struct snd_ctl_elem_value *ucontrol)
  21541. {
  21542. voc_session_id = ucontrol->value.integer.value[0];
  21543. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  21544. return 0;
  21545. }
  21546. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  21547. struct snd_ctl_elem_value *ucontrol)
  21548. {
  21549. ucontrol->value.integer.value[0] = voc_session_id;
  21550. return 0;
  21551. }
  21552. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  21553. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  21554. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  21555. msm_voc_session_id_put),
  21556. };
  21557. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  21558. struct snd_ctl_elem_info *uinfo)
  21559. {
  21560. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21561. uinfo->count = sizeof(struct sound_focus_param);
  21562. return 0;
  21563. }
  21564. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  21565. struct snd_ctl_elem_value *ucontrol)
  21566. {
  21567. int ret = 0;
  21568. struct sound_focus_param soundFocusData;
  21569. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21570. sizeof(struct sound_focus_param));
  21571. ret = voc_set_sound_focus(soundFocusData);
  21572. if (ret) {
  21573. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21574. __func__, ret);
  21575. ret = -EINVAL;
  21576. }
  21577. return ret;
  21578. }
  21579. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  21580. struct snd_ctl_elem_value *ucontrol)
  21581. {
  21582. int ret = 0;
  21583. struct sound_focus_param soundFocusData;
  21584. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  21585. ret = voc_get_sound_focus(&soundFocusData);
  21586. if (ret) {
  21587. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  21588. __func__, ret);
  21589. ret = -EINVAL;
  21590. goto done;
  21591. }
  21592. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21593. sizeof(struct sound_focus_param));
  21594. done:
  21595. return ret;
  21596. }
  21597. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  21598. struct snd_ctl_elem_info *uinfo)
  21599. {
  21600. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21601. uinfo->count = sizeof(struct source_tracking_param);
  21602. return 0;
  21603. }
  21604. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  21605. struct snd_ctl_elem_value *ucontrol)
  21606. {
  21607. int ret = 0;
  21608. struct source_tracking_param sourceTrackingData;
  21609. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  21610. ret = voc_get_source_tracking(&sourceTrackingData);
  21611. if (ret) {
  21612. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  21613. __func__, ret);
  21614. ret = -EINVAL;
  21615. goto done;
  21616. }
  21617. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21618. sizeof(struct source_tracking_param));
  21619. done:
  21620. return ret;
  21621. }
  21622. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  21623. int *copp_idx)
  21624. {
  21625. int i, idx, be_idx;
  21626. int ret = 0;
  21627. unsigned long copp;
  21628. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  21629. ret = q6audio_validate_port(port_id);
  21630. if (ret < 0) {
  21631. pr_err("%s: port validation failed id 0x%x ret %d\n",
  21632. __func__, port_id, ret);
  21633. ret = -EINVAL;
  21634. goto done;
  21635. }
  21636. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21637. if (msm_bedais[be_idx].port_id == port_id)
  21638. break;
  21639. }
  21640. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21641. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  21642. ret = -EINVAL;
  21643. goto done;
  21644. }
  21645. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21646. MSM_FRONTEND_DAI_MAX) {
  21647. if (!(is_mm_lsm_fe_id(i) &&
  21648. route_check_fe_id_adm_support(i)))
  21649. continue;
  21650. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21651. copp = session_copp_map[i]
  21652. [session_type][be_idx];
  21653. if (test_bit(idx, &copp))
  21654. break;
  21655. }
  21656. if (idx >= MAX_COPPS_PER_PORT)
  21657. continue;
  21658. else
  21659. break;
  21660. }
  21661. if (i >= MSM_FRONTEND_DAI_MAX) {
  21662. pr_debug("%s: Invalid FE, exiting\n", __func__);
  21663. ret = -EINVAL;
  21664. goto done;
  21665. }
  21666. *copp_idx = idx;
  21667. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  21668. done:
  21669. return ret;
  21670. }
  21671. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  21672. const char *prefix, int *port_id)
  21673. {
  21674. int ret = 0;
  21675. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  21676. /*
  21677. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  21678. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  21679. * and compare the string with the backend name to derive the port id.
  21680. */
  21681. if (!strcmp(kcontrol->id.name + strlen(prefix),
  21682. "SLIMBUS_0")) {
  21683. *port_id = SLIMBUS_0_TX;
  21684. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21685. "TERT_MI2S")) {
  21686. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  21687. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21688. "INT3_MI2S")) {
  21689. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  21690. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21691. "VA_CDC_DMA_TX_0")) {
  21692. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  21693. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21694. "TX_CDC_DMA_TX_3")) {
  21695. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  21696. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21697. "QUIN_TDM_TX_0")) {
  21698. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  21699. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21700. "PRIMARY_TDM")) {
  21701. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  21702. } else {
  21703. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  21704. __func__, kcontrol->id.name);
  21705. ret = -EINVAL;
  21706. goto done;
  21707. }
  21708. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  21709. __func__, kcontrol->id.name, *port_id);
  21710. done:
  21711. return ret;
  21712. }
  21713. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  21714. struct snd_ctl_elem_value *ucontrol)
  21715. {
  21716. int ret = 0;
  21717. struct sound_focus_param soundFocusData;
  21718. int port_id, copp_idx;
  21719. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21720. "Sound Focus Audio Tx ", &port_id);
  21721. if (ret != 0) {
  21722. pr_err("%s: Error in deriving port id, err=%d\n",
  21723. __func__, ret);
  21724. ret = -EINVAL;
  21725. goto done;
  21726. }
  21727. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21728. &copp_idx);
  21729. if (ret) {
  21730. pr_err("%s: Could not get copp idx for port_id=%d\n",
  21731. __func__, port_id);
  21732. ret = -EINVAL;
  21733. goto done;
  21734. }
  21735. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21736. sizeof(struct sound_focus_param));
  21737. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  21738. if (ret) {
  21739. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21740. __func__, ret);
  21741. ret = -EINVAL;
  21742. goto done;
  21743. }
  21744. done:
  21745. return ret;
  21746. }
  21747. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  21748. struct snd_ctl_elem_value *ucontrol)
  21749. {
  21750. int ret = 0;
  21751. struct sound_focus_param soundFocusData;
  21752. int port_id, copp_idx;
  21753. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21754. "Sound Focus Audio Tx ", &port_id);
  21755. if (ret) {
  21756. pr_err("%s: Error in deriving port id, err=%d\n",
  21757. __func__, ret);
  21758. ret = -EINVAL;
  21759. goto done;
  21760. }
  21761. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21762. &copp_idx);
  21763. if (ret) {
  21764. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21765. __func__, port_id);
  21766. ret = -EINVAL;
  21767. goto done;
  21768. }
  21769. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  21770. if (ret) {
  21771. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  21772. __func__, ret);
  21773. ret = -EINVAL;
  21774. goto done;
  21775. }
  21776. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21777. sizeof(struct sound_focus_param));
  21778. done:
  21779. return ret;
  21780. }
  21781. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  21782. struct snd_ctl_elem_value *ucontrol)
  21783. {
  21784. int ret = 0;
  21785. struct source_tracking_param sourceTrackingData;
  21786. int port_id, copp_idx;
  21787. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21788. "Source Tracking Audio Tx ", &port_id);
  21789. if (ret) {
  21790. pr_err("%s: Error in deriving port id, err=%d\n",
  21791. __func__, ret);
  21792. ret = -EINVAL;
  21793. goto done;
  21794. }
  21795. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21796. &copp_idx);
  21797. if (ret) {
  21798. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21799. __func__, port_id);
  21800. ret = -EINVAL;
  21801. goto done;
  21802. }
  21803. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  21804. if (ret) {
  21805. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  21806. __func__, ret);
  21807. ret = -EINVAL;
  21808. goto done;
  21809. }
  21810. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21811. sizeof(struct source_tracking_param));
  21812. done:
  21813. return ret;
  21814. }
  21815. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  21816. struct snd_ctl_elem_info *uinfo)
  21817. {
  21818. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21819. uinfo->count = sizeof(struct doa_tracking_mon_param);
  21820. return 0;
  21821. }
  21822. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  21823. struct snd_ctl_elem_value *ucontrol)
  21824. {
  21825. int ret = 0;
  21826. struct doa_tracking_mon_param doa_tracking_data;
  21827. int port_id, copp_idx;
  21828. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  21829. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21830. "Doa Tracking Monitor Listen ", &port_id);
  21831. if (ret) {
  21832. pr_err("%s: Error in deriving port id, err=%d\n",
  21833. __func__, ret);
  21834. ret = -EINVAL;
  21835. goto done;
  21836. }
  21837. /*
  21838. * If copp id exists for given port id, query adm to get doa data.
  21839. * Else query afe for doa tracking params.
  21840. * This is to support in cases where LSM directly connects to
  21841. * AFE for FFNS.
  21842. */
  21843. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21844. &copp_idx);
  21845. if (!ret)
  21846. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  21847. &doa_tracking_data);
  21848. else
  21849. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  21850. if (ret) {
  21851. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  21852. __func__, ret);
  21853. ret = -EINVAL;
  21854. goto done;
  21855. }
  21856. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  21857. sizeof(struct doa_tracking_mon_param));
  21858. done:
  21859. return ret;
  21860. }
  21861. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  21862. {
  21863. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21864. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21865. .name = "Sound Focus Voice Tx SLIMBUS_0",
  21866. .info = msm_sound_focus_info,
  21867. .get = msm_voice_sound_focus_get,
  21868. .put = msm_voice_sound_focus_put,
  21869. },
  21870. {
  21871. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21872. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21873. .name = "Source Tracking Voice Tx SLIMBUS_0",
  21874. .info = msm_source_tracking_info,
  21875. .get = msm_voice_source_tracking_get,
  21876. },
  21877. {
  21878. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21879. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21880. .name = "Sound Focus Audio Tx SLIMBUS_0",
  21881. .info = msm_sound_focus_info,
  21882. .get = msm_audio_sound_focus_get,
  21883. .put = msm_audio_sound_focus_put,
  21884. },
  21885. {
  21886. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21887. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21888. .name = "Source Tracking Audio Tx SLIMBUS_0",
  21889. .info = msm_source_tracking_info,
  21890. .get = msm_audio_source_tracking_get,
  21891. },
  21892. {
  21893. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21894. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21895. .name = "Sound Focus Voice Tx TERT_MI2S",
  21896. .info = msm_sound_focus_info,
  21897. .get = msm_voice_sound_focus_get,
  21898. .put = msm_voice_sound_focus_put,
  21899. },
  21900. {
  21901. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21902. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21903. .name = "Source Tracking Voice Tx TERT_MI2S",
  21904. .info = msm_source_tracking_info,
  21905. .get = msm_voice_source_tracking_get,
  21906. },
  21907. {
  21908. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21909. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21910. .name = "Sound Focus Audio Tx TERT_MI2S",
  21911. .info = msm_sound_focus_info,
  21912. .get = msm_audio_sound_focus_get,
  21913. .put = msm_audio_sound_focus_put,
  21914. },
  21915. {
  21916. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21917. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21918. .name = "Source Tracking Audio Tx TERT_MI2S",
  21919. .info = msm_source_tracking_info,
  21920. .get = msm_audio_source_tracking_get,
  21921. },
  21922. {
  21923. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21924. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21925. .name = "Sound Focus Voice Tx INT3_MI2S",
  21926. .info = msm_sound_focus_info,
  21927. .get = msm_voice_sound_focus_get,
  21928. .put = msm_voice_sound_focus_put,
  21929. },
  21930. {
  21931. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21932. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21933. .name = "Source Tracking Voice Tx INT3_MI2S",
  21934. .info = msm_source_tracking_info,
  21935. .get = msm_voice_source_tracking_get,
  21936. },
  21937. {
  21938. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21939. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21940. .name = "Sound Focus Audio Tx INT3_MI2S",
  21941. .info = msm_sound_focus_info,
  21942. .get = msm_audio_sound_focus_get,
  21943. .put = msm_audio_sound_focus_put,
  21944. },
  21945. {
  21946. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21947. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21948. .name = "Source Tracking Audio Tx INT3_MI2S",
  21949. .info = msm_source_tracking_info,
  21950. .get = msm_audio_source_tracking_get,
  21951. },
  21952. {
  21953. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21954. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21955. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  21956. .info = msm_sound_focus_info,
  21957. .get = msm_voice_sound_focus_get,
  21958. .put = msm_voice_sound_focus_put,
  21959. },
  21960. {
  21961. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21962. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21963. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  21964. .info = msm_source_tracking_info,
  21965. .get = msm_voice_source_tracking_get,
  21966. },
  21967. {
  21968. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21970. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  21971. .info = msm_sound_focus_info,
  21972. .get = msm_audio_sound_focus_get,
  21973. .put = msm_audio_sound_focus_put,
  21974. },
  21975. {
  21976. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21977. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21978. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  21979. .info = msm_source_tracking_info,
  21980. .get = msm_audio_source_tracking_get,
  21981. },
  21982. {
  21983. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21984. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21985. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  21986. .info = msm_sound_focus_info,
  21987. .get = msm_voice_sound_focus_get,
  21988. .put = msm_voice_sound_focus_put,
  21989. },
  21990. {
  21991. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21992. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21993. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  21994. .info = msm_source_tracking_info,
  21995. .get = msm_voice_source_tracking_get,
  21996. },
  21997. {
  21998. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22000. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  22001. .info = msm_sound_focus_info,
  22002. .get = msm_audio_sound_focus_get,
  22003. .put = msm_audio_sound_focus_put,
  22004. },
  22005. {
  22006. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22007. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22008. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22009. .info = msm_source_tracking_info,
  22010. .get = msm_audio_source_tracking_get,
  22011. },
  22012. {
  22013. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22014. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22015. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22016. .info = msm_sound_focus_info,
  22017. .get = msm_voice_sound_focus_get,
  22018. .put = msm_voice_sound_focus_put,
  22019. },
  22020. {
  22021. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22022. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22023. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22024. .info = msm_source_tracking_info,
  22025. .get = msm_voice_source_tracking_get,
  22026. },
  22027. {
  22028. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22030. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22031. .info = msm_sound_focus_info,
  22032. .get = msm_audio_sound_focus_get,
  22033. .put = msm_audio_sound_focus_put,
  22034. },
  22035. {
  22036. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22037. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22038. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22039. .info = msm_source_tracking_info,
  22040. .get = msm_audio_source_tracking_get,
  22041. },
  22042. {
  22043. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22044. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22045. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22046. .info = msm_sound_focus_info,
  22047. .get = msm_audio_sound_focus_get,
  22048. .put = msm_audio_sound_focus_put,
  22049. },
  22050. {
  22051. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22052. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22053. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22054. .info = msm_source_tracking_info,
  22055. .get = msm_audio_source_tracking_get,
  22056. },
  22057. {
  22058. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22060. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22061. .info = msm_doa_tracking_mon_info,
  22062. .get = msm_doa_tracking_mon_get,
  22063. },
  22064. };
  22065. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22066. struct snd_ctl_elem_value *ucontrol)
  22067. {
  22068. int ret = 0;
  22069. int item;
  22070. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22071. pr_debug("%s item is %d\n", __func__,
  22072. ucontrol->value.enumerated.item[0]);
  22073. mutex_lock(&routing_lock);
  22074. item = ucontrol->value.enumerated.item[0];
  22075. if (item < e->items) {
  22076. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22077. __func__, e->shift_l, e->values[item]);
  22078. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22079. e->values[item] < MSM_BACKEND_DAI_MAX)
  22080. /* Enable feedback TX path */
  22081. ret = afe_spk_prot_feed_back_cfg(
  22082. msm_bedais[e->values[item]].port_id,
  22083. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22084. else {
  22085. pr_debug("%s values are out of range item %d\n",
  22086. __func__, e->values[item]);
  22087. /* Disable feedback TX path */
  22088. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22089. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22090. else
  22091. ret = -EINVAL;
  22092. }
  22093. } else {
  22094. pr_err("%s item value is out of range item\n", __func__);
  22095. ret = -EINVAL;
  22096. }
  22097. mutex_unlock(&routing_lock);
  22098. return ret;
  22099. }
  22100. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22101. struct snd_ctl_elem_value *ucontrol)
  22102. {
  22103. int ret = 0;
  22104. int item;
  22105. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22106. pr_debug("%s item is %d\n", __func__,
  22107. ucontrol->value.enumerated.item[0]);
  22108. mutex_lock(&routing_lock);
  22109. item = ucontrol->value.enumerated.item[0];
  22110. if (item < e->items) {
  22111. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22112. __func__, e->shift_l, e->values[item]);
  22113. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22114. e->values[item] < MSM_BACKEND_DAI_MAX)
  22115. /* Enable feedback TX path */
  22116. ret = afe_spk_prot_feed_back_cfg(
  22117. msm_bedais[e->values[item]].port_id,
  22118. msm_bedais[e->shift_l].port_id,
  22119. 1, 1, 1);
  22120. else {
  22121. pr_debug("%s values are out of range item %d\n",
  22122. __func__, e->values[item]);
  22123. /* Disable feedback TX path */
  22124. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22125. ret = afe_spk_prot_feed_back_cfg(0,
  22126. 0, 0, 0, 0);
  22127. else
  22128. ret = -EINVAL;
  22129. }
  22130. } else {
  22131. pr_err("%s item value is out of range item\n", __func__);
  22132. ret = -EINVAL;
  22133. }
  22134. mutex_unlock(&routing_lock);
  22135. return ret;
  22136. }
  22137. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22138. struct snd_ctl_elem_value *ucontrol)
  22139. {
  22140. pr_debug("%s\n", __func__);
  22141. return 0;
  22142. }
  22143. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  22144. struct snd_ctl_elem_value *ucontrol)
  22145. {
  22146. pr_debug("%s\n", __func__);
  22147. ucontrol->value.enumerated.item[0] = 0;
  22148. return 0;
  22149. }
  22150. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  22151. "ZERO", "SLIM4_TX"
  22152. };
  22153. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  22154. "ZERO", "SLIM4_TX"
  22155. };
  22156. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  22157. "ZERO", "WSA_CDC_DMA_TX_0"
  22158. };
  22159. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  22160. "ZERO", "WSA_CDC_DMA_TX_0"
  22161. };
  22162. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  22163. "ZERO", "SENARY_TX"
  22164. };
  22165. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  22166. "ZERO", "INT5_MI2S_TX"
  22167. };
  22168. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  22169. "ZERO", "INT5_MI2S_TX"
  22170. };
  22171. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  22172. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22173. };
  22174. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  22175. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  22176. };
  22177. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  22178. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22179. };
  22180. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  22181. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  22182. };
  22183. static const int mi2s_rx_vi_fb_tx_value[] = {
  22184. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  22185. };
  22186. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  22187. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22188. };
  22189. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  22190. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  22191. };
  22192. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  22193. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22194. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  22195. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  22196. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  22197. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  22198. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  22199. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  22200. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  22201. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22202. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  22203. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  22204. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  22205. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  22206. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  22207. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  22208. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  22209. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  22210. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  22211. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  22212. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  22213. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22214. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  22215. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  22216. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  22217. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  22218. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  22219. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  22220. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  22221. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  22222. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  22223. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  22224. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22225. spkr_prot_put_vi_lch_port);
  22226. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  22227. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  22228. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22229. spkr_prot_put_vi_rch_port);
  22230. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  22231. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  22232. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  22233. spkr_prot_put_vi_lch_port);
  22234. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  22235. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  22236. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  22237. spkr_prot_put_vi_rch_port);
  22238. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  22239. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  22240. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  22241. spkr_prot_put_vi_lch_port);
  22242. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  22243. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  22244. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  22245. spkr_prot_put_vi_lch_port);
  22246. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  22247. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  22248. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  22249. spkr_prot_put_vi_rch_port);
  22250. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  22251. /* Frontend AIF */
  22252. /* Widget name equals to Front-End DAI name<Need confirmation>,
  22253. * Stream name must contains substring of front-end dai name
  22254. */
  22255. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  22256. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  22257. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  22258. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  22259. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  22260. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  22261. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  22262. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  22263. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  22264. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  22265. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  22266. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  22267. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  22268. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  22269. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  22270. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  22271. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  22272. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  22273. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  22274. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  22275. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  22276. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  22277. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  22278. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  22279. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  22280. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  22281. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  22282. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  22283. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  22284. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  22285. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  22286. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  22287. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  22288. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  22289. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  22290. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  22291. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  22292. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  22293. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  22294. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  22295. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  22296. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  22297. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  22298. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  22299. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  22300. "VoiceMMode1 Playback", 0, 0, 0, 0),
  22301. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  22302. "VoiceMMode1 Capture", 0, 0, 0, 0),
  22303. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  22304. "VoiceMMode2 Playback", 0, 0, 0, 0),
  22305. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  22306. "VoiceMMode2 Capture", 0, 0, 0, 0),
  22307. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  22308. 0, 0, 0, 0),
  22309. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  22310. 0, 0, 0, 0),
  22311. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  22312. 0, 0, 0, 0),
  22313. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  22314. 0, 0, 0, 0),
  22315. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  22316. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  22317. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  22318. 0, 0, 0, 0),
  22319. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  22320. 0, 0, 0, 0),
  22321. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  22322. 0, 0, 0, 0),
  22323. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  22324. 0, 0, 0, 0),
  22325. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  22326. 0, 0, 0, 0),
  22327. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  22328. 0, 0, 0, 0),
  22329. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  22330. 0, 0, 0, 0),
  22331. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  22332. 0, 0, 0, 0),
  22333. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  22334. 0, 0, 0, 0),
  22335. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  22336. 0, 0, 0, 0),
  22337. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  22338. 0, 0, 0, 0),
  22339. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  22340. 0, 0, 0, 0),
  22341. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  22342. 0, 0, 0, 0),
  22343. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  22344. 0, 0, 0, 0),
  22345. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  22346. 0, 0, 0, 0),
  22347. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  22348. 0, 0, 0, 0),
  22349. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  22350. 0, 0, 0, 0),
  22351. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  22352. 0, 0, 0, 0),
  22353. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  22354. 0, 0, 0, 0),
  22355. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  22356. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  22357. 0, 0, 0, 0),
  22358. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  22359. "INT0 MI2S_RX Hostless Playback",
  22360. 0, 0, 0, 0),
  22361. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  22362. "INT4 MI2S_RX Hostless Playback",
  22363. 0, 0, 0, 0),
  22364. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  22365. "Primary MI2S_RX Hostless Playback",
  22366. 0, 0, 0, 0),
  22367. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  22368. "Secondary MI2S_RX Hostless Playback",
  22369. 0, 0, 0, 0),
  22370. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  22371. "Tertiary MI2S_RX Hostless Playback",
  22372. 0, 0, 0, 0),
  22373. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  22374. "Quaternary MI2S_RX Hostless Playback",
  22375. 0, 0, 0, 0),
  22376. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  22377. "Quinary MI2S_RX Hostless Playback",
  22378. 0, 0, 0, 0),
  22379. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  22380. "Senary MI2S_RX Hostless Playback",
  22381. 0, 0, 0, 0),
  22382. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  22383. 0, 0, 0, 0),
  22384. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  22385. 0, 0, 0, 0),
  22386. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  22387. 0, 0, 0, 0),
  22388. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  22389. 0, 0, 0, 0),
  22390. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  22391. 0, 0, 0, 0),
  22392. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  22393. "INT3 MI2S_TX Hostless Capture",
  22394. 0, 0, 0, 0),
  22395. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  22396. "Tertiary MI2S_TX Hostless Capture",
  22397. 0, 0, 0, 0),
  22398. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  22399. "Secondary MI2S_TX Hostless Capture",
  22400. 0, 0, 0, 0),
  22401. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  22402. "Primary MI2S_TX Hostless Capture",
  22403. 0, 0, 0, 0),
  22404. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  22405. 0, 0, 0, 0),
  22406. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  22407. 0, 0, 0, 0),
  22408. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  22409. "Quaternary MI2S_TX Hostless Capture",
  22410. 0, 0, 0, 0),
  22411. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  22412. "Quinary MI2S_TX Hostless Capture",
  22413. 0, 0, 0, 0),
  22414. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  22415. "Senary MI2S_TX Hostless Capture",
  22416. 0, 0, 0, 0),
  22417. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  22418. "Primary TDM0 Hostless Playback",
  22419. 0, 0, 0, 0),
  22420. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  22421. "Primary TDM0 Hostless Capture",
  22422. 0, 0, 0, 0),
  22423. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  22424. "Primary TDM1 Hostless Playback",
  22425. 0, 0, 0, 0),
  22426. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  22427. "Primary TDM1 Hostless Capture",
  22428. 0, 0, 0, 0),
  22429. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  22430. "Primary TDM2 Hostless Playback",
  22431. 0, 0, 0, 0),
  22432. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  22433. "Primary TDM2 Hostless Capture",
  22434. 0, 0, 0, 0),
  22435. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  22436. "Primary TDM3 Hostless Playback",
  22437. 0, 0, 0, 0),
  22438. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  22439. "Primary TDM3 Hostless Capture",
  22440. 0, 0, 0, 0),
  22441. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  22442. "Primary TDM4 Hostless Playback",
  22443. 0, 0, 0, 0),
  22444. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  22445. "Primary TDM4 Hostless Capture",
  22446. 0, 0, 0, 0),
  22447. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  22448. "Primary TDM5 Hostless Playback",
  22449. 0, 0, 0, 0),
  22450. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  22451. "Primary TDM5 Hostless Capture",
  22452. 0, 0, 0, 0),
  22453. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  22454. "Primary TDM6 Hostless Playback",
  22455. 0, 0, 0, 0),
  22456. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  22457. "Primary TDM6 Hostless Capture",
  22458. 0, 0, 0, 0),
  22459. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  22460. "Primary TDM7 Hostless Playback",
  22461. 0, 0, 0, 0),
  22462. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  22463. "Primary TDM7 Hostless Capture",
  22464. 0, 0, 0, 0),
  22465. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  22466. "Secondary TDM0 Hostless Playback",
  22467. 0, 0, 0, 0),
  22468. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  22469. "Secondary TDM0 Hostless Capture",
  22470. 0, 0, 0, 0),
  22471. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  22472. "Secondary TDM1 Hostless Playback",
  22473. 0, 0, 0, 0),
  22474. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  22475. "Secondary TDM1 Hostless Capture",
  22476. 0, 0, 0, 0),
  22477. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  22478. "Secondary TDM2 Hostless Playback",
  22479. 0, 0, 0, 0),
  22480. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  22481. "Secondary TDM2 Hostless Capture",
  22482. 0, 0, 0, 0),
  22483. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  22484. "Secondary TDM3 Hostless Playback",
  22485. 0, 0, 0, 0),
  22486. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  22487. "Secondary TDM3 Hostless Capture",
  22488. 0, 0, 0, 0),
  22489. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  22490. "Secondary TDM4 Hostless Playback",
  22491. 0, 0, 0, 0),
  22492. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  22493. "Secondary TDM4 Hostless Capture",
  22494. 0, 0, 0, 0),
  22495. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  22496. "Secondary TDM5 Hostless Playback",
  22497. 0, 0, 0, 0),
  22498. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  22499. "Secondary TDM5 Hostless Capture",
  22500. 0, 0, 0, 0),
  22501. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  22502. "Secondary TDM6 Hostless Playback",
  22503. 0, 0, 0, 0),
  22504. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  22505. "Secondary TDM6 Hostless Capture",
  22506. 0, 0, 0, 0),
  22507. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  22508. "Secondary TDM7 Hostless Playback",
  22509. 0, 0, 0, 0),
  22510. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  22511. "Secondary TDM7 Hostless Capture",
  22512. 0, 0, 0, 0),
  22513. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  22514. "Tertiary TDM0 Hostless Playback",
  22515. 0, 0, 0, 0),
  22516. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  22517. "Tertiary TDM0 Hostless Capture",
  22518. 0, 0, 0, 0),
  22519. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  22520. "Tertiary TDM1 Hostless Playback",
  22521. 0, 0, 0, 0),
  22522. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  22523. "Tertiary TDM1 Hostless Capture",
  22524. 0, 0, 0, 0),
  22525. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  22526. "Tertiary TDM2 Hostless Playback",
  22527. 0, 0, 0, 0),
  22528. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  22529. "Tertiary TDM2 Hostless Capture",
  22530. 0, 0, 0, 0),
  22531. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  22532. "Tertiary TDM3 Hostless Playback",
  22533. 0, 0, 0, 0),
  22534. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  22535. "Tertiary TDM3 Hostless Capture",
  22536. 0, 0, 0, 0),
  22537. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  22538. "Tertiary TDM4 Hostless Playback",
  22539. 0, 0, 0, 0),
  22540. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  22541. "Tertiary TDM4 Hostless Capture",
  22542. 0, 0, 0, 0),
  22543. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  22544. "Tertiary TDM5 Hostless Playback",
  22545. 0, 0, 0, 0),
  22546. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  22547. "Tertiary TDM5 Hostless Capture",
  22548. 0, 0, 0, 0),
  22549. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  22550. "Tertiary TDM6 Hostless Playback",
  22551. 0, 0, 0, 0),
  22552. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  22553. "Tertiary TDM6 Hostless Capture",
  22554. 0, 0, 0, 0),
  22555. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  22556. "Tertiary TDM7 Hostless Playback",
  22557. 0, 0, 0, 0),
  22558. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  22559. "Tertiary TDM7 Hostless Capture",
  22560. 0, 0, 0, 0),
  22561. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  22562. "Quaternary TDM0 Hostless Playback",
  22563. 0, 0, 0, 0),
  22564. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  22565. "Quaternary TDM0 Hostless Capture",
  22566. 0, 0, 0, 0),
  22567. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  22568. "Quaternary TDM1 Hostless Playback",
  22569. 0, 0, 0, 0),
  22570. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  22571. "Quaternary TDM1 Hostless Capture",
  22572. 0, 0, 0, 0),
  22573. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  22574. "Quaternary TDM2 Hostless Playback",
  22575. 0, 0, 0, 0),
  22576. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  22577. "Quaternary TDM2 Hostless Capture",
  22578. 0, 0, 0, 0),
  22579. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  22580. "Quaternary TDM3 Hostless Playback",
  22581. 0, 0, 0, 0),
  22582. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  22583. "Quaternary TDM3 Hostless Capture",
  22584. 0, 0, 0, 0),
  22585. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  22586. "Quaternary TDM4 Hostless Playback",
  22587. 0, 0, 0, 0),
  22588. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  22589. "Quaternary TDM4 Hostless Capture",
  22590. 0, 0, 0, 0),
  22591. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  22592. "Quaternary TDM5 Hostless Playback",
  22593. 0, 0, 0, 0),
  22594. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  22595. "Quaternary TDM5 Hostless Capture",
  22596. 0, 0, 0, 0),
  22597. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  22598. "Quaternary TDM6 Hostless Playback",
  22599. 0, 0, 0, 0),
  22600. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  22601. "Quaternary TDM6 Hostless Capture",
  22602. 0, 0, 0, 0),
  22603. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  22604. "Quaternary TDM7 Hostless Playback",
  22605. 0, 0, 0, 0),
  22606. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  22607. "Quaternary TDM7 Hostless Capture",
  22608. 0, 0, 0, 0),
  22609. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  22610. "Quinary TDM0 Hostless Playback",
  22611. 0, 0, 0, 0),
  22612. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  22613. "Quinary TDM0 Hostless Capture",
  22614. 0, 0, 0, 0),
  22615. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  22616. "Quinary TDM1 Hostless Playback",
  22617. 0, 0, 0, 0),
  22618. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  22619. "Quinary TDM1 Hostless Capture",
  22620. 0, 0, 0, 0),
  22621. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  22622. "Quinary TDM2 Hostless Playback",
  22623. 0, 0, 0, 0),
  22624. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  22625. "Quinary TDM2 Hostless Capture",
  22626. 0, 0, 0, 0),
  22627. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  22628. "Quinary TDM3 Hostless Playback",
  22629. 0, 0, 0, 0),
  22630. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  22631. "Quinary TDM3 Hostless Capture",
  22632. 0, 0, 0, 0),
  22633. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  22634. "Quinary TDM4 Hostless Playback",
  22635. 0, 0, 0, 0),
  22636. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  22637. "Quinary TDM4 Hostless Capture",
  22638. 0, 0, 0, 0),
  22639. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  22640. "Quinary TDM5 Hostless Playback",
  22641. 0, 0, 0, 0),
  22642. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  22643. "Quinary TDM5 Hostless Capture",
  22644. 0, 0, 0, 0),
  22645. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  22646. "Quinary TDM6 Hostless Playback",
  22647. 0, 0, 0, 0),
  22648. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  22649. "Quinary TDM6 Hostless Capture",
  22650. 0, 0, 0, 0),
  22651. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  22652. "Quinary TDM7 Hostless Playback",
  22653. 0, 0, 0, 0),
  22654. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  22655. "Quinary TDM7 Hostless Capture",
  22656. 0, 0, 0, 0),
  22657. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  22658. "Senary TDM0 Hostless Playback",
  22659. 0, 0, 0, 0),
  22660. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  22661. "Senary TDM0 Hostless Capture",
  22662. 0, 0, 0, 0),
  22663. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  22664. "Senary TDM1 Hostless Playback",
  22665. 0, 0, 0, 0),
  22666. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  22667. "Senary TDM1 Hostless Capture",
  22668. 0, 0, 0, 0),
  22669. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  22670. "Senary TDM2 Hostless Playback",
  22671. 0, 0, 0, 0),
  22672. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  22673. "Senary TDM2 Hostless Capture",
  22674. 0, 0, 0, 0),
  22675. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  22676. "Senary TDM3 Hostless Playback",
  22677. 0, 0, 0, 0),
  22678. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  22679. "Senary TDM3 Hostless Capture",
  22680. 0, 0, 0, 0),
  22681. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  22682. "Senary TDM4 Hostless Playback",
  22683. 0, 0, 0, 0),
  22684. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  22685. "Senary TDM4 Hostless Capture",
  22686. 0, 0, 0, 0),
  22687. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  22688. "Senary TDM5 Hostless Playback",
  22689. 0, 0, 0, 0),
  22690. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  22691. "Senary TDM5 Hostless Capture",
  22692. 0, 0, 0, 0),
  22693. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  22694. "Senary TDM6 Hostless Playback",
  22695. 0, 0, 0, 0),
  22696. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  22697. "Senary TDM6 Hostless Capture",
  22698. 0, 0, 0, 0),
  22699. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  22700. "Senary TDM7 Hostless Playback",
  22701. 0, 0, 0, 0),
  22702. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  22703. "Senary TDM7 Hostless Capture",
  22704. 0, 0, 0, 0),
  22705. /* LSM */
  22706. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  22707. 0, 0, 0, 0),
  22708. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  22709. 0, 0, 0, 0),
  22710. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  22711. 0, 0, 0, 0),
  22712. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  22713. 0, 0, 0, 0),
  22714. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  22715. 0, 0, 0, 0),
  22716. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  22717. 0, 0, 0, 0),
  22718. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  22719. 0, 0, 0, 0),
  22720. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  22721. 0, 0, 0, 0),
  22722. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  22723. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  22724. /* Backend AIF */
  22725. /* Stream name equals to backend dai link stream name */
  22726. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  22727. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  22728. 0, 0, 0, 0),
  22729. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  22730. 0, 0, 0, 0),
  22731. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  22732. 0, 0, 0, 0),
  22733. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  22734. 0, 0, 0, 0),
  22735. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  22736. 0, 0, 0, 0),
  22737. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  22738. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  22739. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  22740. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  22741. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  22742. 0, 0, 0, 0),
  22743. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  22744. 0, 0, 0, 0),
  22745. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  22746. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  22747. 0, 0, 0, 0),
  22748. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  22749. 0, 0, 0, 0),
  22750. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  22751. 0, 0, 0, 0),
  22752. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  22753. "Secondary MI2S Playback SD1",
  22754. 0, 0, 0, 0),
  22755. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  22756. 0, 0, 0, 0),
  22757. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  22758. 0, 0, 0, 0),
  22759. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  22760. 0, 0, 0, 0),
  22761. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  22762. 0, 0, 0, 0),
  22763. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  22764. 0, 0, 0, 0),
  22765. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  22766. 0, 0, 0, 0),
  22767. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  22768. 0, 0, 0, 0),
  22769. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  22770. 0, 0, 0, 0),
  22771. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  22772. 0, 0, 0, 0),
  22773. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  22774. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  22775. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  22776. 0, 0, 0, 0),
  22777. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  22778. 0, 0, 0, 0),
  22779. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  22780. 0, 0, 0, 0),
  22781. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  22782. 0, 0, 0, 0),
  22783. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  22784. 0, 0, 0, 0),
  22785. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  22786. 0, 0, 0, 0),
  22787. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  22788. 0, 0, 0, 0),
  22789. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  22790. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  22791. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  22792. 0, 0, 0, 0),
  22793. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  22794. 0, 0, 0, 0),
  22795. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  22796. 0, 0, 0, 0),
  22797. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  22798. 0, 0, 0, 0),
  22799. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  22800. 0, 0, 0, 0),
  22801. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  22802. 0, 0, 0, 0),
  22803. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  22804. 0, 0, 0, 0),
  22805. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  22806. 0, 0, 0, 0),
  22807. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  22808. 0, 0, 0, 0),
  22809. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  22810. 0, 0, 0, 0),
  22811. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  22812. 0, 0, 0, 0),
  22813. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  22814. 0, 0, 0, 0),
  22815. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  22816. 0, 0, 0, 0),
  22817. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  22818. 0, 0, 0, 0),
  22819. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  22820. 0, 0, 0, 0),
  22821. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  22822. 0, 0, 0, 0),
  22823. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  22824. 0, 0, 0, 0),
  22825. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  22826. 0, 0, 0, 0),
  22827. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  22828. 0, 0, 0, 0),
  22829. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  22830. 0, 0, 0, 0),
  22831. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  22832. 0, 0, 0, 0),
  22833. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  22834. 0, 0, 0, 0),
  22835. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  22836. 0, 0, 0, 0),
  22837. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  22838. 0, 0, 0, 0),
  22839. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  22840. 0, 0, 0, 0),
  22841. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  22842. 0, 0, 0, 0),
  22843. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  22844. 0, 0, 0, 0),
  22845. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  22846. 0, 0, 0, 0),
  22847. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  22848. 0, 0, 0, 0),
  22849. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  22850. 0, 0, 0, 0),
  22851. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  22852. 0, 0, 0, 0),
  22853. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  22854. 0, 0, 0, 0),
  22855. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  22856. 0, 0, 0, 0),
  22857. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  22858. 0, 0, 0, 0),
  22859. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  22860. 0, 0, 0, 0),
  22861. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  22862. 0, 0, 0, 0),
  22863. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  22864. 0, 0, 0, 0),
  22865. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  22866. 0, 0, 0, 0),
  22867. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  22868. 0, 0, 0, 0),
  22869. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  22870. 0, 0, 0, 0),
  22871. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  22872. 0, 0, 0, 0),
  22873. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  22874. 0, 0, 0, 0),
  22875. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  22876. 0, 0, 0, 0),
  22877. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  22878. 0, 0, 0, 0),
  22879. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  22880. 0, 0, 0, 0),
  22881. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  22882. 0, 0, 0, 0),
  22883. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  22884. 0, 0, 0, 0),
  22885. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  22886. 0, 0, 0, 0),
  22887. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  22888. 0, 0, 0, 0),
  22889. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  22890. 0, 0, 0, 0),
  22891. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  22892. 0, 0, 0, 0),
  22893. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  22894. 0, 0, 0, 0),
  22895. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  22896. 0, 0, 0, 0),
  22897. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  22898. 0, 0, 0, 0),
  22899. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  22900. 0, 0, 0, 0),
  22901. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  22902. 0, 0, 0, 0),
  22903. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  22904. 0, 0, 0, 0),
  22905. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  22906. 0, 0, 0, 0),
  22907. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  22908. 0, 0, 0, 0),
  22909. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  22910. 0, 0, 0, 0),
  22911. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  22912. 0, 0, 0, 0),
  22913. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  22914. 0, 0, 0, 0),
  22915. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  22916. 0, 0, 0, 0),
  22917. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  22918. 0, 0, 0, 0),
  22919. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  22920. 0, 0, 0, 0),
  22921. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  22922. 0, 0, 0, 0),
  22923. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  22924. 0, 0, 0, 0),
  22925. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  22926. 0, 0, 0, 0),
  22927. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  22928. 0, 0, 0, 0),
  22929. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  22930. 0, 0, 0, 0),
  22931. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  22932. 0, 0, 0, 0),
  22933. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  22934. 0, 0, 0, 0),
  22935. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  22936. 0, 0, 0, 0),
  22937. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  22938. 0, 0, 0, 0),
  22939. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  22940. 0, 0, 0, 0),
  22941. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  22942. 0, 0, 0, 0),
  22943. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  22944. 0, 0, 0, 0),
  22945. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  22946. 0, 0, 0, 0),
  22947. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  22948. 0, 0, 0, 0),
  22949. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  22950. 0, 0, 0, 0),
  22951. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  22952. 0, 0, 0, 0),
  22953. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  22954. 0, 0, 0, 0),
  22955. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  22956. 0, 0, 0, 0),
  22957. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  22958. 0, 0, 0, 0),
  22959. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  22960. 0, 0, 0, 0),
  22961. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  22962. 0, 0, 0, 0),
  22963. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  22964. 0, 0, 0, 0),
  22965. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  22966. 0, 0, 0, 0),
  22967. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  22968. 0, 0, 0, 0),
  22969. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  22970. 0, 0, 0, 0),
  22971. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  22972. 0, 0, 0, 0),
  22973. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  22974. 0, 0, 0, 0),
  22975. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  22976. 0, 0, 0, 0),
  22977. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  22978. 0, 0, 0, 0),
  22979. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  22980. 0, 0, 0, 0),
  22981. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  22982. 0, 0, 0, 0),
  22983. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  22984. 0, 0, 0, 0),
  22985. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  22986. 0, 0, 0, 0),
  22987. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  22988. 0, 0, 0, 0),
  22989. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  22990. 0, 0, 0, 0),
  22991. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  22992. 0, 0, 0, 0),
  22993. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  22994. 0, 0, 0, 0),
  22995. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  22996. 0, 0, 0, 0),
  22997. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  22998. 0, 0, 0, 0),
  22999. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  23000. 0, 0, 0, 0),
  23001. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  23002. 0, 0, 0, 0),
  23003. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  23004. 0, 0, 0, 0),
  23005. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23006. 0, 0, 0, 0),
  23007. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23008. 0, 0, 0, 0),
  23009. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23010. 0, 0, 0, 0),
  23011. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23012. 0, 0, 0, 0),
  23013. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23014. 0, 0, 0, 0),
  23015. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23016. 0, 0, 0, 0),
  23017. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23018. 0, 0, 0, 0),
  23019. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23020. 0, 0, 0, 0),
  23021. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23022. 0, 0, 0, 0),
  23023. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23024. 0, 0, 0, 0),
  23025. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23026. 0, 0, 0, 0),
  23027. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23028. 0, 0, 0, 0),
  23029. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23030. 0, 0, 0, 0),
  23031. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23032. 0, 0, 0, 0),
  23033. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23034. 0, 0, 0, 0),
  23035. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23036. 0, 0, 0, 0),
  23037. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23038. 0, 0, 0, 0),
  23039. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23040. 0, 0, 0, 0),
  23041. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23042. 0, 0, 0, 0),
  23043. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23044. 0, 0, 0, 0),
  23045. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23046. 0, 0, 0, 0),
  23047. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23048. 0, 0, 0, 0),
  23049. /* incall */
  23050. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23051. 0, 0, 0, 0),
  23052. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23053. 0, 0, 0, 0),
  23054. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23055. 0, 0, 0, 0),
  23056. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23057. 0, 0, 0, 0),
  23058. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23059. 0, 0, 0, 0),
  23060. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23061. 0, 0, 0, 0),
  23062. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23063. 0, 0, 0, 0),
  23064. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23065. 0, 0, 0, 0),
  23066. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23067. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23068. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23069. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23070. 0, 0, 0, 0),
  23071. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23072. 0, 0, 0, 0),
  23073. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23074. 0, 0, 0, 0),
  23075. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23076. 0, 0, 0, 0),
  23077. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23078. 0, 0, 0, 0),
  23079. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23080. 0, 0, 0, 0),
  23081. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23082. 0, 0, 0, 0),
  23083. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23084. 0, 0, 0, 0),
  23085. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23086. 0, 0, 0, 0),
  23087. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23088. 0, 0, 0, 0),
  23089. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23090. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23091. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23092. 0, 0, 0, 0),
  23093. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23094. 0, 0, 0, 0),
  23095. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23096. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23097. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23098. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23099. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23100. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23101. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23102. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23103. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23104. /* In- call recording */
  23105. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23106. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23107. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23108. 0, 0, 0, 0),
  23109. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23110. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23111. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23112. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23113. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23114. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23115. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23116. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23117. /* Switch Definitions */
  23118. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23119. &slim_fm_switch_mixer_controls),
  23120. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23121. &slim1_fm_switch_mixer_controls),
  23122. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23123. &slim3_fm_switch_mixer_controls),
  23124. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23125. &slim4_fm_switch_mixer_controls),
  23126. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23127. &slim6_fm_switch_mixer_controls),
  23128. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23129. &pcm_rx_switch_mixer_controls),
  23130. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23131. &int0_mi2s_rx_switch_mixer_controls),
  23132. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23133. &int4_mi2s_rx_switch_mixer_controls),
  23134. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23135. &pri_mi2s_rx_switch_mixer_controls),
  23136. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23137. &sec_mi2s_rx_switch_mixer_controls),
  23138. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23139. &tert_mi2s_rx_switch_mixer_controls),
  23140. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23141. &quat_mi2s_rx_switch_mixer_controls),
  23142. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23143. &quin_mi2s_rx_switch_mixer_controls),
  23144. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23145. &sco_slim7_switch_mixer_controls),
  23146. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23147. &sen_mi2s_rx_switch_mixer_controls),
  23148. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23149. &hfp_pri_aux_switch_mixer_controls),
  23150. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23151. &hfp_aux_switch_mixer_controls),
  23152. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  23153. &hfp_int_switch_mixer_controls),
  23154. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23155. &hfp_slim7_switch_mixer_controls),
  23156. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  23157. &usb_switch_mixer_controls),
  23158. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23159. &a2dp_slim7_switch_mixer_controls),
  23160. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23161. &cdc_dma_wsa_switch_mixer_controls),
  23162. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  23163. &cdc_dma_rx_switch_mixer_controls),
  23164. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  23165. &cdc_dma_rx_1_switch_mixer_controls),
  23166. /* Mixer definitions */
  23167. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23168. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  23169. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23170. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  23171. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23172. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  23173. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23174. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  23175. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23176. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  23177. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23178. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  23179. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23180. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  23181. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  23182. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  23183. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  23184. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  23185. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  23186. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  23187. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23188. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  23189. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23190. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  23191. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23192. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  23193. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23194. quaternary_mi2s_rx_mixer_controls,
  23195. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  23196. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23197. tertiary_mi2s_rx_mixer_controls,
  23198. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  23199. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23200. secondary_mi2s_rx_mixer_controls,
  23201. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  23202. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23203. secondary_mi2s_rx2_mixer_controls,
  23204. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  23205. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23206. primary_mi2s_rx_mixer_controls,
  23207. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  23208. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23209. int0_mi2s_rx_mixer_controls,
  23210. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  23211. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23212. int4_mi2s_rx_mixer_controls,
  23213. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  23214. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23215. quinary_mi2s_rx_mixer_controls,
  23216. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  23217. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23218. senary_mi2s_rx_mixer_controls,
  23219. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  23220. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23221. pri_tdm_rx_0_mixer_controls,
  23222. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  23223. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23224. pri_tdm_rx_1_mixer_controls,
  23225. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  23226. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23227. pri_tdm_rx_2_mixer_controls,
  23228. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  23229. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23230. pri_tdm_rx_3_mixer_controls,
  23231. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  23232. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23233. pri_tdm_tx_0_mixer_controls,
  23234. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  23235. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23236. sec_tdm_rx_0_mixer_controls,
  23237. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  23238. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23239. sec_tdm_rx_1_mixer_controls,
  23240. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  23241. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23242. sec_tdm_rx_2_mixer_controls,
  23243. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  23244. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23245. sec_tdm_rx_3_mixer_controls,
  23246. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  23247. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23248. sec_tdm_tx_0_mixer_controls,
  23249. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  23250. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23251. tert_tdm_rx_0_mixer_controls,
  23252. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  23253. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23254. tert_tdm_tx_0_mixer_controls,
  23255. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  23256. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23257. tert_tdm_rx_1_mixer_controls,
  23258. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  23259. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23260. tert_tdm_rx_2_mixer_controls,
  23261. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  23262. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23263. tert_tdm_rx_3_mixer_controls,
  23264. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  23265. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23266. tert_tdm_rx_4_mixer_controls,
  23267. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  23268. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23269. quat_tdm_rx_0_mixer_controls,
  23270. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  23271. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23272. quat_tdm_tx_0_mixer_controls,
  23273. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  23274. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23275. quat_tdm_rx_1_mixer_controls,
  23276. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  23277. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23278. quat_tdm_rx_2_mixer_controls,
  23279. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  23280. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23281. quat_tdm_rx_3_mixer_controls,
  23282. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  23283. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23284. quin_tdm_rx_0_mixer_controls,
  23285. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  23286. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23287. quin_tdm_tx_0_mixer_controls,
  23288. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  23289. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23290. quin_tdm_rx_1_mixer_controls,
  23291. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  23292. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23293. quin_tdm_tx_1_mixer_controls,
  23294. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  23295. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23296. quin_tdm_rx_2_mixer_controls,
  23297. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  23298. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23299. quin_tdm_tx_2_mixer_controls,
  23300. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  23301. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23302. quin_tdm_rx_3_mixer_controls,
  23303. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  23304. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23305. quin_tdm_tx_3_mixer_controls,
  23306. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  23307. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23308. sen_tdm_tx_0_mixer_controls,
  23309. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  23310. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23311. sen_tdm_rx_0_mixer_controls,
  23312. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  23313. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23314. sen_tdm_rx_1_mixer_controls,
  23315. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  23316. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23317. sen_tdm_rx_2_mixer_controls,
  23318. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  23319. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23320. sen_tdm_rx_3_mixer_controls,
  23321. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  23322. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23323. pri_meta_mi2s_rx_mixer_controls,
  23324. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  23325. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23326. sec_meta_mi2s_rx_mixer_controls,
  23327. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  23328. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23329. wsa_cdc_dma_rx_0_mixer_controls,
  23330. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  23331. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23332. wsa_cdc_dma_rx_1_mixer_controls,
  23333. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  23334. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23335. rx_cdc_dma_rx_0_mixer_controls,
  23336. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  23337. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23338. rx_cdc_dma_rx_1_mixer_controls,
  23339. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  23340. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23341. rx_cdc_dma_rx_2_mixer_controls,
  23342. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  23343. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23344. rx_cdc_dma_rx_3_mixer_controls,
  23345. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  23346. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23347. rx_cdc_dma_rx_4_mixer_controls,
  23348. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  23349. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23350. rx_cdc_dma_rx_5_mixer_controls,
  23351. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  23352. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23353. rx_cdc_dma_rx_6_mixer_controls,
  23354. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  23355. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23356. rx_cdc_dma_rx_7_mixer_controls,
  23357. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  23358. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  23359. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  23360. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  23361. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  23362. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  23363. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  23364. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  23365. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  23366. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  23367. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  23368. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  23369. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  23370. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  23371. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  23372. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  23373. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  23374. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  23375. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  23376. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  23377. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  23378. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  23379. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  23380. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  23381. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  23382. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  23383. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  23384. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  23385. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  23386. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  23387. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  23388. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  23389. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  23390. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  23391. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  23392. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  23393. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  23394. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  23395. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  23396. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  23397. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  23398. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  23399. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  23400. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23401. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  23402. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23403. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  23404. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23405. tert_auxpcm_rx_mixer_controls,
  23406. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  23407. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23408. quat_auxpcm_rx_mixer_controls,
  23409. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  23410. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23411. quin_auxpcm_rx_mixer_controls,
  23412. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  23413. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23414. sen_auxpcm_rx_mixer_controls,
  23415. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  23416. /* incall */
  23417. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  23418. incall_music_delivery_mixer_controls,
  23419. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  23420. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23421. incall_music2_delivery_mixer_controls,
  23422. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  23423. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23424. slimbus_4_rx_mixer_controls,
  23425. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  23426. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23427. slimbus_6_rx_mixer_controls,
  23428. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  23429. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23430. usb_audio_rx_mixer_controls,
  23431. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  23432. /* Voice Mixer */
  23433. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  23434. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  23435. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  23436. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  23437. SND_SOC_NOPM, 0, 0,
  23438. sec_i2s_rx_voice_mixer_controls,
  23439. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  23440. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  23441. SND_SOC_NOPM, 0, 0,
  23442. sec_mi2s_rx_voice_mixer_controls,
  23443. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  23444. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  23445. SND_SOC_NOPM, 0, 0,
  23446. slimbus_rx_voice_mixer_controls,
  23447. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  23448. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  23449. SND_SOC_NOPM, 0, 0,
  23450. bt_sco_rx_voice_mixer_controls,
  23451. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  23452. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  23453. SND_SOC_NOPM, 0, 0,
  23454. afe_pcm_rx_voice_mixer_controls,
  23455. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  23456. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  23457. SND_SOC_NOPM, 0, 0,
  23458. aux_pcm_rx_voice_mixer_controls,
  23459. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  23460. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  23461. SND_SOC_NOPM, 0, 0,
  23462. sec_aux_pcm_rx_voice_mixer_controls,
  23463. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  23464. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  23465. SND_SOC_NOPM, 0, 0,
  23466. tert_aux_pcm_rx_voice_mixer_controls,
  23467. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  23468. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  23469. SND_SOC_NOPM, 0, 0,
  23470. quat_aux_pcm_rx_voice_mixer_controls,
  23471. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  23472. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  23473. SND_SOC_NOPM, 0, 0,
  23474. quin_aux_pcm_rx_voice_mixer_controls,
  23475. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  23476. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  23477. SND_SOC_NOPM, 0, 0,
  23478. sen_aux_pcm_rx_voice_mixer_controls,
  23479. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  23480. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  23481. SND_SOC_NOPM, 0, 0,
  23482. hdmi_rx_voice_mixer_controls,
  23483. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  23484. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  23485. SND_SOC_NOPM, 0, 0,
  23486. mi2s_rx_voice_mixer_controls,
  23487. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  23488. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  23489. SND_SOC_NOPM, 0, 0,
  23490. pri_mi2s_rx_voice_mixer_controls,
  23491. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  23492. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  23493. SND_SOC_NOPM, 0, 0,
  23494. int0_mi2s_rx_voice_mixer_controls,
  23495. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  23496. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  23497. SND_SOC_NOPM, 0, 0,
  23498. int4_mi2s_rx_voice_mixer_controls,
  23499. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  23500. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  23501. SND_SOC_NOPM, 0, 0,
  23502. tert_mi2s_rx_voice_mixer_controls,
  23503. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  23504. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  23505. SND_SOC_NOPM, 0, 0,
  23506. quat_mi2s_rx_voice_mixer_controls,
  23507. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  23508. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  23509. SND_SOC_NOPM, 0, 0,
  23510. quin_mi2s_rx_voice_mixer_controls,
  23511. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  23512. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  23513. SND_SOC_NOPM, 0, 0,
  23514. pri_tdm_rx_0_voice_mixer_controls,
  23515. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  23516. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  23517. SND_SOC_NOPM, 0, 0,
  23518. pri_tdm_rx_1_voice_mixer_controls,
  23519. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  23520. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  23521. SND_SOC_NOPM, 0, 0,
  23522. pri_tdm_rx_2_voice_mixer_controls,
  23523. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  23524. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  23525. SND_SOC_NOPM, 0, 0,
  23526. pri_tdm_rx_3_voice_mixer_controls,
  23527. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  23528. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  23529. SND_SOC_NOPM, 0, 0,
  23530. sen_mi2s_rx_voice_mixer_controls,
  23531. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  23532. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  23533. SND_SOC_NOPM, 0, 0,
  23534. quat_tdm_rx_2_voice_mixer_controls,
  23535. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  23536. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  23537. SND_SOC_NOPM, 0, 0,
  23538. quin_tdm_rx_2_voice_mixer_controls,
  23539. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  23540. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  23541. SND_SOC_NOPM, 0, 0,
  23542. wsa_cdc_dma_rx_0_voice_mixer_controls,
  23543. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  23544. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  23545. SND_SOC_NOPM, 0, 0,
  23546. rx_cdc_dma_rx_0_voice_mixer_controls,
  23547. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  23548. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  23549. SND_SOC_NOPM, 0, 0,
  23550. rx_cdc_dma_rx_1_voice_mixer_controls,
  23551. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  23552. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  23553. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  23554. ARRAY_SIZE(tx_voip_mixer_controls)),
  23555. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  23556. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  23557. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  23558. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  23559. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  23560. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  23561. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23562. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  23563. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23564. int_bt_a2dp_rx_mixer_controls,
  23565. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  23566. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23567. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  23568. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23569. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  23570. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23571. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  23572. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23573. tx_voice2_stub_mixer_controls,
  23574. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  23575. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23576. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  23577. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  23578. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  23579. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  23580. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  23581. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23582. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  23583. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  23584. SND_SOC_NOPM, 0, 0,
  23585. slimbus_6_rx_voice_mixer_controls,
  23586. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  23587. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23588. slimbus_7_rx_voice_mixer_controls,
  23589. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  23590. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23591. slimbus_8_rx_voice_mixer_controls,
  23592. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  23593. /* port mixer */
  23594. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  23595. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  23596. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  23597. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  23598. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  23599. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  23600. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  23601. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  23602. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  23603. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  23604. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  23605. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  23606. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  23607. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  23608. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  23609. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  23610. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  23611. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  23612. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  23613. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  23614. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  23615. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23616. sbus_1_rx_port_mixer_controls,
  23617. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  23618. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23619. bt_sco_rx_port_mixer_controls,
  23620. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  23621. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  23622. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  23623. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  23624. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  23625. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  23626. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  23627. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  23628. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  23629. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  23630. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  23631. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  23632. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  23633. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  23634. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  23635. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  23636. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  23637. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  23638. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  23639. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  23640. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  23641. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  23642. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23643. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  23644. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23645. primary_mi2s_rx_port_mixer_controls,
  23646. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  23647. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23648. sec_mi2s_rx_port_mixer_controls,
  23649. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  23650. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23651. tert_mi2s_rx_port_mixer_controls,
  23652. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  23653. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23654. quat_mi2s_rx_port_mixer_controls,
  23655. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  23656. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23657. quin_mi2s_rx_port_mixer_controls,
  23658. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  23659. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23660. sen_mi2s_rx_port_mixer_controls,
  23661. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  23662. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23663. pri_tdm_rx_0_port_mixer_controls,
  23664. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  23665. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23666. pri_tdm_rx_1_port_mixer_controls,
  23667. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  23668. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23669. pri_tdm_rx_2_port_mixer_controls,
  23670. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  23671. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23672. pri_tdm_rx_3_port_mixer_controls,
  23673. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  23674. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23675. sec_tdm_rx_0_port_mixer_controls,
  23676. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  23677. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23678. sec_tdm_rx_1_port_mixer_controls,
  23679. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  23680. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23681. sec_tdm_rx_2_port_mixer_controls,
  23682. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  23683. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23684. sec_tdm_rx_3_port_mixer_controls,
  23685. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  23686. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23687. sec_tdm_rx_7_port_mixer_controls,
  23688. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  23689. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23690. tert_tdm_rx_0_port_mixer_controls,
  23691. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  23692. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23693. tert_tdm_rx_1_port_mixer_controls,
  23694. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  23695. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23696. tert_tdm_rx_2_port_mixer_controls,
  23697. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  23698. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23699. tert_tdm_rx_3_port_mixer_controls,
  23700. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  23701. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23702. quat_tdm_rx_0_port_mixer_controls,
  23703. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  23704. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23705. quat_tdm_rx_1_port_mixer_controls,
  23706. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  23707. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23708. quat_tdm_rx_2_port_mixer_controls,
  23709. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  23710. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23711. quat_tdm_rx_3_port_mixer_controls,
  23712. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  23713. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23714. quat_tdm_rx_7_port_mixer_controls,
  23715. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  23716. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23717. quin_tdm_rx_0_port_mixer_controls,
  23718. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  23719. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23720. quin_tdm_rx_1_port_mixer_controls,
  23721. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  23722. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23723. quin_tdm_rx_2_port_mixer_controls,
  23724. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  23725. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23726. quin_tdm_rx_3_port_mixer_controls,
  23727. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  23728. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23729. quin_tdm_rx_7_port_mixer_controls,
  23730. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  23731. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23732. sen_tdm_rx_0_port_mixer_controls,
  23733. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  23734. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23735. sen_tdm_rx_1_port_mixer_controls,
  23736. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  23737. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23738. sen_tdm_rx_2_port_mixer_controls,
  23739. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  23740. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23741. sen_tdm_rx_3_port_mixer_controls,
  23742. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  23743. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23744. int0_mi2s_rx_port_mixer_controls,
  23745. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  23746. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23747. int4_mi2s_rx_port_mixer_controls,
  23748. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  23749. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23750. wsa_cdc_dma_rx_0_port_mixer_controls,
  23751. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  23752. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23753. rx_cdc_dma_rx_0_port_mixer_controls,
  23754. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  23755. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23756. rx_cdc_dma_rx_1_port_mixer_controls,
  23757. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  23758. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  23759. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  23760. ARRAY_SIZE(tx_qchat_mixer_controls)),
  23761. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  23762. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  23763. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  23764. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  23765. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  23766. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  23767. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  23768. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  23769. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  23770. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  23771. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  23772. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  23773. /* lsm mixer definitions */
  23774. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  23775. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  23776. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  23777. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  23778. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  23779. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  23780. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  23781. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  23782. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  23783. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  23784. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  23785. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  23786. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  23787. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  23788. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  23789. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  23790. /* Virtual Pins to force backends ON atm */
  23791. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  23792. SND_SOC_DAPM_INPUT("BE_IN"),
  23793. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23794. &slim0_rx_vi_fb_lch_mux),
  23795. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23796. &slim0_rx_vi_fb_rch_mux),
  23797. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23798. &wsa_rx_0_vi_fb_lch_mux),
  23799. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23800. &wsa_rx_0_vi_fb_rch_mux),
  23801. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  23802. &mi2s_rx_vi_fb_mux),
  23803. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23804. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  23805. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23806. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  23807. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  23808. &voc_ext_ec_mux),
  23809. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  23810. &ext_ec_ref_mux_ul1),
  23811. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  23812. &ext_ec_ref_mux_ul2),
  23813. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  23814. &ext_ec_ref_mux_ul3),
  23815. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  23816. &ext_ec_ref_mux_ul4),
  23817. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  23818. &ext_ec_ref_mux_ul5),
  23819. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  23820. &ext_ec_ref_mux_ul6),
  23821. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  23822. &ext_ec_ref_mux_ul8),
  23823. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  23824. &ext_ec_ref_mux_ul9),
  23825. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  23826. &ext_ec_ref_mux_ul10),
  23827. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  23828. &ext_ec_ref_mux_ul16),
  23829. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  23830. &ext_ec_ref_mux_ul17),
  23831. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  23832. &ext_ec_ref_mux_ul18),
  23833. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  23834. &ext_ec_ref_mux_ul19),
  23835. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  23836. &ext_ec_ref_mux_ul28),
  23837. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  23838. &ext_ec_ref_mux_ul29),
  23839. };
  23840. static const struct snd_soc_dapm_route intercon[] = {
  23841. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23842. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23843. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23844. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23845. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23846. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23847. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23848. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23849. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23850. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23851. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23852. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23853. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23854. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23855. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23856. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23857. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23858. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  23859. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23860. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23861. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23862. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23863. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23864. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23865. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23866. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23867. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23868. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23869. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23870. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23871. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23872. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23873. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23874. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23875. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23876. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  23877. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23878. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23879. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23880. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23881. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23882. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23883. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23884. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23885. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23886. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23887. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23888. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23889. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23890. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23891. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23892. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23893. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23894. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  23895. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23896. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23897. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23898. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23899. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23900. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23901. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23902. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23903. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23904. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23905. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23906. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23907. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23908. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23909. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23910. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23911. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23912. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  23913. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23914. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23915. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23916. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23917. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23918. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23919. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23920. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23921. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23922. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23923. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23924. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23925. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23926. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23927. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23928. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23929. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23930. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  23931. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23932. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23933. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23934. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23935. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23936. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23937. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23938. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23939. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23940. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23941. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23942. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23943. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23944. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23945. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23946. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23947. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23948. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  23949. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23950. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23951. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23952. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23953. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23954. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23955. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23956. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23957. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23958. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23959. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23960. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23961. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23962. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23963. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23964. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23965. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23966. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  23967. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23968. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23969. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23970. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23971. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23972. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23973. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23974. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23975. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23976. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23977. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23978. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23979. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23980. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23981. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23982. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23983. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23984. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  23985. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23986. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23987. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23988. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23989. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23990. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23991. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23992. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23993. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23994. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23995. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23996. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23997. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23998. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23999. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24000. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24001. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24002. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  24003. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24004. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24005. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24006. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24007. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24008. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24009. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24010. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24011. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24012. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24013. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24014. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24015. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24016. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24017. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24018. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24019. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24020. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24021. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24022. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24023. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24024. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24025. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24026. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24027. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24028. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24029. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24030. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24031. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24032. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24033. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24034. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24035. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24036. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24037. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24038. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24039. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24040. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24041. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24042. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24043. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24044. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24045. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24046. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24047. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24048. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24049. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24050. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24051. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24052. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24053. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24054. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24055. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24056. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24057. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24058. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24059. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24060. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24061. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24062. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24063. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24064. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24065. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24066. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24067. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24068. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24069. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24070. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24071. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24072. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24073. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24074. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24075. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24076. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24077. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24078. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24079. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24080. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24081. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24082. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24083. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24084. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24085. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24086. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24087. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24088. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24089. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24090. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24091. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24092. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24093. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24094. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24095. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24096. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24097. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24098. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24099. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24100. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24101. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24102. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24103. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24104. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24105. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24106. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24107. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24108. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24109. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24110. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  24111. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  24112. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  24113. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  24114. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  24115. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  24116. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  24117. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  24118. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  24119. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  24120. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  24121. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  24122. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  24123. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  24124. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  24125. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  24126. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  24127. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  24128. {"HDMI", NULL, "HDMI Mixer"},
  24129. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  24130. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  24131. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  24132. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  24133. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  24134. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  24135. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  24136. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  24137. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  24138. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  24139. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  24140. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  24141. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  24142. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  24143. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  24144. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  24145. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  24146. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  24147. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  24148. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  24149. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  24150. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  24151. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  24152. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  24153. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  24154. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  24155. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  24156. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  24157. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  24158. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  24159. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  24160. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  24161. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  24162. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  24163. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  24164. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  24165. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24166. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24167. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24168. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24169. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24170. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24171. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24172. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24173. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24174. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24175. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24176. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24177. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24178. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24179. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24180. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24181. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24182. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  24183. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24184. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24185. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24186. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24187. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24188. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24189. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24190. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24191. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24192. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24193. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24194. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24195. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24196. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24197. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24198. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24199. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24200. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  24201. /* incall */
  24202. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  24203. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  24204. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  24205. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  24206. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  24207. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  24208. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24209. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24210. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24211. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24212. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  24213. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24214. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24215. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24216. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24217. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  24218. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24219. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24220. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24221. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24222. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24223. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24224. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24225. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24226. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24227. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24228. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24229. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24230. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24231. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24232. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24233. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24234. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24235. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  24236. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24237. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24238. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24239. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24240. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24241. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24242. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24243. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24244. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24245. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24246. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24247. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24248. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24249. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24250. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24251. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24252. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24253. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  24254. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24255. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24256. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24257. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24258. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24259. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24260. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24261. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24262. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24263. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24264. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24265. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24266. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24267. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24268. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24269. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24270. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24271. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  24272. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24273. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24274. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24275. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24276. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24277. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24278. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24279. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24280. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24281. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24282. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24283. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24284. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24285. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24286. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24287. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24288. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24289. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  24290. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24291. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24292. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24293. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  24294. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24295. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24296. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24297. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24298. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  24299. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24300. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24301. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24302. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24303. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24304. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24305. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24306. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24307. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24308. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24309. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24310. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24311. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24312. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24313. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24314. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24315. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24316. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24317. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24318. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24319. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24320. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24321. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24322. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24323. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24324. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24325. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24326. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24327. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24328. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24329. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24330. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24331. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24332. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24333. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24334. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24335. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24336. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24337. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24338. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24339. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24340. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24341. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24342. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24343. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24344. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24345. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24346. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24347. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24348. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24349. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24350. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24351. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24352. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24353. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24354. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24355. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24356. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24357. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24358. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24359. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24360. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24361. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24362. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24363. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24364. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24365. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24366. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24367. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24368. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24369. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24370. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24371. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24372. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24373. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24374. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24375. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24376. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24377. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24378. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24379. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24380. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24381. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24382. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24383. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24384. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24385. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24386. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24387. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24388. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24389. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24390. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  24391. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24392. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24393. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24394. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24395. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24396. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24397. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24398. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24399. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24400. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24401. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24402. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24403. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24404. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24405. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24406. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  24407. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24408. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  24409. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24410. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24411. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24412. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24413. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24414. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24415. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24416. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24417. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24418. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24419. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24420. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24421. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24422. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24423. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24424. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  24425. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24426. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24427. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24428. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24429. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24430. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24431. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24432. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24433. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24434. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24435. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24436. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24437. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24438. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24439. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24440. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  24441. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24442. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  24443. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24444. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24445. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24446. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24447. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24448. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24449. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24450. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24451. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24452. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24453. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24454. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24455. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24456. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24457. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24458. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24459. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24460. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24461. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24462. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  24463. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  24464. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24465. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24466. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24467. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24468. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24469. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24470. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24471. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24472. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24473. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24474. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24475. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24476. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24477. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24478. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24479. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  24480. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24481. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24482. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24483. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24484. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24485. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24486. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24487. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24488. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24489. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24490. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24491. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24492. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24493. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24494. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24495. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  24496. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24497. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24498. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24499. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24500. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24501. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24502. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24503. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24504. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24505. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24506. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24507. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24508. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24509. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24510. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24511. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24512. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24513. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  24514. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24515. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24516. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24517. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24518. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24519. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24520. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24521. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24522. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24523. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24524. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24525. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24526. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24527. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24528. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24529. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  24530. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24531. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24532. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24533. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24534. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24535. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24536. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24537. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24538. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24539. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24540. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24541. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24542. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24543. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24544. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24545. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24546. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24547. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  24548. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24549. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24550. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24551. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24552. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24553. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24554. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24555. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24556. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24557. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24558. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24559. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24560. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24561. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24562. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24563. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24564. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24565. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  24566. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24567. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24568. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24569. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24570. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24571. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24572. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24573. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24574. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24575. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24576. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24577. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24578. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24579. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24580. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24581. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24582. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24583. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24584. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24585. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  24586. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24587. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24588. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24589. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24590. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24591. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24592. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24593. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24594. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24595. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24596. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24597. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24598. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24599. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24600. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24601. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24602. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24603. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24604. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24605. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  24606. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24607. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24608. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24609. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24610. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24611. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24612. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24613. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24614. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24615. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24616. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24617. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24618. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24619. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24620. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24621. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24622. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24623. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24624. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24625. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  24626. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24627. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24628. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24629. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24630. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24631. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24632. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24633. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24634. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24635. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24636. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24637. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24638. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24639. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24640. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24641. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24642. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24643. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24644. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24645. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  24646. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24647. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24648. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24649. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24650. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24651. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24652. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24653. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24654. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24655. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24656. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24657. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24658. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24659. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24660. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24661. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24662. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24663. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  24664. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24665. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24666. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24667. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24668. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24669. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24670. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24671. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24672. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24673. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24674. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24675. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24676. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24677. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24678. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24679. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24680. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24681. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24682. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24683. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  24684. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24685. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24686. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24687. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24688. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24689. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24690. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24691. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24692. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24693. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24694. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24695. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24696. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24697. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24698. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24699. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24700. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24701. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24702. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24703. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  24704. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24705. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24706. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24707. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24708. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24709. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24710. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24711. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24712. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24713. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24714. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24715. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24716. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24717. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24718. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24719. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24720. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24721. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24722. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24723. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  24724. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24725. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24726. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24727. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24728. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24729. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24730. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24731. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24732. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24733. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24734. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24735. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24736. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24737. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24738. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24739. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24740. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24741. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24742. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24743. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  24744. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24745. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24746. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24747. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24748. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24749. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24750. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24751. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24752. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24753. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24754. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24755. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24756. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24757. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24758. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24759. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24760. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24761. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  24762. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24763. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24764. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24765. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24766. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24767. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24768. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24769. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24770. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24771. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24772. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24773. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24774. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24775. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24776. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24777. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24778. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24779. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24780. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24781. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  24782. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24783. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24784. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24785. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24786. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24787. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24788. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24789. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24790. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24791. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24792. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24793. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24794. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24795. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24796. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24797. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24798. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24799. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  24800. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24801. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24802. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24803. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24804. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24805. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24806. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24807. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24808. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24809. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24810. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24811. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24812. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24813. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24814. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24815. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24816. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24817. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24818. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24819. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  24820. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24821. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24822. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24823. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24824. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24825. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24826. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24827. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24828. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24829. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24830. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24831. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24832. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24833. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24834. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24835. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24836. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24837. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24838. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24839. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  24840. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24841. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24842. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24843. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24844. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24845. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24846. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24847. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24848. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24849. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24850. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24851. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24852. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24853. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24854. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24855. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24856. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24857. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24858. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24859. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  24860. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24861. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24862. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24863. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24864. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24865. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24866. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24867. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24868. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24869. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24870. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24871. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24872. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24873. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24874. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24875. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24876. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24877. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24878. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24879. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  24880. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24881. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24882. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24883. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24884. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24885. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24886. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24887. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24888. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24889. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24890. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24891. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24892. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24893. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24894. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24895. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24896. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24897. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24898. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24899. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24900. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  24901. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24902. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24903. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24904. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24905. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24906. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24907. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24908. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24909. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24910. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24911. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24912. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24913. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24914. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24915. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24916. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24917. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24918. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  24919. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24920. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24921. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24922. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24923. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24924. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24925. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24926. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24927. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24928. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24929. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24930. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24931. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24932. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24933. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24934. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24935. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24936. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24937. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24938. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24939. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  24940. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24941. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24942. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24943. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24944. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24945. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24946. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24947. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24948. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24949. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24950. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24951. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24952. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24953. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24954. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24955. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24956. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24957. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24958. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24959. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24960. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  24961. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24962. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24963. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24964. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24965. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24966. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24967. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24968. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24969. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24970. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24971. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24972. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24973. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24974. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24975. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24976. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24977. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24978. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24979. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24980. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  24981. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  24982. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24983. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24984. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24985. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24986. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24987. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24988. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24989. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24990. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24991. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24992. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24993. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24994. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24995. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24996. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24997. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24998. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24999. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25000. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25001. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25002. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  25003. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25004. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25005. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25006. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25007. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25008. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25009. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25010. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25011. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25012. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25013. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25014. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25015. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25016. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25017. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25018. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25019. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25020. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25021. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25022. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25023. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25024. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25025. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25026. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25027. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25028. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25029. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25030. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25031. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25032. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25033. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25034. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25035. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25036. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25037. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25038. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25039. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25040. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25041. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  25042. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25043. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25044. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25045. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25046. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25047. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25048. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25049. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25050. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25051. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25052. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25053. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25054. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25055. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25056. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25057. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25058. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25059. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25060. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25061. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25062. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  25063. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25064. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25065. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25066. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25067. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25068. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25069. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25070. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25071. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25072. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25073. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25074. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25075. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25076. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25077. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25078. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25079. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25080. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25081. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25082. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25083. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  25084. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25085. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25086. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25087. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25088. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25089. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25090. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25091. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25092. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25093. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25094. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25095. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25096. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25097. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25098. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25099. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25100. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25101. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25102. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  25103. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25104. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25105. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25106. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25107. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25108. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25109. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25110. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25111. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25112. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25113. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25114. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25115. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25116. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25117. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25118. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25119. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  25120. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25121. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25122. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25123. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25124. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25125. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25126. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25127. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25128. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25129. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25130. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25131. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25132. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25133. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25134. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25135. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25136. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25137. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25138. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  25139. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25140. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25141. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25142. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25143. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25144. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25145. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25146. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25147. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25148. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25149. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25150. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25151. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25152. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25153. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25154. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25155. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25156. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25157. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  25158. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25159. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25160. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25161. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25162. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25163. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25164. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25165. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25166. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25167. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25168. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25169. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25170. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25171. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25172. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25173. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25174. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25175. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25176. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  25177. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  25178. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  25179. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  25180. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  25181. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  25182. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  25183. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  25184. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25185. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25186. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25187. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25188. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25189. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25190. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25191. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25192. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25193. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25194. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25195. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25196. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25197. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25198. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25199. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25200. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25201. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25202. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25203. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25204. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25205. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25206. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25207. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25208. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  25209. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  25210. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25211. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25212. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25213. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  25214. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25215. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25216. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25217. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25218. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  25219. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25220. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25221. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  25222. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25223. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25224. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  25225. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25226. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25227. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25228. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25229. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25230. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25231. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25232. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25233. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25234. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25235. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25236. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25237. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25238. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25239. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25240. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25241. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25242. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  25243. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25244. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25245. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25246. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25247. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25248. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25249. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25250. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25251. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25252. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25253. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25254. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25255. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25256. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25257. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25258. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25259. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25260. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25261. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25262. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25263. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25264. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25265. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25266. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25267. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25268. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25269. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25270. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25271. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25272. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25273. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25274. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25275. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25276. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25277. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25278. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25279. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25280. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25281. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25282. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25283. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25284. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25285. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25286. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25287. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25288. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25289. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25290. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25291. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25292. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25293. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25294. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25295. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25296. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25297. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25298. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25299. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25300. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25301. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25302. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25303. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25304. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25305. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25306. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25307. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25308. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25309. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25310. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25311. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25312. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25313. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25314. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25315. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25316. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25317. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25318. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25319. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25320. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25321. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25322. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25323. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25324. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25325. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25326. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25327. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25328. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25329. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25330. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25331. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25332. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25333. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25334. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25335. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25336. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25337. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25338. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25339. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25340. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25341. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25342. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25343. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25344. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25345. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25346. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25347. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25348. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25349. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25350. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25351. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25352. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25353. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25354. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25355. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25356. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25357. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25358. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25359. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25360. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25361. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25362. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25363. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25364. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25365. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25366. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25367. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25368. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25369. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25370. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25371. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25372. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25373. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25374. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25375. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25376. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25377. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25378. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25379. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25380. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25381. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25382. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25383. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25384. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25385. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25386. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25387. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25388. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25389. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25390. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25391. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25392. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25393. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25394. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25395. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25396. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25397. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25398. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25399. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25400. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25401. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25402. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25403. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25404. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25405. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25406. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25407. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25408. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25409. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25410. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25411. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25412. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25413. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25414. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25415. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25416. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25417. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25418. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25419. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25420. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25421. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25422. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25423. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25424. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25425. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25426. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25427. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25428. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25429. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25430. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25431. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25432. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25433. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25434. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25435. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25436. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25437. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25438. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25439. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25440. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25441. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25442. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25443. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25444. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25445. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25446. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25447. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25448. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25449. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25450. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25451. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25452. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25453. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25454. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25455. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25456. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25457. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25458. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25459. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25460. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25461. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25462. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25463. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25464. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25465. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25466. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25467. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25468. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25469. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25470. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25471. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25472. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25473. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25474. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25475. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25476. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25477. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25478. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25479. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25480. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25481. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25482. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25483. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25484. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25485. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25486. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25487. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25488. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25489. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25490. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25491. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25492. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25493. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25494. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25495. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25496. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25497. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25498. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25499. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25500. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25501. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25502. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25503. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25504. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25505. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25506. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25507. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25508. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25509. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25510. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25511. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25512. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25513. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25514. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25515. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25516. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25517. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25518. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25519. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25520. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25521. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25522. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25523. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25524. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25525. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25526. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25527. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25528. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25529. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25530. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25531. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25532. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25533. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25534. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25535. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25536. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25537. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25538. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25539. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25540. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25541. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25542. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25543. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25544. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25545. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25546. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25547. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25548. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25549. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25550. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25551. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25552. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25553. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25554. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25555. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25556. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25557. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25558. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25559. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25560. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25561. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25562. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25563. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25564. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25565. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25566. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25567. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25568. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25569. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25570. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25571. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25572. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25573. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25574. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25575. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25576. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25577. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25578. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25579. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25580. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25581. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25582. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25583. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25584. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25585. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25586. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25587. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25588. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25589. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25590. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25591. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25592. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25593. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25594. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25595. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25596. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25597. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25598. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25599. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25600. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25601. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25602. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25603. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25604. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25605. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25606. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25607. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25608. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25609. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25610. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25611. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25612. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25613. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25614. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25615. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25616. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25617. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25618. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25619. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25620. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25621. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25622. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25623. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25624. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25625. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25626. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25627. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25628. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25629. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25630. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25631. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25632. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25633. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25634. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25635. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25636. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25637. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25638. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25639. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25640. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25641. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25642. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25643. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25644. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25645. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25646. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25647. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25648. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25649. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25650. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25651. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25652. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25653. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25654. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25655. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25656. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25657. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25658. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25659. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25660. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25661. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25662. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25663. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25664. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25665. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25666. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25667. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25668. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25669. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25670. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25671. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25672. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25673. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25674. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25675. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25676. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25677. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25678. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25679. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25680. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25681. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25682. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25683. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25684. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25685. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25686. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25687. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25688. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25689. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25690. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25691. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25692. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25693. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25694. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25695. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25696. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25697. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25698. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25699. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25700. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25701. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25702. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25703. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25704. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25705. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25706. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25707. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25708. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25709. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25710. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25711. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25712. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25713. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25714. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25715. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25716. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25717. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25718. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25719. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25720. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25721. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25722. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25723. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25724. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25725. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25726. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25727. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25728. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25729. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25730. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25731. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25732. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25733. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25734. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25735. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25736. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25737. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25738. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25739. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25740. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25741. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25742. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25743. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25744. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25745. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25746. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25747. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25748. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25749. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25750. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25751. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25752. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25753. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25754. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25755. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25756. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25757. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25758. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25759. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25760. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25761. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25762. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25763. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25764. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25765. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25766. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25767. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25768. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25769. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25770. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25771. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25772. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25773. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25774. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25775. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25776. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25777. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25778. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25779. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25780. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25781. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25782. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25783. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25784. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25785. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25786. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25787. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25788. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25789. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25790. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25791. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25792. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25793. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25794. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25795. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25796. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25797. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25798. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25799. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25800. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25801. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25802. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25803. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25804. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25805. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25806. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25807. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25808. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25809. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25810. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25811. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25812. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25813. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25814. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25815. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25816. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25817. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25818. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25819. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25820. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25821. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25822. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25823. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25824. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25825. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25826. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25827. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25828. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  25829. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25830. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25831. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25832. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25833. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25834. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25835. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25836. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25837. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25838. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25839. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25840. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25841. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25842. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25843. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25844. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25845. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25846. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  25847. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25848. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25849. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25850. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25851. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25852. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25853. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25854. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25855. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25856. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25857. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25858. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25859. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25860. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25861. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25862. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25863. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  25864. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25865. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25866. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25867. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25868. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25869. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25870. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25871. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25872. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25873. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25874. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25875. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25876. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25877. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25878. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25879. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25880. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  25881. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25882. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25883. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25884. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25885. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25886. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25887. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25888. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25889. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25890. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25891. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25892. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25893. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25894. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25895. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25896. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25897. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25898. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25899. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25900. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25901. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25902. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25903. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25904. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25905. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25906. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25907. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25908. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25909. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25910. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25911. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25912. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25913. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25914. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25915. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25916. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25917. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25918. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25919. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  25920. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25921. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  25922. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  25923. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  25924. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  25925. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  25926. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  25927. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  25928. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  25929. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  25930. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  25931. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  25932. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  25933. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  25934. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  25935. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  25936. {"MM_UL23", NULL, "MultiMedia23 Mixer"},
  25937. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  25938. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  25939. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  25940. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  25941. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25942. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25943. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25944. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25945. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25946. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25947. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25948. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25949. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25950. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25951. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25952. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25953. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25954. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25955. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25956. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25957. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25958. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  25959. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25960. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25961. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25962. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25963. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25964. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25965. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25966. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25967. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25968. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25969. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25970. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25971. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25972. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25973. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25974. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25975. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25976. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  25977. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25978. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25979. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25980. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25981. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25982. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25983. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25984. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25985. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25986. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25987. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25988. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25989. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25990. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25991. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25992. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25993. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  25994. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25995. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25996. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25997. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25998. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25999. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26000. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26001. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26002. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26003. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26004. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26005. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26006. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26007. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26008. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26009. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26010. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  26011. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26012. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26013. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26014. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26015. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26016. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26017. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26018. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26019. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26020. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26021. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26022. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26023. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26024. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26025. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26026. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26027. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  26028. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26029. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26030. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26031. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26032. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26033. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26034. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26035. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26036. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26037. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26038. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26039. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26040. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26041. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26042. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26043. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26044. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  26045. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26046. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26047. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26048. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26049. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26050. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  26051. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26052. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26053. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26054. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  26055. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26056. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26057. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26058. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26059. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26060. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26061. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26062. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  26063. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26064. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26065. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26066. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26067. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26068. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  26069. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26070. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26071. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26072. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26073. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26074. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  26075. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26076. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26077. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26078. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26079. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26080. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  26081. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26082. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26083. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26084. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26085. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26086. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  26087. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  26088. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26089. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26090. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26091. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26092. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  26093. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26094. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26095. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26096. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26097. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26098. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  26099. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26100. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26101. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26102. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26103. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26104. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  26105. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26106. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26107. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26108. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26109. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26110. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  26111. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26112. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26113. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26114. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26115. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26116. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  26117. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26118. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26119. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26120. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26121. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26122. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  26123. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26124. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26125. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26126. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26127. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26128. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  26129. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26130. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26131. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26132. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26133. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26134. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  26135. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26136. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26137. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26138. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26139. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26140. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  26141. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26142. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26143. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26144. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26145. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26146. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  26147. {"HDMI", NULL, "HDMI_DL_HL"},
  26148. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26149. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26150. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26151. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26152. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26153. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26154. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26155. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  26156. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26157. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26158. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26159. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26160. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26161. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26162. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26163. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  26164. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26165. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26166. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26167. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26168. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26169. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  26170. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26171. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26172. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26173. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26174. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26175. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  26176. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26177. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26178. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26179. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26180. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26181. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26182. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26183. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  26184. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26185. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26186. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26187. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26188. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26189. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26190. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  26191. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26192. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26193. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26194. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26195. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26196. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26197. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  26198. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26199. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26200. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26201. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26202. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26203. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26204. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26205. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26206. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  26207. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26208. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26209. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26210. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26211. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26212. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26213. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26214. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26215. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  26216. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  26217. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26218. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26219. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26220. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26221. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26222. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26223. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26224. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  26225. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  26226. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  26227. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  26228. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  26229. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26230. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26231. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26232. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26233. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  26234. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26235. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26236. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26237. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26238. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  26239. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26240. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  26241. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26242. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  26243. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26244. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26245. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26246. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  26247. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  26248. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26249. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26250. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  26251. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  26252. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26253. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26254. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  26255. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26256. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26257. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26258. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26259. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26260. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26261. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  26262. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  26263. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  26264. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  26265. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  26266. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26267. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26268. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26269. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26270. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26271. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26272. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26273. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26274. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26275. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26276. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26277. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26278. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26279. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26280. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26281. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26282. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26283. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26284. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26285. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26286. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26287. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26288. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26289. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26290. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26291. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26292. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26293. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26294. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26295. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26296. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26297. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26298. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26299. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26300. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26301. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26302. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26303. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26304. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26305. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26306. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26307. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26308. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26309. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26310. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26311. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26312. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  26313. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  26314. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  26315. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26316. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  26317. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26318. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26319. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26320. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26321. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26322. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26323. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26324. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26325. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26326. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26327. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26328. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26329. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26330. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26331. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26332. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26333. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26334. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26335. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26336. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26337. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26338. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26339. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26340. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26341. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26342. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26343. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26344. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26345. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26346. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26347. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26348. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26349. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26350. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  26351. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  26352. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  26353. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  26354. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  26355. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  26356. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  26357. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  26358. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  26359. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  26360. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  26361. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  26362. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  26363. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  26364. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  26365. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  26366. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  26367. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  26368. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  26369. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  26370. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  26371. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  26372. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  26373. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  26374. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  26375. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  26376. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  26377. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  26378. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  26379. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  26380. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  26381. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  26382. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  26383. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  26384. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  26385. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  26386. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  26387. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  26388. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  26389. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  26390. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  26391. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  26392. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  26393. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  26394. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  26395. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  26396. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  26397. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  26398. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  26399. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  26400. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  26401. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  26402. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  26403. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  26404. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  26405. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  26406. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  26407. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  26408. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  26409. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  26410. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  26411. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  26412. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  26413. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  26414. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  26415. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  26416. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  26417. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  26418. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  26419. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  26420. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  26421. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  26422. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  26423. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  26424. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  26425. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  26426. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  26427. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  26428. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  26429. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  26430. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  26431. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  26432. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  26433. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  26434. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  26435. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  26436. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  26437. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  26438. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  26439. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  26440. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  26441. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  26442. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  26443. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  26444. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  26445. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  26446. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  26447. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  26448. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  26449. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  26450. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  26451. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  26452. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  26453. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  26454. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  26455. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  26456. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  26457. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  26458. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  26459. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  26460. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  26461. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  26462. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  26463. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  26464. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  26465. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  26466. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26467. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  26468. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  26469. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26470. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  26471. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26472. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  26473. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  26474. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26475. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26476. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26477. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26478. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26479. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26480. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26481. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26482. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26483. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26484. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26485. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26486. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26487. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26488. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  26489. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26490. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26491. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26492. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26493. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26494. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26495. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26496. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26497. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26498. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26499. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26500. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26501. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26502. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26503. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  26504. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26505. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26506. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26507. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26508. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26509. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26510. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26511. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26512. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26513. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26514. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26515. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26516. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26517. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26518. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  26519. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26520. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26521. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26522. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26523. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26524. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26525. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26526. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26527. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26528. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26529. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26530. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26531. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26532. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26533. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  26534. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26535. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26536. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26537. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26538. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26539. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26540. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26541. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26542. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26543. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26544. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26545. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26546. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26547. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26548. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  26549. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26550. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26551. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26552. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26553. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26554. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26555. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26556. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26557. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26558. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26559. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26560. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26561. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  26562. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26563. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26564. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26565. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26566. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26567. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26568. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26569. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26570. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26571. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26572. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26573. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26574. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  26575. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26576. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26577. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26578. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26579. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26580. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26581. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26582. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26583. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26584. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26585. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26586. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26587. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  26588. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  26589. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  26590. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  26591. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  26592. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  26593. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  26594. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  26595. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  26596. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  26597. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  26598. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  26599. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  26600. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  26601. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  26602. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  26603. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  26604. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  26605. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  26606. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  26607. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  26608. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  26609. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  26610. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  26611. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  26612. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  26613. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  26614. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  26615. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  26616. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26617. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  26618. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  26619. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  26620. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26621. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  26622. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  26623. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  26624. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  26625. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  26626. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  26627. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  26628. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  26629. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26630. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  26631. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26632. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  26633. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  26634. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  26635. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  26636. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  26637. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  26638. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  26639. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  26640. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  26641. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  26642. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  26643. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  26644. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  26645. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26646. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  26647. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26648. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  26649. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  26650. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  26651. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  26652. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  26653. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  26654. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  26655. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  26656. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  26657. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  26658. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  26659. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  26660. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  26661. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  26662. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  26663. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  26664. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  26665. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  26666. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  26667. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  26668. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  26669. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  26670. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  26671. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  26672. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  26673. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  26674. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  26675. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  26676. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  26677. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  26678. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  26679. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  26680. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  26681. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  26682. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  26683. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  26684. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  26685. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  26686. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  26687. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  26688. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  26689. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  26690. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  26691. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  26692. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  26693. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  26694. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  26695. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  26696. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  26697. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  26698. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  26699. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  26700. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  26701. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  26702. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  26703. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  26704. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  26705. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  26706. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  26707. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  26708. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  26709. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26710. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26711. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26712. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26713. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26714. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26715. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26716. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26717. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26718. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26719. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26720. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26721. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26722. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26723. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26724. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26725. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26726. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26727. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26728. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26729. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26730. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26731. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26732. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26733. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  26734. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26735. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26736. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26737. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26738. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26739. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26740. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26741. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26742. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26743. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26744. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26745. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26746. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26747. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26748. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26749. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26750. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26751. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26752. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26753. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26754. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26755. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26756. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26757. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26758. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  26759. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26760. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26761. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26762. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26763. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26764. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26765. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26766. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26767. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26768. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26769. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26770. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26771. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26772. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26773. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26774. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26775. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26776. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26777. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26778. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26779. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26780. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26781. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26782. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26783. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  26784. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26785. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26786. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26787. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26788. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26789. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26790. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26791. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26792. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26793. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26794. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26795. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26796. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26797. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26798. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26799. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26800. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26801. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26802. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26803. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26804. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26805. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26806. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26807. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26808. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  26809. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26810. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26811. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26812. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26813. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26814. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26815. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26816. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26817. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26818. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26819. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26820. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26821. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26822. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26823. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26824. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26825. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26826. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26827. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26828. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26829. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26830. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26831. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26832. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26833. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  26834. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26835. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26836. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26837. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26838. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26839. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26840. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26841. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26842. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26843. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26844. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26845. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26846. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26847. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26848. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26849. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26850. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26851. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26852. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26853. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26854. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26855. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26856. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26857. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26858. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  26859. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26860. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26861. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26862. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26863. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26864. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26865. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26866. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26867. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26868. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26869. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26870. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26871. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26872. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26873. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26874. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26875. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26876. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26877. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26878. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26879. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26880. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26881. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26882. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26883. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  26884. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26885. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26886. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26887. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26888. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26889. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26890. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26891. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26892. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26893. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26894. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26895. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26896. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26897. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26898. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26899. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26900. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26901. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26902. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26903. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26904. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26905. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26906. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26907. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26908. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  26909. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26910. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  26911. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26912. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26913. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26914. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26915. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26916. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26917. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26918. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26919. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26920. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26921. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26922. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26923. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26924. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26925. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26926. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26927. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26928. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26929. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26930. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26931. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26932. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26933. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26934. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26935. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  26936. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26937. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26938. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26939. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26940. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26941. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26942. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26943. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26944. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26945. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26946. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26947. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26948. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26949. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26950. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26951. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26952. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26953. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26954. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26955. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26956. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26957. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26958. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26959. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26960. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  26961. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26962. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26963. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26964. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26965. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26966. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26967. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26968. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26969. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26970. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26971. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26972. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26973. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26974. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26975. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26976. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26977. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26978. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26979. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26980. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26981. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26982. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26983. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26984. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26985. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  26986. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26987. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26988. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26989. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26990. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26991. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26992. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26993. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26994. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26995. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26996. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26997. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26998. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26999. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27000. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27001. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27002. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27003. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27004. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27005. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27006. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27007. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27008. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27009. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27010. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  27011. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27012. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27013. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27014. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27015. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27016. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27017. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27018. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27019. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27020. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27021. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27022. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27023. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27024. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27025. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27026. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27027. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27028. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27029. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27030. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27031. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27032. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27033. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27034. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27035. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  27036. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27037. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27038. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27039. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27040. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27041. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27042. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27043. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27044. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27045. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27046. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27047. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27048. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27049. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27050. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27051. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27052. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27053. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27054. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27055. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27056. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27057. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27058. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27059. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27060. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  27061. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27062. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27063. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27064. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27065. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27066. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27067. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27068. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27069. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27070. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27071. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27072. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27073. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27074. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27075. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27076. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27077. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27078. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27079. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27080. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27081. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27082. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27083. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27084. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27085. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  27086. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27087. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27088. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27089. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27090. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27091. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27092. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27093. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27094. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27095. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27096. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27097. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27098. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27099. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27100. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27101. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27102. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27103. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27104. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27105. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27106. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27107. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27108. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27109. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27110. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  27111. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27112. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27113. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  27114. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27115. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27116. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27117. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27118. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27119. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27120. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27121. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27122. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27123. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27124. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27125. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27126. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27127. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27128. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27129. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27130. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27131. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27132. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27133. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27134. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27135. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27136. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27137. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27138. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  27139. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27140. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27141. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27142. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27143. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27144. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27145. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27146. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27147. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27148. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27149. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27150. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27151. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27152. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27153. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27154. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27155. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27156. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27157. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27158. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27159. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27160. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27161. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27162. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27163. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  27164. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27165. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27166. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27167. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27168. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27169. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27170. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27171. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27172. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27173. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27174. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27175. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27176. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27177. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27178. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27179. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27180. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27181. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27182. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27183. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27184. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27185. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27186. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27187. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27188. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  27189. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27190. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27191. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27192. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27193. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27194. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27195. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27196. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27197. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27198. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27199. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27200. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27201. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27202. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27203. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27204. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27205. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27206. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27207. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27208. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27209. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27210. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27211. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27212. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27213. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  27214. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27215. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  27216. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  27217. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  27218. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27219. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27220. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27221. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27222. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27223. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27224. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27225. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27226. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27227. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27228. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27229. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27230. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27231. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27232. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27233. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27234. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27235. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27236. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27237. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27238. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  27239. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27240. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27241. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27242. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27243. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27244. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27245. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27246. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27247. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27248. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27249. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27250. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27251. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27252. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27253. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27254. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27255. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27256. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27257. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27258. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27259. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  27260. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27261. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27262. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27263. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27264. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27265. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27266. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27267. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27268. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27269. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27270. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27271. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27272. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27273. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27274. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27275. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27276. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27277. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27278. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27279. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27280. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  27281. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27282. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27283. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27284. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27285. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27286. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27287. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27288. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27289. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27290. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27291. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27292. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27293. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27294. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27295. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27296. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27297. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27298. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27299. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27300. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27301. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  27302. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27303. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27304. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27305. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27306. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27307. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27308. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27309. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27310. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27311. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27312. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27313. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27314. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  27315. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27316. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27317. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27318. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27319. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27320. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27321. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27322. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27323. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27324. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27325. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27326. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27327. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  27328. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27329. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27330. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27331. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27332. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  27333. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27334. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27335. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27336. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  27337. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27338. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27339. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27340. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27341. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  27342. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27343. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27344. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27345. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27346. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27347. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27348. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27349. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27350. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27351. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27352. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27353. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27354. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27355. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27356. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27357. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27358. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27359. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27360. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27361. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27362. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  27363. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27364. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27365. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  27366. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  27367. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  27368. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  27369. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  27370. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  27371. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27372. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27373. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27374. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27375. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27376. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27377. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27378. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  27379. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27380. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27381. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27382. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27383. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  27384. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27385. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27386. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27387. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  27388. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27389. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27390. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27391. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  27392. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27393. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27394. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27395. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  27396. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27397. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27398. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27399. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27400. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27401. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27402. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27403. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27404. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27405. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27406. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  27407. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27408. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27409. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27410. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27411. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27412. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27413. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27414. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27415. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27416. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  27417. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27418. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27419. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27420. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27421. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27422. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27423. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27424. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27425. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27426. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27427. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27428. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  27429. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27430. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27431. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27432. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27433. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27434. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27435. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27436. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27437. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27438. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27439. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27440. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27441. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  27442. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27443. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27444. {"STUB_RX", NULL, "STUB_RX Mixer"},
  27445. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27446. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27447. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  27448. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27449. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27450. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  27451. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27452. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27453. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27454. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27455. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27456. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  27457. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27458. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27459. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27460. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27461. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27462. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  27463. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27464. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27465. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27466. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  27467. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27468. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27469. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  27470. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  27471. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27472. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  27473. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  27474. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  27475. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  27476. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27477. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27478. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27479. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27480. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27481. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27482. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27483. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27484. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27485. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27486. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27487. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27488. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27489. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  27490. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27491. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  27492. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27493. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  27494. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  27495. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  27496. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27497. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  27498. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27499. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27500. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  27501. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27502. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27503. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27504. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27505. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27506. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27507. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27508. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27509. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27510. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27511. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27512. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  27513. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27514. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27515. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27516. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27517. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27518. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27519. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27520. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27521. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27522. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27523. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  27524. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27525. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27526. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27527. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27528. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27529. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27530. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27531. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27532. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  27533. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27534. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27535. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27536. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27537. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27538. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27539. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27540. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27541. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27542. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27543. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  27544. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27545. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27546. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27547. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27548. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27549. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27550. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27551. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27552. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  27553. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27554. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27555. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27556. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27557. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27558. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27559. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27560. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  27561. /* Backend Enablement */
  27562. {"BE_OUT", NULL, "PRI_I2S_RX"},
  27563. {"BE_OUT", NULL, "SEC_I2S_RX"},
  27564. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  27565. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  27566. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  27567. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27568. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  27569. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  27570. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  27571. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  27572. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  27573. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  27574. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  27575. {"BE_OUT", NULL, "HDMI"},
  27576. {"BE_OUT", NULL, "DISPLAY_PORT"},
  27577. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  27578. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  27579. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  27580. {"BE_OUT", NULL, "MI2S_RX"},
  27581. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  27582. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  27583. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  27584. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  27585. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  27586. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  27587. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  27588. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  27589. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  27590. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  27591. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  27592. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  27593. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27594. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  27595. {"BE_OUT", NULL, "INT_FM_RX"},
  27596. {"BE_OUT", NULL, "PCM_RX"},
  27597. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27598. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27599. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  27600. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  27601. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  27602. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  27603. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  27604. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27605. {"BE_OUT", NULL, "INT_FM_RX"},
  27606. {"BE_OUT", NULL, "PCM_RX"},
  27607. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27608. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  27609. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  27610. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  27611. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  27612. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  27613. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  27614. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  27615. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  27616. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  27617. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  27618. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  27619. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  27620. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  27621. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  27622. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  27623. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  27624. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  27625. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  27626. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  27627. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  27628. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  27629. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  27630. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  27631. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  27632. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  27633. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  27634. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  27635. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  27636. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  27637. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  27638. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  27639. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  27640. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  27641. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  27642. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  27643. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  27644. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  27645. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  27646. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  27647. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  27648. {"PRI_I2S_TX", NULL, "BE_IN"},
  27649. {"MI2S_TX", NULL, "BE_IN"},
  27650. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  27651. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  27652. {"PRI_MI2S_TX", NULL, "BE_IN"},
  27653. {"TERT_MI2S_TX", NULL, "BE_IN"},
  27654. {"INT0_MI2S_TX", NULL, "BE_IN"},
  27655. {"INT2_MI2S_TX", NULL, "BE_IN"},
  27656. {"INT3_MI2S_TX", NULL, "BE_IN"},
  27657. {"INT4_MI2S_TX", NULL, "BE_IN"},
  27658. {"INT5_MI2S_TX", NULL, "BE_IN"},
  27659. {"SEC_MI2S_TX", NULL, "BE_IN"},
  27660. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  27661. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  27662. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  27663. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  27664. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  27665. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  27666. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  27667. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  27668. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  27669. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  27670. {"USB_AUDIO_TX", NULL, "BE_IN" },
  27671. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  27672. {"INT_FM_TX", NULL, "BE_IN"},
  27673. {"PCM_TX", NULL, "BE_IN"},
  27674. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27675. {"BE_OUT", NULL, "STUB_RX"},
  27676. {"STUB_TX", NULL, "BE_IN"},
  27677. {"STUB_1_TX", NULL, "BE_IN"},
  27678. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27679. {"AUX_PCM_TX", NULL, "BE_IN"},
  27680. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  27681. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  27682. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  27683. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  27684. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  27685. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  27686. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  27687. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27688. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27689. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27690. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27691. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  27692. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27693. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27694. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  27695. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  27696. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  27697. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  27698. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  27699. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  27700. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  27701. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  27702. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  27703. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  27704. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  27705. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  27706. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  27707. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  27708. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  27709. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  27710. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  27711. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  27712. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  27713. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  27714. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  27715. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  27716. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  27717. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  27718. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  27719. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  27720. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  27721. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  27722. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  27723. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  27724. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  27725. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  27726. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  27727. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  27728. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  27729. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27730. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27731. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27732. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27733. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27734. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27735. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  27736. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  27737. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  27738. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  27739. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  27740. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  27741. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  27742. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  27743. };
  27744. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  27745. struct snd_pcm_hw_params *params)
  27746. {
  27747. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27748. unsigned int be_id = rtd->dai_link->id;
  27749. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27750. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27751. return -EINVAL;
  27752. }
  27753. mutex_lock(&routing_lock);
  27754. msm_bedais[be_id].sample_rate = params_rate(params);
  27755. msm_bedais[be_id].channel = params_channels(params);
  27756. msm_bedais[be_id].format = params_format(params);
  27757. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  27758. __func__, msm_bedais[be_id].sample_rate,
  27759. msm_bedais[be_id].format, be_id);
  27760. mutex_unlock(&routing_lock);
  27761. return 0;
  27762. }
  27763. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  27764. {
  27765. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27766. unsigned int be_id = rtd->dai_link->id;
  27767. int i, session_type, path_type, topology;
  27768. struct msm_pcm_routing_bdai_data *bedai;
  27769. struct msm_pcm_routing_fdai_data *fdai;
  27770. pr_debug("%s: substream->pcm->id:%s\n",
  27771. __func__, substream->pcm->id);
  27772. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27773. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27774. return -EINVAL;
  27775. }
  27776. bedai = &msm_bedais[be_id];
  27777. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  27778. 0 : 1);
  27779. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27780. path_type = ADM_PATH_PLAYBACK;
  27781. else
  27782. path_type = ADM_PATH_LIVE_REC;
  27783. mutex_lock(&routing_lock);
  27784. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27785. if (!is_mm_lsm_fe_id(i))
  27786. continue;
  27787. fdai = &fe_dai_map[i][session_type];
  27788. if (fdai->strm_id != INVALID_SESSION) {
  27789. int idx;
  27790. int port_id;
  27791. unsigned long copp =
  27792. session_copp_map[i][session_type][be_id];
  27793. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  27794. if (test_bit(idx, &copp))
  27795. break;
  27796. if (idx >= MAX_COPPS_PER_PORT) {
  27797. pr_debug("%s: copp idx is invalid, exiting\n",
  27798. __func__);
  27799. continue;
  27800. }
  27801. fdai->be_srate = bedai->sample_rate;
  27802. port_id = get_port_id(bedai->port_id);
  27803. topology = adm_get_topology_for_port_copp_idx(port_id,
  27804. idx);
  27805. msm_routing_unload_topology(topology);
  27806. adm_close(port_id, fdai->perf_mode, idx);
  27807. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  27808. __func__, copp, i, session_type, be_id,
  27809. topology);
  27810. clear_bit(idx,
  27811. &session_copp_map[i][session_type][be_id]);
  27812. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27813. (fdai->passthr_mode == LEGACY_PCM))
  27814. msm_pcm_routing_deinit_pp(port_id,
  27815. topology);
  27816. }
  27817. }
  27818. bedai->active = 0;
  27819. bedai->sample_rate = 0;
  27820. bedai->channel = 0;
  27821. mutex_unlock(&routing_lock);
  27822. return 0;
  27823. }
  27824. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  27825. {
  27826. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27827. unsigned int be_id = rtd->dai_link->id;
  27828. int i, path_type, topology;
  27829. int session_type = INVALID_SESSION;
  27830. struct msm_pcm_routing_bdai_data *bedai;
  27831. u32 channels, sample_rate;
  27832. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  27833. struct msm_pcm_routing_fdai_data *fdai;
  27834. u32 session_id;
  27835. struct media_format_info voc_be_media_format;
  27836. bool is_lsm;
  27837. pr_debug("%s: substream->pcm->id:%s\n",
  27838. __func__, substream->pcm->id);
  27839. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27840. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27841. return -EINVAL;
  27842. }
  27843. bedai = &msm_bedais[be_id];
  27844. mutex_lock(&routing_lock);
  27845. if (bedai->active == 1)
  27846. goto done; /* Ignore prepare if back-end already active */
  27847. /* AFE port is not active at this point. However, still
  27848. * go ahead setting active flag under the notion that
  27849. * QDSP6 is able to handle ADM starting before AFE port
  27850. * is started.
  27851. */
  27852. bedai->active = 1;
  27853. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27854. if (!(is_mm_lsm_fe_id(i) &&
  27855. route_check_fe_id_adm_support(i)))
  27856. continue;
  27857. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  27858. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27859. fdai = &fe_dai_map[i][session_type];
  27860. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  27861. if (fdai->passthr_mode != LEGACY_PCM)
  27862. path_type = ADM_PATH_COMPRESSED_RX;
  27863. else
  27864. path_type = ADM_PATH_PLAYBACK;
  27865. } else {
  27866. if ((fdai->passthr_mode != LEGACY_PCM) &&
  27867. (fdai->passthr_mode != LISTEN))
  27868. path_type = ADM_PATH_COMPRESSED_TX;
  27869. else
  27870. path_type = ADM_PATH_LIVE_REC;
  27871. }
  27872. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  27873. (i <= MSM_FRONTEND_DAI_LSM8);
  27874. if (fdai->strm_id != INVALID_SESSION) {
  27875. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  27876. int port_id = get_port_id(bedai->port_id);
  27877. if (session_type == SESSION_TYPE_TX &&
  27878. fdai->be_srate &&
  27879. (fdai->be_srate != bedai->sample_rate)) {
  27880. pr_debug("%s: flush strm %d diff BE rates\n",
  27881. __func__,
  27882. fdai->strm_id);
  27883. if (fdai->event_info.event_func)
  27884. fdai->event_info.event_func(
  27885. MSM_PCM_RT_EVT_BUF_RECFG,
  27886. fdai->event_info.priv_data);
  27887. fdai->be_srate = 0; /* might not need it */
  27888. }
  27889. bits_per_sample = msm_routing_get_bit_width(
  27890. bedai->format);
  27891. app_type =
  27892. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  27893. if (app_type && is_lsm) {
  27894. app_type_idx =
  27895. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  27896. sample_rate =
  27897. fe_dai_app_type_cfg[i][session_type][be_id]
  27898. .sample_rate;
  27899. bits_per_sample =
  27900. lsm_app_type_cfg[app_type_idx].bit_width;
  27901. } else if (app_type) {
  27902. app_type_idx =
  27903. msm_pcm_routing_get_app_type_idx(app_type);
  27904. sample_rate =
  27905. fe_dai_app_type_cfg[i][session_type]
  27906. [be_id].sample_rate;
  27907. bits_per_sample =
  27908. app_type_cfg[app_type_idx].bit_width;
  27909. } else
  27910. sample_rate = bedai->sample_rate;
  27911. /*
  27912. * check if ADM needs to be configured with different
  27913. * channel mapping than backend
  27914. */
  27915. if (!bedai->adm_override_ch)
  27916. channels = bedai->channel;
  27917. else
  27918. channels = bedai->adm_override_ch;
  27919. acdb_dev_id =
  27920. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  27921. topology = msm_routing_get_adm_topology(i, session_type,
  27922. be_id);
  27923. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  27924. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  27925. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  27926. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  27927. be_bit_width = msm_routing_get_bit_width(
  27928. bedai->format);
  27929. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  27930. || bedai->sample_rate == 352800) &&
  27931. be_bit_width == 32)
  27932. bits_per_sample = msm_routing_get_bit_width(
  27933. SNDRV_PCM_FORMAT_S32_LE);
  27934. copp_idx = adm_open(port_id, path_type,
  27935. sample_rate, channels, topology,
  27936. fdai->perf_mode, bits_per_sample,
  27937. app_type, acdb_dev_id,
  27938. session_type);
  27939. if ((copp_idx < 0) ||
  27940. (copp_idx >= MAX_COPPS_PER_PORT)) {
  27941. pr_err("%s: adm open failed\n", __func__);
  27942. mutex_unlock(&routing_lock);
  27943. return -EINVAL;
  27944. }
  27945. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  27946. __func__, i, session_type, be_id);
  27947. set_bit(copp_idx,
  27948. &session_copp_map[i][session_type][be_id]);
  27949. if (msm_is_resample_needed(
  27950. sample_rate,
  27951. bedai->sample_rate))
  27952. adm_copp_mfc_cfg(port_id, copp_idx,
  27953. bedai->sample_rate);
  27954. msm_pcm_routing_build_matrix(i, session_type, path_type,
  27955. fdai->perf_mode, fdai->passthr_mode);
  27956. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27957. (fdai->passthr_mode == LEGACY_PCM))
  27958. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  27959. topology, channels);
  27960. }
  27961. }
  27962. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27963. session_id = msm_pcm_routing_get_voc_sessionid(i);
  27964. if (session_id) {
  27965. pr_debug("%s voice session_id: 0x%x\n", __func__,
  27966. session_id);
  27967. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27968. voc_path_type = RX_PATH;
  27969. else
  27970. voc_path_type = TX_PATH;
  27971. voc_set_route_flag(session_id, voc_path_type, 1);
  27972. memset(&voc_be_media_format, 0,
  27973. sizeof(struct media_format_info));
  27974. voc_be_media_format.port_id = bedai->port_id;
  27975. voc_be_media_format.num_channels = bedai->channel;
  27976. voc_be_media_format.sample_rate = bedai->sample_rate;
  27977. voc_be_media_format.bits_per_sample = bedai->format;
  27978. /* Defaulting this to 1 for voice call usecases */
  27979. voc_be_media_format.channel_mapping[0] = 1;
  27980. voc_set_device_config(session_id, voc_path_type,
  27981. &voc_be_media_format);
  27982. if (voc_get_route_flag(session_id, RX_PATH) &&
  27983. voc_get_route_flag(session_id, TX_PATH))
  27984. voc_enable_device(session_id);
  27985. }
  27986. }
  27987. /* Check if backend is an external ec ref port and set as needed */
  27988. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  27989. memset(&voc_be_media_format, 0,
  27990. sizeof(struct media_format_info));
  27991. /* Get format info for ec ref port from msm_bedais[] */
  27992. voc_be_media_format.port_id = bedai->port_id;
  27993. voc_be_media_format.num_channels = bedai->channel;
  27994. voc_be_media_format.bits_per_sample = bedai->format;
  27995. voc_be_media_format.sample_rate = bedai->sample_rate;
  27996. /* Defaulting this to 1 for voice call usecases */
  27997. voc_be_media_format.channel_mapping[0] = 1;
  27998. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  27999. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  28000. __func__, voc_be_media_format.port_id,
  28001. voc_be_media_format.num_channels,
  28002. voc_be_media_format.bits_per_sample,
  28003. voc_be_media_format.sample_rate);
  28004. }
  28005. done:
  28006. mutex_unlock(&routing_lock);
  28007. return 0;
  28008. }
  28009. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  28010. int fe_id)
  28011. {
  28012. int index, topo_id, be_idx;
  28013. unsigned long pp_config = 0;
  28014. bool mute_on;
  28015. int latency, session_type;
  28016. bool compr_passthr_mode = true;
  28017. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  28018. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  28019. pr_err("%s: Device pp params on invalid port %d\n",
  28020. __func__, port_id);
  28021. return -EINVAL;
  28022. }
  28023. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28024. if (port_id == msm_bedais[be_idx].port_id)
  28025. break;
  28026. }
  28027. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28028. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28029. return -EINVAL;
  28030. }
  28031. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28032. if (msm_bedais_pp_params[index].port_id == port_id)
  28033. break;
  28034. }
  28035. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28036. pr_err("%s: Invalid backend pp params index %d\n",
  28037. __func__, index);
  28038. return -EINVAL;
  28039. }
  28040. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  28041. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  28042. pr_err("%s: Invalid passthrough topology 0x%x\n",
  28043. __func__, topo_id);
  28044. return -EINVAL;
  28045. }
  28046. session_type =
  28047. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28048. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28049. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  28050. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  28051. compr_passthr_mode = false;
  28052. pp_config = msm_bedais_pp_params[index].pp_params_config;
  28053. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  28054. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28055. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  28056. mute_on = msm_bedais_pp_params[index].mute_on;
  28057. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28058. adm_send_compressed_device_mute(port_id,
  28059. copp_idx,
  28060. mute_on);
  28061. }
  28062. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  28063. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28064. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  28065. &pp_config);
  28066. latency = msm_bedais_pp_params[index].latency;
  28067. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28068. adm_send_compressed_device_latency(port_id,
  28069. copp_idx,
  28070. latency);
  28071. }
  28072. return 0;
  28073. }
  28074. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  28075. {
  28076. uint32_t topology = NULL_COPP_TOPOLOGY;
  28077. void *cal_info = NULL;
  28078. uint32_t size = 0;
  28079. /* Retrieve cal_info size from cal data*/
  28080. if (data_size < sizeof(struct audio_cal_type_basic) +
  28081. sizeof(struct audio_cal_info_adm_top)) {
  28082. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  28083. goto done;
  28084. }
  28085. size = data_size - sizeof(struct audio_cal_type_basic);
  28086. cal_info = kzalloc(size, GFP_KERNEL);
  28087. if (!cal_info)
  28088. goto done;
  28089. memcpy(cal_info,
  28090. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  28091. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  28092. kfree(cal_info);
  28093. cal_info = NULL;
  28094. done:
  28095. pr_debug("%s: Using topology %d\n", __func__, topology);
  28096. return topology;
  28097. }
  28098. static void msm_routing_load_topology(size_t data_size, void *data)
  28099. {
  28100. uint32_t topology_id;
  28101. int ret = -EINVAL;
  28102. topology_id = msm_routing_get_topology(data_size, data);
  28103. if (topology_id != NULL_COPP_TOPOLOGY)
  28104. ret = q6core_load_unload_topo_modules(topology_id,
  28105. CORE_LOAD_TOPOLOGY);
  28106. if (ret < 0)
  28107. pr_debug("%s %d load topology failed\n",
  28108. __func__, topology_id);
  28109. }
  28110. static void msm_routing_unload_topology(uint32_t topology_id)
  28111. {
  28112. int ret = -EINVAL;
  28113. if (topology_id != NULL_COPP_TOPOLOGY)
  28114. ret = q6core_load_unload_topo_modules(topology_id,
  28115. CORE_UNLOAD_TOPOLOGY);
  28116. if (ret < 0)
  28117. pr_debug("%s %d unload topology failed\n",
  28118. __func__, topology_id);
  28119. }
  28120. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28121. struct snd_ctl_elem_value *ucontrol)
  28122. {
  28123. int pp_id = ucontrol->value.integer.value[0];
  28124. int port_id = 0;
  28125. int index, be_idx, i, topo_id, idx;
  28126. bool mute;
  28127. int latency, session_type;
  28128. bool compr_passthr_mode = true;
  28129. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  28130. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  28131. port_id = msm_bedais[be_idx].port_id;
  28132. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  28133. break;
  28134. }
  28135. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28136. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  28137. return -EINVAL;
  28138. }
  28139. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  28140. if (msm_bedais_pp_params[index].port_id == port_id)
  28141. break;
  28142. }
  28143. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  28144. pr_err("%s: Invalid pp params backend index %d\n",
  28145. __func__, index);
  28146. return -EINVAL;
  28147. }
  28148. session_type =
  28149. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  28150. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28151. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  28152. MSM_FRONTEND_DAI_MM_SIZE) {
  28153. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  28154. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  28155. compr_passthr_mode = false;
  28156. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28157. unsigned long copp =
  28158. session_copp_map[i]
  28159. [SESSION_TYPE_RX][be_idx];
  28160. if (!test_bit(idx, &copp))
  28161. continue;
  28162. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  28163. idx);
  28164. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  28165. continue;
  28166. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  28167. __func__, port_id, copp, msm_bedais[be_idx].active,
  28168. fe_dai_map[i][session_type].passthr_mode);
  28169. switch (pp_id) {
  28170. case ADM_PP_PARAM_MUTE_ID:
  28171. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  28172. mute = ucontrol->value.integer.value[1] ? true : false;
  28173. msm_bedais_pp_params[index].mute_on = mute;
  28174. set_bit(ADM_PP_PARAM_MUTE_BIT,
  28175. &msm_bedais_pp_params[index].pp_params_config);
  28176. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28177. adm_send_compressed_device_mute(port_id,
  28178. idx, mute);
  28179. break;
  28180. case ADM_PP_PARAM_LATENCY_ID:
  28181. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  28182. msm_bedais_pp_params[index].latency =
  28183. ucontrol->value.integer.value[1];
  28184. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  28185. &msm_bedais_pp_params[index].pp_params_config);
  28186. latency = msm_bedais_pp_params[index].latency =
  28187. ucontrol->value.integer.value[1];
  28188. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  28189. adm_send_compressed_device_latency(port_id,
  28190. idx, latency);
  28191. break;
  28192. default:
  28193. pr_info("%s, device pp param %d not supported\n",
  28194. __func__, pp_id);
  28195. break;
  28196. }
  28197. }
  28198. }
  28199. return 0;
  28200. }
  28201. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  28202. struct snd_ctl_elem_value *ucontrol)
  28203. {
  28204. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  28205. return 0;
  28206. }
  28207. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  28208. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  28209. 0, 3, msm_routing_get_device_pp_params_mixer,
  28210. msm_routing_put_device_pp_params_mixer),
  28211. };
  28212. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  28213. struct snd_ctl_elem_value *ucontrol)
  28214. {
  28215. ucontrol->value.integer.value[0] =
  28216. core_get_license_status(ASM_MEDIA_FMT_APTX);
  28217. pr_debug("%s: status %ld\n", __func__,
  28218. ucontrol->value.integer.value[0]);
  28219. return 0;
  28220. }
  28221. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  28222. struct snd_ctl_elem_value *ucontrol)
  28223. {
  28224. int32_t status = 0;
  28225. status = core_set_license(ucontrol->value.integer.value[0],
  28226. APTX_CLASSIC_DEC_LICENSE_ID);
  28227. pr_debug("%s: status %d\n", __func__, status);
  28228. return status;
  28229. }
  28230. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  28231. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  28232. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  28233. msm_aptx_dec_license_control_put),
  28234. };
  28235. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  28236. struct snd_ctl_elem_value *ucontrol)
  28237. {
  28238. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  28239. uint32_t be_idx = ucontrol->value.integer.value[0];
  28240. int i;
  28241. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  28242. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  28243. return -EINVAL;
  28244. }
  28245. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  28246. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  28247. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  28248. pr_err("%s: Invalid channel map %d\n",
  28249. __func__, channel_map[i]);
  28250. return -EINVAL;
  28251. }
  28252. }
  28253. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  28254. return 0;
  28255. }
  28256. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  28257. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  28258. MSM_BACKEND_DAI_MAX, 0,
  28259. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  28260. msm_routing_put_port_chmap_mixer),
  28261. };
  28262. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  28263. struct snd_ctl_elem_info *uinfo)
  28264. {
  28265. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  28266. uinfo->count = sizeof(be_dai_name_table);
  28267. return 0;
  28268. }
  28269. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  28270. unsigned int __user *bytes,
  28271. unsigned int size)
  28272. {
  28273. int i;
  28274. int ret = 0;
  28275. if (size < sizeof(be_dai_name_table)) {
  28276. pr_err("%s: invalid size %d requested, returning\n",
  28277. __func__, size);
  28278. ret = -EINVAL;
  28279. goto done;
  28280. }
  28281. /*
  28282. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  28283. * needed when adding new backends
  28284. */
  28285. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  28286. be_dai_name_table[i].be_id = i;
  28287. strlcpy(be_dai_name_table[i].be_name,
  28288. msm_bedais[i].name,
  28289. LPASS_BE_NAME_MAX_LENGTH);
  28290. }
  28291. ret = copy_to_user(bytes, &be_dai_name_table,
  28292. sizeof(be_dai_name_table));
  28293. if (ret) {
  28294. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  28295. ret = -EFAULT;
  28296. }
  28297. done:
  28298. return ret;
  28299. }
  28300. static const struct snd_kcontrol_new
  28301. msm_routing_be_dai_name_table_mixer_controls[] = {
  28302. {
  28303. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  28304. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  28305. .info = msm_routing_be_dai_name_table_info,
  28306. .name = "Backend DAI Name Table",
  28307. .tlv.c = snd_soc_bytes_tlv_callback,
  28308. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  28309. .max = sizeof(be_dai_name_table),
  28310. .get = msm_routing_be_dai_name_table_tlv_get,
  28311. }
  28312. },
  28313. };
  28314. static int msm_routing_stereo_channel_reverse_control_get(
  28315. struct snd_kcontrol *kcontrol,
  28316. struct snd_ctl_elem_value *ucontrol)
  28317. {
  28318. ucontrol->value.integer.value[0] = swap_ch;
  28319. pr_debug("%s: Swap channel value: %ld\n", __func__,
  28320. ucontrol->value.integer.value[0]);
  28321. return 0;
  28322. }
  28323. static int msm_routing_stereo_channel_reverse_control_put(
  28324. struct snd_kcontrol *kcontrol,
  28325. struct snd_ctl_elem_value *ucontrol)
  28326. {
  28327. int i, idx, be_index, port_id;
  28328. int ret = 0;
  28329. unsigned long copp;
  28330. pr_debug("%s Swap channel value:%ld\n", __func__,
  28331. ucontrol->value.integer.value[0]);
  28332. swap_ch = ucontrol->value.integer.value[0];
  28333. mutex_lock(&routing_lock);
  28334. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  28335. port_id = msm_bedais[be_index].port_id;
  28336. if (!msm_bedais[be_index].active)
  28337. continue;
  28338. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  28339. MSM_FRONTEND_DAI_MM_SIZE) {
  28340. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  28341. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  28342. if (!test_bit(idx, &copp))
  28343. continue;
  28344. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  28345. __func__, port_id, idx);
  28346. ret = adm_swap_speaker_channels(
  28347. port_id, idx,
  28348. msm_bedais[be_index].sample_rate,
  28349. swap_ch);
  28350. if (ret) {
  28351. pr_err("%s:Swap_channel failed, err=%d\n",
  28352. __func__, ret);
  28353. goto done;
  28354. }
  28355. }
  28356. }
  28357. }
  28358. done:
  28359. mutex_unlock(&routing_lock);
  28360. return ret;
  28361. }
  28362. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  28363. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  28364. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  28365. msm_routing_stereo_channel_reverse_control_put),
  28366. };
  28367. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  28368. struct snd_ctl_elem_info *uinfo)
  28369. {
  28370. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  28371. uinfo->count = 1;
  28372. return 0;
  28373. }
  28374. static int msm_routing_instance_id_support_put(
  28375. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28376. {
  28377. bool supported = ucontrol->value.integer.value[0] ? true : false;
  28378. q6common_update_instance_id_support(supported);
  28379. return 0;
  28380. }
  28381. static int msm_routing_instance_id_support_get(
  28382. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28383. {
  28384. bool supported = false;
  28385. supported = q6common_is_instance_id_supported();
  28386. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  28387. return 0;
  28388. }
  28389. static const struct snd_kcontrol_new
  28390. msm_routing_feature_support_mixer_controls[] = {
  28391. {
  28392. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  28393. SNDRV_CTL_ELEM_ACCESS_WRITE,
  28394. .info = msm_routing_instance_id_support_info,
  28395. .name = "Instance ID Support",
  28396. .put = msm_routing_instance_id_support_put,
  28397. .get = msm_routing_instance_id_support_get,
  28398. },
  28399. };
  28400. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  28401. .hw_params = msm_pcm_routing_hw_params,
  28402. .close = msm_pcm_routing_close,
  28403. .prepare = msm_pcm_routing_prepare,
  28404. };
  28405. /* Not used but frame seems to require it */
  28406. static int msm_routing_probe(struct snd_soc_component *component)
  28407. {
  28408. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  28409. ARRAY_SIZE(msm_qdsp6_widgets));
  28410. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  28411. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  28412. snd_soc_dapm_add_routes(&component->dapm, intercon,
  28413. ARRAY_SIZE(intercon));
  28414. snd_soc_dapm_new_widgets(component->dapm.card);
  28415. snd_soc_add_component_controls(component, lsm_controls,
  28416. ARRAY_SIZE(lsm_controls));
  28417. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  28418. ARRAY_SIZE(aanc_slim_0_rx_mux));
  28419. snd_soc_add_component_controls(component, aanc_noise_level,
  28420. ARRAY_SIZE(aanc_noise_level));
  28421. snd_soc_add_component_controls(component, msm_voc_session_controls,
  28422. ARRAY_SIZE(msm_voc_session_controls));
  28423. snd_soc_add_component_controls(component, app_type_cfg_controls,
  28424. ARRAY_SIZE(app_type_cfg_controls));
  28425. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  28426. ARRAY_SIZE(lsm_app_type_cfg_controls));
  28427. snd_soc_add_component_controls(component, module_cfg_controls,
  28428. ARRAY_SIZE(module_cfg_controls));
  28429. snd_soc_add_component_controls(component,
  28430. stereo_to_custom_stereo_controls,
  28431. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  28432. snd_soc_add_component_controls(component, ec_ref_param_controls,
  28433. ARRAY_SIZE(ec_ref_param_controls));
  28434. snd_soc_add_component_controls(component, channel_mixer_controls,
  28435. ARRAY_SIZE(channel_mixer_controls));
  28436. msm_qti_pp_add_controls(component);
  28437. msm_dts_srs_tm_add_controls(component);
  28438. msm_dolby_dap_add_controls(component);
  28439. snd_soc_add_component_controls(component,
  28440. use_ds1_or_ds2_controls,
  28441. ARRAY_SIZE(use_ds1_or_ds2_controls));
  28442. snd_soc_add_component_controls(component,
  28443. hifi_filter_controls,
  28444. ARRAY_SIZE(hifi_filter_controls));
  28445. snd_soc_add_component_controls(component,
  28446. device_pp_params_mixer_controls,
  28447. ARRAY_SIZE(device_pp_params_mixer_controls));
  28448. snd_soc_add_component_controls(component,
  28449. msm_routing_be_dai_name_table_mixer_controls,
  28450. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  28451. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  28452. ARRAY_SIZE(msm_source_tracking_controls));
  28453. snd_soc_add_component_controls(component, adm_channel_config_controls,
  28454. ARRAY_SIZE(adm_channel_config_controls));
  28455. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  28456. ARRAY_SIZE(aptx_dec_license_controls));
  28457. snd_soc_add_component_controls(component,
  28458. stereo_channel_reverse_control,
  28459. ARRAY_SIZE(stereo_channel_reverse_control));
  28460. snd_soc_add_component_controls(
  28461. component, msm_routing_feature_support_mixer_controls,
  28462. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  28463. snd_soc_add_component_controls(component,
  28464. port_multi_channel_map_mixer_controls,
  28465. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  28466. return 0;
  28467. }
  28468. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  28469. {
  28470. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  28471. }
  28472. void msm_routing_pcm_free(struct snd_pcm *pcm)
  28473. {
  28474. msm_pcm_routing_hwdep_free(pcm);
  28475. }
  28476. static struct snd_soc_component_driver msm_soc_routing_component = {
  28477. .name = DRV_NAME,
  28478. .ops = &msm_routing_pcm_ops,
  28479. .probe = msm_routing_probe,
  28480. .pcm_new = msm_routing_pcm_new,
  28481. .pcm_free = msm_routing_pcm_free,
  28482. };
  28483. static int msm_routing_pcm_probe(struct platform_device *pdev)
  28484. {
  28485. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  28486. return snd_soc_register_component(&pdev->dev,
  28487. &msm_soc_routing_component,
  28488. NULL, 0);
  28489. }
  28490. static int msm_routing_pcm_remove(struct platform_device *pdev)
  28491. {
  28492. snd_soc_unregister_component(&pdev->dev);
  28493. return 0;
  28494. }
  28495. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  28496. {.compatible = "qcom,msm-pcm-routing"},
  28497. {}
  28498. };
  28499. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  28500. static struct platform_driver msm_routing_pcm_driver = {
  28501. .driver = {
  28502. .name = "msm-pcm-routing",
  28503. .owner = THIS_MODULE,
  28504. .of_match_table = msm_pcm_routing_dt_match,
  28505. .suppress_bind_attrs = true,
  28506. },
  28507. .probe = msm_routing_pcm_probe,
  28508. .remove = msm_routing_pcm_remove,
  28509. };
  28510. int msm_routing_check_backend_enabled(int fedai_id)
  28511. {
  28512. int i;
  28513. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  28514. /* bad ID assigned in machine driver */
  28515. pr_err("%s: bad MM ID\n", __func__);
  28516. return 0;
  28517. }
  28518. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  28519. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  28520. return msm_bedais[i].active;
  28521. }
  28522. return 0;
  28523. }
  28524. static int get_cal_type_index(int32_t cal_type)
  28525. {
  28526. int ret = -EINVAL;
  28527. switch (cal_type) {
  28528. case ADM_TOPOLOGY_CAL_TYPE:
  28529. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  28530. break;
  28531. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  28532. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  28533. break;
  28534. default:
  28535. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  28536. }
  28537. return ret;
  28538. }
  28539. static int msm_routing_set_cal(int32_t cal_type,
  28540. size_t data_size, void *data)
  28541. {
  28542. int ret = 0;
  28543. int cal_index;
  28544. pr_debug("%s\n", __func__);
  28545. cal_index = get_cal_type_index(cal_type);
  28546. if (cal_index < 0) {
  28547. pr_err("%s: Could not get cal index %d\n",
  28548. __func__, cal_index);
  28549. ret = -EINVAL;
  28550. goto done;
  28551. }
  28552. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  28553. if (ret < 0) {
  28554. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  28555. __func__, ret, cal_type);
  28556. ret = -EINVAL;
  28557. goto done;
  28558. }
  28559. /* Pre-load if it is ADM topology */
  28560. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  28561. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  28562. msm_routing_load_topology(data_size, data);
  28563. }
  28564. done:
  28565. return ret;
  28566. }
  28567. static void msm_routing_delete_cal_data(void)
  28568. {
  28569. pr_debug("%s\n", __func__);
  28570. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  28571. }
  28572. static int msm_routing_init_cal_data(void)
  28573. {
  28574. int ret = 0;
  28575. struct cal_type_info cal_type_info[] = {
  28576. {{ADM_TOPOLOGY_CAL_TYPE,
  28577. {NULL, NULL, NULL,
  28578. msm_routing_set_cal, NULL, NULL} },
  28579. {NULL, NULL, cal_utils_match_buf_num} },
  28580. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  28581. {NULL, NULL, NULL,
  28582. msm_routing_set_cal, NULL, NULL} },
  28583. {NULL, NULL, cal_utils_match_buf_num} },
  28584. };
  28585. pr_debug("%s\n", __func__);
  28586. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  28587. &cal_type_info[0]);
  28588. if (ret < 0) {
  28589. pr_err("%s: could not create cal type!\n",
  28590. __func__);
  28591. ret = -EINVAL;
  28592. goto err;
  28593. }
  28594. return ret;
  28595. err:
  28596. msm_routing_delete_cal_data();
  28597. return ret;
  28598. }
  28599. int __init msm_soc_routing_platform_init(void)
  28600. {
  28601. mutex_init(&routing_lock);
  28602. if (msm_routing_init_cal_data())
  28603. pr_err("%s: could not init cal data!\n", __func__);
  28604. afe_set_routing_callback(
  28605. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  28606. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28607. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  28608. return platform_driver_register(&msm_routing_pcm_driver);
  28609. }
  28610. void msm_soc_routing_platform_exit(void)
  28611. {
  28612. msm_routing_delete_cal_data();
  28613. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28614. mutex_destroy(&routing_lock);
  28615. platform_driver_unregister(&msm_routing_pcm_driver);
  28616. }
  28617. MODULE_DESCRIPTION("MSM routing platform driver");
  28618. MODULE_LICENSE("GPL v2");